<@U04S8PLJWMT> - I am installing Airbyte Self mana...
# ask-ai
s
@kapa.ai - I am installing Airbyte Self managed community using Helm charts. Bootloader is not able to start up as it fails connecting to to airbyte-db svc. Can you help me resolve this issue ?
k
When installing Airbyte Self-Managed Community using Helm charts, if the bootloader fails to connect to the
airbyte-db
service, this is a common issue and can be caused by several factors. Here are the most relevant troubleshooting steps and solutions based on the knowledge sources: --- ### 1. Database Pod Not Ready or Failing - Check if the
airbyte-db
pod is running and healthy.
If the pod is in a
Pending
or
CrashLoopBackOff
state, the bootloader will not be able to connect. - Common causes: Volume binding issues, permission errors, or database initialization failures. For example, invalid permissions on the data directory can prevent PostgreSQL from starting, leading to connection refused errors from the bootloader [[abctl failure to connect](https://github.com/airbytehq/airbyte/issues/54199)]. Action: Check the logs of the
airbyte-db
pod:
Copy code
sh kubectl logs -n <namespace> <airbyte-db-pod-name>
Look for errors related to permissions, volume binding, or database startup. --- ### 2. Database Not Initialized or Missing - If the database
db-airbyte
does not exist, the bootloader will fail with errors like
FATAL: database "db-airbyte" does not exist
[[Unable to install Airbyte locally](https://github.com/airbytehq/airbyte/issues/45456)]. Action: Manually create the database inside the running Postgres pod:
Copy code
sh kubectl -n <namespace> exec -it <airbyte-db-pod-name> -- psql --user airbyte --dbname postgres --command='create database "db-airbyte"'
After creating the database, restart the bootloader pod. --- ### 3. Network or Service Connectivity - If you see errors like
Connection refused
or
timeout
, ensure that the
airbyte-db
service is accessible from the bootloader pod. This can be due to the database pod not being ready, service misconfiguration, or network policies blocking access [[abctl failing to install Helm chart](https://github.com/airbytehq/airbyte/issues/44928)]. Action: - Ensure the
airbyte-db
service exists and points to the correct pod. - Check for any network policies or firewalls that might block traffic between pods. --- ### 4. External Database Configuration - If you are using an external database (e.g., AWS RDS), ensure that: - The hostname is correct and resolvable from within the cluster. - Security groups/firewall rules allow connections from your Kubernetes nodes to the database. - The correct secrets and config values are set in your
values.yaml
(e.g.,
postgresql
vs.
postgres
key typo) [[Cannot connect to External RDS instance](https://github.com/airbytehq/airbyte/issues/48854)], [[Pod-airbyte-bootloader-error](https://github.com/airbytehq/airbyte/discussions/45177)]. Action: - Double-check your
values.yaml
for correct keys and indentation. - Verify DNS resolution and connectivity to the external DB from inside a pod using tools like
nslookup
or
psql
. --- ### 5. Persistent Volume Issues - If the database or minio pods are stuck in
Pending
state, it may be due to persistent volume claims not being bound [[Deploy failed with default values](https://discuss.airbyte.io/t/3825)]. Action: Check PVC and PV status:
Copy code
sh kubectl get pvc -n <namespace> kubectl get pv
Resolve any storage class or volume binding issues. --- ## Summary - Check the status and logs of the
airbyte-db
pod. - Ensure the database exists and is accessible. - Verify service connectivity and network policies. - Double-check external DB configuration and secrets. - Resolve any persistent volume issues. If you provide specific error messages or logs, I can help you further narrow down the root cause.