Matheus Dantas
08/25/2025, 10:30 AM2025-08-25 10:28:15,244 [io-executor-thread-3] ERROR i.a.c.s.e.h.KnownExceptionHandler(handle):34 - Known Exception: class KnownExceptionInfo { │
│ message: Failed to access database. Check the server logs for more information │
│ exceptionClassName: io.airbyte.commons.server.errors.ConflictException │
│ exceptionStack: [io.airbyte.commons.server.errors.ConflictException: Failed to access database. Check the server logs for more information, at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:45), at io.airbyte.server.apis.controllers.SourceApiController.listSourcesForWorkspace(SourceApiControl │
│ rootCauseExceptionClassName: null │
│ rootCauseExceptionStack: [] │
│ details: null │
│ }kapa.ai
08/25/2025, 10:30 AMFailed to access database. Check the server logs for more information exceptionClassName: io.airbyte.commons.server.errors.ConflictException is a generic error indicating that Airbyte is unable to connect to its backend database. This can be caused by several issues, as seen in similar reports for recent Airbyte versions: ### Common Causes and Troubleshooting Steps 1. Database Does Not Exist - In some cases, Airbyte fails to connect because the expected database (e.g., db-airbyte) does not exist. You may see errors like FATAL: database "db-airbyte" does not exist in the logs. The solution is to manually create the required database in your PostgreSQL instance. For example, if running in Kubernetes, you might use: bash docker exec -it airbyte-abctl-control-plane kubectl -n airbyte-abctl exec -it airbyte-db-0 -- psql --user airbyte --dbname postgres --command='create database "db-airbyte"' After creating the database, the installation or startup should proceed successfully [Unable to install Airbyte locally - Unable to connect to the database](https://github.com/airbytehq/airbyte/issues/45456). 2. Database Permissions or Initialization Issues - If the database directory has incorrect permissions, PostgreSQL may fail to start, leading to connection errors. Ensure that the data directory permissions are set correctly (typically 0700 or 0750 for the PostgreSQL data directory) [failure to connect to airbyte-db postgresql](https://github.com/airbytehq/airbyte/issues/54199). 3. Version Mismatch or Migration Issues - Upgrading Airbyte or its Helm chart can sometimes cause database schema mismatches or migration failures, resulting in similar errors. Check the logs for migration errors or version mismatches. If you recently upgraded, consider rolling back to a previous working version or reviewing the migration steps [Cannot cast to boolean and Failed to access database DB errors + HTTP 409 error](https://github.com/airbytehq/airbyte/issues/54150). 4. External Database Configuration - If you are using an external PostgreSQL database, double-check your .env or configuration files for correct host, port, user, password, and database name. Also, ensure that the database is reachable from the Airbyte containers and that the user has the necessary permissions [Failed to connect to external postgres DB](https://discuss.airbyte.io/t/1264). ### Next Steps - Check the Airbyte and database logs for more specific error messages (e.g., authentication failures, missing database, permission denied). - Verify that the database exists and is accessible with the credentials provided to Airbyte. - Ensure database migrations have completed successfully and that you are not hitting a version compatibility issue. - If you see a specific error like "database does not exist," create the database manually as shown above. If you provide more detailed logs from the Airbyte server or database, I can help further pinpoint the issue.