- Is this your first time deploying Airbyte?: Yes
- OS Version / Instance: Debian GNU/Linux 11 (bullseye)
- Deployment: Kubernetes in AWS
- Airbyte Version: 0.40.3
- Step: Deployment to cluster
- Description: Our team uses automated kubernetes deployments via flux. This is our first deployment of Airbyte utilizing the helm charts. Services are being deployed to our cluster, however both the worker and server pods are failing after connecting to a brand new external database (AWS RDS postgres instance). They both seem to fail after sharing that the minimum flyway version is not met, and repeating the same flyway message until the connection timeout is met. From my understanding, airbyte is supposed to configure brand new databases. However I’m not sure what issue it is running into at this point.
From the server logs:
kubectl --namespace=data-prod logs -f airbyte-server-5c46fff987-cx9qg
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable CONFIG_DATABASE_USER: 'postgres'
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable CONFIG_DATABASE_PASSWORD: '*****'
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable CONFIG_DATABASE_URL: 'jdbc:postgresql://<redacted-aws-hostname>:5432/airbyte'
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):80 - HikariPool-1 - Starting...
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):82 - HikariPool-1 - Start completed.
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):80 - HikariPool-2 - Starting...
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):82 - HikariPool-2 - Start completed.
2022-09-14 21:03:47 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword existingJavaType - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2022-09-14 21:03:48 INFO i.a.s.ServerApp(getServer):178 - Checking databases..
2022-09-14 21:03:48 INFO i.a.s.ServerApp(assertDatabasesReady):154 - Checking configs database flyway migration version..
2022-09-14 21:03:48 WARN i.a.d.c.DatabaseAvailabilityCheck(check):38 - Waiting for database to become available...
2022-09-14 21:03:48 INFO i.a.d.c.DatabaseAvailabilityCheck(lambda$isDatabaseConnected$1):75 - Testing airbyte configs database connection...
2022-09-14 21:03:49 INFO i.a.d.c.DatabaseAvailabilityCheck(check):57 - Database available.
2022-09-14 21:03:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:03:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Database: jdbc:postgresql://<redacted-aws-hostname>:5432/airbyte (PostgreSQL 13.7)
2022-09-14 21:03:49 INFO i.a.d.c.DatabaseMigrationCheck(check):46 - Current database migration version 0.
2022-09-14 21:03:49 INFO i.a.d.c.DatabaseMigrationCheck(check):47 - Minimum Flyway version required 0.35.15.001.
2022-09-14 21:04:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:05:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:06:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:07:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:08:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:09:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:10:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:11:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:12:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:13:49 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:13:49 ERROR i.a.s.ServerApp(main):319 - Server failed
io.airbyte.db.check.DatabaseCheckException: Timeout while waiting for database to fulfill minimum flyway migration version..
at io.airbyte.db.check.DatabaseMigrationCheck.check(DatabaseMigrationCheck.java:51) ~[io.airbyte.airbyte-db-db-lib-0.40.3.jar:?]
at io.airbyte.server.ServerApp.assertDatabasesReady(ServerApp.java:158) ~[io.airbyte-airbyte-server-0.40.3.jar:?]
at io.airbyte.server.ServerApp.getServer(ServerApp.java:179) ~[io.airbyte-airbyte-server-0.40.3.jar:?]
at io.airbyte.server.ServerApp.main(ServerApp.java:316) [io.airbyte-airbyte-server-0.40.3.jar:?]
2022-09-14 21:13:49 INFO c.z.h.HikariDataSource(close):350 - HikariPool-1 - Shutdown initiated...
2022-09-14 21:13:49 INFO c.z.h.HikariDataSource(close):352 - HikariPool-1 - Shutdown completed.
2022-09-14 21:13:49 INFO c.z.h.HikariDataSource(close):350 - HikariPool-2 - Shutdown initiated...
2022-09-14 21:13:49 INFO c.z.h.HikariDataSource(close):352 - HikariPool-2 - Shutdown completed.
From the worker logs:
kubectl --namespace=data-prod logs -f airbyte-worker-6456df694c-ktd5n
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable CONFIG_DATABASE_USER: 'postgres'
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable CONFIG_DATABASE_PASSWORD: '*****'
2022-09-14 21:03:46 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable CONFIG_DATABASE_URL: 'jdbc:postgresql://<redacted-aws-hostname>:5432/airbyte'
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):71 - HikariPool-1 - Starting...
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):73 - HikariPool-1 - Start completed.
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):71 - HikariPool-2 - Starting...
2022-09-14 21:03:46 INFO c.z.h.HikariDataSource(<init>):73 - HikariPool-2 - Start completed.
2022-09-14 21:03:46 WARN i.a.d.c.DatabaseAvailabilityCheck(check):38 - Waiting for database to become available...
2022-09-14 21:03:46 INFO i.a.d.c.DatabaseAvailabilityCheck(lambda$isDatabaseConnected$1):75 - Testing airbyte configs database connection...
2022-09-14 21:03:47 INFO i.a.d.c.DatabaseAvailabilityCheck(check):57 - Database available.
2022-09-14 21:03:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:03:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:03:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Database: jdbc:postgresql://<redacted-aws-hostname>:5432/airbyte (PostgreSQL 13.7)
2022-09-14 21:03:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:03:47 INFO i.a.d.c.DatabaseMigrationCheck(check):46 - Current database migration version 0.
2022-09-14 21:03:47 INFO i.a.d.c.DatabaseMigrationCheck(check):47 - Minimum Flyway version required 0.35.15.001.
2022-09-14 21:04:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:04:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:04:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:05:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:05:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:05:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:06:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:06:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:06:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:07:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:07:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:07:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:08:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:08:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:08:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:09:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:09:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:09:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:10:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:10:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:10:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:11:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:11:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:11:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:12:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:12:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:12:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:13:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:13:47 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-09-14 21:13:47 INFO i.a.c.EnvConfigs(getEnvOrDefault):1002 - Using default value for environment variable STATE_STORAGE_MINIO_ENDPOINT: ''
2022-09-14 21:13:47 ERROR i.a.w.WorkerApp(main):561 - Worker app failed
io.airbyte.db.check.DatabaseCheckException: Timeout while waiting for database to fulfill minimum flyway migration version..
at io.airbyte.db.check.DatabaseMigrationCheck.check(DatabaseMigrationCheck.java:51) ~[io.airbyte.airbyte-db-db-lib-0.40.3.jar:?]
at io.airbyte.workers.WorkerApp.main(WorkerApp.java:549) [io.airbyte-airbyte-workers-0.40.3.jar:?]
2022-09-14 21:13:47 INFO c.z.h.HikariDataSource(close):347 - HikariPool-1 - Shutdown initiated...
2022-09-14 21:13:47 INFO c.z.h.p.HikariPool(shutdown):204 - HikariPool-1 - Close initiated...
2022-09-14 21:13:47 INFO c.z.h.p.HikariPool(shutdown):238 - HikariPool-1 - Closed.
2022-09-14 21:13:47 INFO c.z.h.HikariDataSource(close):349 - HikariPool-1 - Shutdown completed.
2022-09-14 21:13:47 INFO c.z.h.HikariDataSource(close):347 - HikariPool-2 - Shutdown initiated...
2022-09-14 21:13:47 INFO c.z.h.p.HikariPool(shutdown):204 - HikariPool-2 - Close initiated...
2022-09-14 21:13:47 INFO c.z.h.p.HikariPool(shutdown):238 - HikariPool-2 - Closed.
2022-09-14 21:13:47 INFO c.z.h.HikariDataSource(close):349 - HikariPool-2 - Shutdown completed.