Hi everyone! I'm using airbyte(Chart version : 0.4...
# replication-troubleshooting
u
Hi everyone! I'm using airbyte(Chart version : 0.43.33, App version : 0.40.32) on eks and i have a little problem Once airbyte-temporal pods are restart, there is an error because of below code update-and-start-temporal.sh
Copy code
update_postgres_schema() {
  { export SQL_PASSWORD=${POSTGRES_PWD}; } 2> /dev/null

  CONTAINER_ALREADY_STARTED="CONTAINER_ALREADY_STARTED_PLACEHOLDER"
  if [ ! -e $CONTAINER_ALREADY_STARTED ]; then
      touch $CONTAINER_ALREADY_STARTED
      temporal-sql-tool --plugin postgres --ep "${POSTGRES_SEEDS}" -u "${POSTGRES_USER}" -p "${DB_PORT}" create --db "${DBNAME}"
      temporal-sql-tool --plugin postgres --ep "${POSTGRES_SEEDS}" -u "${POSTGRES_USER}" -p "${DB_PORT}" --db "${DBNAME}" setup-schema -v 0.0


      temporal-sql-tool --plugin postgres --ep "${POSTGRES_SEEDS}" -u "${POSTGRES_USER}" -p "${DB_PORT}" create --db "${VISIBILITY_DBNAME}"
      temporal-sql-tool --plugin postgres --ep "${POSTGRES_SEEDS}" -u "${POSTGRES_USER}" -p "${DB_PORT}" --db "${VISIBILITY_DBNAME}" setup-schema -v 0.0
  fi
  echo "Starting to update the temporal DB"
  temporal-sql-tool --plugin postgres --ep "${POSTGRES_SEEDS}" -u "${POSTGRES_USER}" -p "${DB_PORT}" --db "${DBNAME}" update-schema -d "${SCHEMA_DIR}"
  echo "Update the temporal DB is done"

  echo "Starting to update the temporal visibility DB"
  temporal-sql-tool --plugin postgres --ep "${POSTGRES_SEEDS}" -u "${POSTGRES_USER}" -p "${DB_PORT}" --db "${VISIBILITY_DBNAME}" update-schema -d "${VISIBILITY_SCHEMA_DIR}"
  echo "Update the temporal visibility DB is done"

}
the problem is, i'm using database name ${DBNAME} but when pods restart, pods try to make ${SCHEMA_DIR} (named temporal) why this happen and if i want to use ${DBNAME} database after restart pods, how can i do that?
n
Hi! As a starting point, could you please update Airbyte? We just went through a significant refactor 🙂
u
ok i'll try update! And then, if there is another problem i'll ask you then. Thanks!