- Is this your first time deploying Airbyte?: No
- OS Version / Instance: Ubuntu and MacOS
- Memory / Disk: 16Gb / Tb
- Deployment: Docker
- Airbyte Version: latest 0.40.23
- Step: worker and cron containers crashes
hey,
I am facing an issue with aitbyte not starting when i connect it to an external db on azure postgress.
this is the logs i see in the worker container before it fails:
2022-12-22 14:33:21 INFO i.a.c.t.TemporalUtils(getTemporalClientWhenConnected):221 - Waiting for temporal server...
2022-12-22 14:33:21 WARN i.a.c.t.TemporalUtils(getTemporalClientWhenConnected):232 - Waiting for namespace default to be initialized in temporal...
2022-12-22 14:33:23 INFO i.t.s.WorkflowServiceStubsImpl(<init>):188 - Created GRPC client for channel: ManagedChannelOrphanWrapper{delegate=ManagedChannelImpl{logId=1, target=airbyte-temporal:7233}}
2022-12-22 14:33:30 INFO i.a.c.t.TemporalUtils(getTemporalClientWhenConnected):249 - Temporal namespace default initialized!
2022-12-22 14:33:30 WARN i.a.m.l.MetricClientFactory(getMetricClient):46 - MetricClient has not been initialized. Must call MetricClientFactory.CreateMetricClient before using MetricClient. Using a dummy client for now. Ignore this if Airbyte is configured to not publish any metrics.
2022-12-22 14:33:30 ERROR i.m.r.Micronaut(handleStartupException):338 - Error starting Micronaut server: Error instantiating bean of type [io.airbyte.db.check.DatabaseMigrationCheck]
Message: Version may only contain 0..9 and . (dot). Invalid version:
Path Taken: new ApplicationInitializer() --> ApplicationInitializer.jobsDatabaseMigrationCheck --> DatabaseMigrationCheck.jobsDatabaseMigrationCheck(DSLContext dslContext,[Flyway jobsFlyway],String jobsDatabaseMinimumFlywayMigrationVersion,Long jobsDatabaseInitializationTimeoutMs)
io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [io.airbyte.db.check.DatabaseMigrationCheck]
Message: Version may only contain 0..9 and . (dot). Invalid version:
Path Taken: new ApplicationInitializer() --> ApplicationInitializer.jobsDatabaseMigrationCheck --> DatabaseMigrationCheck.jobsDatabaseMigrationCheck(DSLContext dslContext,[Flyway jobsFlyway],String jobsDatabaseMinimumFlywayMigrationVersion,Long jobsDatabaseInitializationTimeoutMs)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2367) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2305) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2251) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3016) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2918) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2879) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2800) ~[micronaut-inject-3.7.1.jar:3.7.1]
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1617) ~[micronaut-inject-3.7.1.jar:3.7.1]
i disabled firewalls and ssl for my db
my env for the db are
DATABASE_USER=aibyte
DATABASE_PASSWORD=pass
DATABASE_HOST=<my db name>.postgres.database.azure.com
DATABASE_PORT=5432
DATABASE_DB=airbyte_database
# translate manually DATABASE_URL=jdbc:postgresql://${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_DB} (do not include the username or password here)
DATABASE_URL=jdbc:postgresql://=<server name>.postgres.database.azure.com:5432/airbyte_database
the main DB gets initialized correctly and temporal DBs get created also