<@U04S8PLJWMT>, I am running Airbyte on EKS. Every...
# ask-ai
m
@kapa.ai, I am running Airbyte on EKS. Everything is running fine, but when I visited the dashboard after logging in got the following the error: """ status": 409, "response": { "message": "Failed to access database. Check the server logs for more information", "exceptionClassName": "io.airbyte.commons.server.errors.ConflictException", "exceptionStack": [], "rootCauseExceptionStack": [] """
k
The error message you are seeing:
Copy code
status: 409, response: {   message: "Failed to access database. Check the server logs for more information",   exceptionClassName: "io.airbyte.commons.server.errors.ConflictException",   exceptionStack: [],   rootCauseExceptionStack: [] }
is a known issue in Airbyte deployments, especially when running on Kubernetes/EKS with an external PostgreSQL database. This error typically indicates that the Airbyte server is unable to connect to its backend database, or there is a problem with the database schema or data. Based on the knowledge sources, here are some common causes and troubleshooting steps: 1. Database Connectivity Issues - Ensure that your EKS nodes can reach the database endpoint (network, security groups, VPC, etc.). - Double-check that the database credentials and connection details (host, port, user, password, db name) are correctly set in your Airbyte configuration or Kubernetes secrets. - If you are using an external database, verify that the environment variables or Helm values are being picked up correctly by the Airbyte pods. Sometimes, misconfiguration can cause Airbyte to try to connect to a non-existent or wrong database service, leading to this error. You can check the environment variables inside the pod to confirm this [Cannot connect to External RDS instance](https://github.com/airbytehq/airbyte/issues/48854). 2. Database Schema or Data Issues - The error can also occur if the database schema is not compatible with the Airbyte version you are running, or if there is data corruption. - There are reports of this error after upgrading or downgrading Airbyte, especially if the database migrations did not complete successfully or if the database contains unexpected data types (e.g., a string in a boolean column) ["Cannot cast to boolean" and "Failed to access database" DB errors + HTTP 409 error](https://github.com/airbytehq/airbyte/issues/54150). - Check the Airbyte server logs for more detailed error messages, such as SQL exceptions or migration errors. 3. Version Compatibility - Ensure that your Airbyte version is compatible with your PostgreSQL version. There are warnings in the logs about version mismatches between Airbyte, jOOQ (the SQL library), and PostgreSQL ["Cannot cast to boolean" and "Failed to access database" DB errors + HTTP 409 error](https://github.com/airbytehq/airbyte/issues/54150). - If you recently upgraded or downgraded Airbyte, make sure the database migrations have run successfully and the schema is up to date. 4. Potential Fixes - Some users have resolved this by upgrading to a newer Airbyte version (e.g., from 1.3.1 to 1.5.1) ["Cannot cast to boolean" and "Failed to access database" DB errors + HTTP 409 error](https://github.com/airbytehq/airbyte/issues/54150). - If you are stuck after an upgrade/downgrade, restoring the database from a backup taken before the upgrade may help, but proceed with caution. Next Steps: - Check the Airbyte server and database pod logs for more specific error messages. - Verify your database connection settings and network access. - Ensure your database schema is compatible with your Airbyte version. - If you recently upgraded/downgraded, consider running database migrations or upgrading to the latest compatible Airbyte version. If you need more targeted help, please provide relevant log snippets from the Airbyte server and database pods, as these often contain the root cause of the issue.
m
@kapa.ai I have upgraded the version to 1.5.7. I have checked the default Helm values file for the specified version doesn't contain the parameters for pod sweeper. Is it removed? If yes how are the completed pods going to be removed?
k
A message from kapa.ai
Based on the available knowledge sources, the pod-sweeper is a component in Airbyte's Kubernetes deployments responsible for cleaning up completed (successful and unsuccessful) pods. In previous Helm chart versions, the pod-sweeper configuration was present in the default values file, allowing users to customize its behavior (e.g., image, resources, schedule) [[Helm values example](https://github.com/airbytehq/airbyte/issues/49843)]. However, for Airbyte version 1.5.7, the knowledge sources do not explicitly confirm whether the pod-sweeper has been removed from the Helm chart or if its configuration has changed. There is no documentation or changelog in the provided sources that states the pod-sweeper has been deprecated or replaced in 1.5.7. What is clear from user discussions and GitHub issues is that, historically, the pod-sweeper was the primary mechanism for cleaning up completed pods, and there is no mention of an alternative built-in mechanism in Airbyte for this purpose. Support agents have also indicated that if the pod-sweeper is not present, users would need to implement their own cleanup solution [[Forum discussion](https://discuss.airbyte.io/t/2545)]. Summary: I'm sorry, but the knowledge sources do not contain enough information to confirm whether the pod-sweeper has been removed in Airbyte 1.5.7 or what the current mechanism for cleaning up completed pods is in that version. If the pod-sweeper is indeed absent from the Helm values, you may need to check the official Airbyte documentation for 1.5.7 or inspect the deployed resources in your cluster to verify if a similar cleanup process is running. If not, you may need to implement your own pod cleanup solution as previously suggested by Airbyte support.