Diego Dias
09/02/2025, 6:07 AMpsql from the same machine where I'm installing Airbyte.
Here are my settings:
postgresql:
enabled: false
global:
database:
host: "host.masked"
user: "masked"
password: "masked"
database: "airbyte_db"
port: 5432
jobs:
resources:
requests:
cpu: "200m"
memory: "250m"
limits:
cpu: "500m"
memory: "1Gi"
# -- storage settings
storage:
type: "azure"
bucket:
log: "logs"
state: "logs"
workloadOutput: "logs"
azure:
connectionString: "connectionstring-masked"
externalDatabase:
host: "host.masked"
port: 5432
database: "airbyte_db"
user: "masked"
password: "masked"
# -- temporal settings
temporal:
resources:
limits:
cpu: "1"
memory: "2Gi"
extraEnv:
- name: SQL_TLS_ENABLED
value: "true"
- name: POSTGRES_TLS_ENABLED
value: "true"
- name: POSTGRES_TLS_DISABLE_HOST_VERIFICATION
value: "true"
- name: SKIP_DB_CREATE
value: "true"
worker:
replicaCount: 2
resources:
limits:
cpu: "1"
memory: "2Gi"
requests:
cpu: "500m"
memory: "500m"
extraEnvs:
- name: MAX_SYNC_WORKERS
value: 10
- name: MAX_CHECK_WORKERS
value: 10
Stack trace:
2025-09-02 05:46:56,824 [main] WARN i.a.d.c.DatabaseAvailabilityCheck$DefaultImpls(check):65 - Waiting for database to become available...
2025-09-02 05:46:56,824 [main] INFO i.a.d.c.DatabaseAvailabilityCheck$DefaultImpls(isDatabaseConnected$lambda$6):96 - Testing airbyte configs database connection...
2025-09-02 05:47:26,826 [main] ERROR i.a.d.c.DatabaseAvailabilityCheck$DefaultImpls(isDatabaseConnected$lambda$6):103 - Failed to verify database connection.
org.jooq.exception.DataAccessException: Error getting connection from data source HikariDataSource (HikariPool-1)
at org.jooq_3.19.18.POSTGRES.debug(Unknown Source)
at org.jooq.impl.DataSourceConnectionProvider.acquire(DataSourceConnectionProvider.java:90)
at org.jooq.impl.DefaultExecuteContext.connection(DefaultExecuteContext.java:651)
at org.jooq.impl.AbstractQuery.connection(AbstractQuery.java:388)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:308)
at org.jooq.impl.AbstractResultQuery.fetchLazy(AbstractResultQuery.java:301)
at org.jooq.impl.AbstractResultQuery.fetchLazyNonAutoClosing(AbstractResultQuery.java:322)
at org.jooq.impl.SelectImpl.fetchLazyNonAutoClosing(SelectImpl.java:3256)
at org.jooq.impl.ResultQueryTrait.fetchOne(ResultQueryTrait.java:509)
at org.jooq.impl.Tools.attach(Tools.java:1687)
at org.jooq.impl.DefaultDSLContext.fetchOne(DefaultDSLContext.java:5019)
at org.jooq.impl.DefaultDSLContext.lambda$fetchValue$55(DefaultDSLContext.java:5039)
at org.jooq.impl.Tools.attach(Tools.java:1687)
at org.jooq.impl.DefaultDSLContext.fetchValue(DefaultDSLContext.java:5039)
at org.jooq.impl.DefaultDSLContext.fetchValue(DefaultDSLContext.java:5058)
at org.jooq.impl.DefaultDSLContext.fetchExists(DefaultDSLContext.java:5150)
at io.airbyte.db.check.DatabaseAvailabilityCheck$DefaultImpls.isDatabaseConnected$lambda$6$lambda$4(DatabaseAvailabilityCheck.kt:98)
at io.airbyte.db.Database.query(Database.kt:13)
at io.airbyte.db.check.DatabaseAvailabilityCheck$DefaultImpls.isDatabaseConnected$lambda$6(DatabaseAvailabilityCheck.kt:97)
at io.airbyte.db.check.DatabaseAvailabilityCheck$DefaultImpls.check(DatabaseAvailabilityCheck.kt:71)
at io.airbyte.db.check.ConfigsDatabaseAvailabilityCheck.check(ConfigsDatabaseAvailabilityCheck.kt:18)
at io.airbyte.db.init.DatabaseInitializer$DefaultImpls.initialize(DatabaseInitializer.kt:85)
at io.airbyte.db.init.ConfigsDatabaseInitializer.initialize(ConfigsDatabaseInitializer.kt:20)
at io.airbyte.bootloader.Bootloader.initializeDatabases(Bootloader.kt:263)
at io.airbyte.bootloader.Bootloader.load(Bootloader.kt:80)
at io.airbyte.bootloader.ApplicationKt.main(Application.kt:25)
Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms (total=0, active=0, idle=0, waiting=1)
at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:709)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:188)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:146)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:99)
at org.jooq.impl.DataSourceConnectionProvider.acquire(DataSourceConnectionProvider.java:87)
... 24 common frames omitted
Caused by: org.postgresql.util.PSQLException: FATAL: database "db-airbyte" does not exist
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2734)
at org.postgresql.core.v3.QueryExecutorImpl.readStartupMessages(QueryExecutorImpl.java:2859)
at org.postgresql.core.v3.QueryExecutorImpl.<init>(QueryExecutorImpl.java:178)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:344)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:57)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:277)
at org.postgresql.Driver.makeConnection(Driver.java:448)
at org.postgresql.Driver.connect(Driver.java:298)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:139)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:368)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:205)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:483)
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:747)
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:726)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
2025-09-02 05:47:26,826 [main] INFO i.a.d.c.DatabaseAvailabilityCheck$DefaultImpls(check):73 - Database is not ready yet. Please wait a moment, it might still be initializing...
Can someone help me figure out what’s causing this problem?kapa.ai
09/02/2025, 6:08 AMFATAL: database "db-airbyte" does not exist indicates that Airbyte is attempting to connect to a database named db-airbyte, which does not exist on your PostgreSQL server. You also mention that your configuration specifies a different database name (airbyte_db), but Airbyte appears to be ignoring this and defaulting to db-airbyte. ### Key Points from Knowledge Sources 1. Manual Database Creation May Be Required Several users have encountered similar issues where Airbyte fails to connect because the expected database does not exist. The solution in these cases was to manually create the missing database. For example, one user resolved the issue by running: sh psql --user airbyte --dbname postgres --command='create database "db-airbyte"' After creating the database, the installation proceeded successfully [[source]](https://github.com/airbytehq/airbyte/issues/45456). 2. Configuration Variables May Be Ignored There is evidence that the externalDatabase section in the Helm values file is not always respected by the Airbyte Helm chart. Instead, the chart may use the values under global.database. One user noted that the externalDatabase values "don't appear to be used anywhere in the templates" and that global.database should be used instead [[source]](https://github.com/airbytehq/airbyte/issues/43328). 3. Database Name Mismatch If Airbyte is still trying to connect to db-airbyte despite your configuration, it suggests that either: - The configuration is not being picked up correctly (possibly due to a typo, indentation, or Helm chart version issue). - The chart defaults to db-airbyte if it cannot find the correct value. ### What You Can Do - Double-check your Helm values file Ensure that the global.database.database value is set to your intended database name (airbyte_db) and that there are no indentation or formatting issues. - Remove or ignore the externalDatabase section Since the chart may not use it, focus on the global.database section. - Manually create the database Airbyte is looking for As a workaround, you can manually create the db-airbyte database on your PostgreSQL server. This will allow the bootloader to proceed, but it does not address the root cause of the configuration mismatch. - Check your Helm chart version Some issues with database configuration have been fixed in newer chart versions. Upgrading may help [[source]](https://discuss.airbyte.io/t/3787). ### Example Command to Create the Database sh psql -h <your-db-host> -U <your-db-user> -d postgres -c 'CREATE DATABASE "db-airbyte";' ### Summary - Airbyte is trying to connect to a database named db-airbyte because it is not picking up your custom database name from the configuration. - The Helm chart may not respect the externalDatabase section; use global.database instead. - As a workaround, manually create the db-airbyte database. - Double-check your values file and consider upgrading your Helm chart. If after these steps Airbyte still ignores your custom database name, there may be a bug or a deeper configuration issue. In that case, please provide your full values file and Helm chart version for further troubleshooting. References: [GitHub Issue: Unable to install Airbyte locally - Unable to connect to the database](https://github.com/airbytehq/airbyte/issues/45456), [GitHub Issue: Platform Chart changes to Temporal Deployment causing TLS issues.](https://github.com/airbytehq/airbyte/issues/43328), [Forum: [Helm] Airbyte deploy with external database stucks on bootloader initilization](https://discuss.airbyte.io/t/3787)Diego Dias
09/02/2025, 6:12 AM