The postgres database is in AWS RDS. Are you running Airbyte OSS in Kubernetes? If not then how we set it up might not be super relevant
It still might be. The issue here is the database connection itself
This is what we used for our helm values:
enabled: false
externalDatabase:
user: root
database: postgres
port: 5432
existingSecret: "airbyte-1p-airbyte-db"
existingSecretPasswordKey: "password"```
And then we set externalDatabase.host
for each environment
Thanks for sharing! I guess the issue might be with the gcp postgres
Are you able to connect to the database with the user you setup for airbyte at all? from a database client?
Yes, I can even see the records in the databases created by airbyte and temporal
Database permissions are setup properly?
I tried setting it up with the admin user to make sure
It was still the same
Do you have query logging? Can you see which specific queries are failing?
That’s the issue. No query is failing. It’s just a bunch of airbyte-temporal issues
It started to happen after I migrated from v0.50.7
We have a running document of issues with Airbyte that we’ve had to fix
Have you tried dropping the temporal database from postgres since the upgrade?
I tried setting up from scratch with a newly created db
We’re using an external Google Cloud SQL postgres instance from a private GKE cluster without issues. Here’s the example config you can probably merge with yours:
database:
secretName: &db-secret <your-kubernetes-secret-name>
secretValue: &db-secret-key <your-kubernetes-secret-key>
postgresql:
enabled: false
externalDatabase:
host: "<your-postgres-server-internal-ip-address>"
user: <your-postgres-db-username>
password: ""
existingSecret: *db-secret
existingSecretPasswordKey: *db-secret-key
database: db-airbyte
port: 5432
jdbcUrl: "jdbc:postgresql://<your-postgres-server-internal-ip-address>:5432/db-airbyte"```
(you can also change the `database` name if needed, but make sure you also change it in `jdbcUrl`)
It's also worth noting that setting `postgresql.enabled` to `false` just disables the creation of the `airbyte-db` pod—none of the other settings in that section are used when you're using an external postgres DB.