Is this a known issue running docker-compose? ```...
# ask-ai
a
Is this a known issue running docker-compose?
Copy code
# docker-compose logs temporal --tail 20
airbyte-temporal  | TEMPORAL_ADDRESS is not set, setting it to 172.19.0.3:7233
airbyte-temporal  | PostgreSQL started.
airbyte-temporal  | Setup PostgreSQL schema.
airbyte-temporal  | 2025-10-29T03:52:14.365Z    ERROR   sql handle: unable to refresh database connection pool  {"error": "pq: password authentication failed for user \"temporal\"", "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/common/persistence/sql/sqlplugin/db_handle.go:128"}
airbyte-temporal  | 2025-10-29T03:52:14.365Z    INFO    Starting schema setup   {"config": {"SchemaFilePath":"","SchemaName":"","InitialVersion":"0.0","Overwrite":false,"DisableVersioning":false}, "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/common/schema/setuptask.go:64"}
airbyte-temporal  | 2025-10-29T03:52:14.365Z    DEBUG   Setting up version tables       {"logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/common/schema/setuptask.go:74"}
airbyte-temporal  | 2025-10-29T03:52:14.365Z    WARN    sql handle: did not refresh database connection pool because the last refresh was too close     {"min_refresh_interval_seconds": 1, "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/common/persistence/sql/sqlplugin/db_handle.go:118"}
airbyte-temporal  | 2025-10-29T03:52:14.365Z    ERROR   Unable to setup SQL schema.     {"error": "no usable database connection found", "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/sql/handler.go:56"}
What do you recommend?
k
Yes, this is a known issue when running Airbyte with docker-compose, especially when using external databases or custom users for Temporal. The error message:
Copy code
pq: password authentication failed for user "temporal"
indicates that the Temporal service is unable to authenticate with the PostgreSQL database using the provided credentials. This is a common problem if: - The user/password for the Temporal database is incorrect or not set properly in your environment variables or docker-compose configuration. - The user does not exist in the database, or the password does not match. - The database is not reachable from the Temporal container due to network or configuration issues. Recommendations: 1. Check Credentials: Ensure that the username and password for the Temporal database are correctly set in your docker-compose file or environment variables. The user "temporal" must exist in your PostgreSQL instance, and the password must match what is configured. 2. User Permissions: Make sure the "temporal" user has the necessary permissions on the Temporal and Temporal Visibility databases. If you are using a custom user, you may need to manually create the databases and grant privileges, as Airbyte expects to be able to create them if they do not exist. See the recommended SQL commands:
Copy code
create database temporal;    grant all privileges on database temporal to temporal;     create database temporal_visibility;    grant all privileges on database temporal_visibility to temporal;
[Forum: "Unable to create SQL database." when trying to connect to an external database](https://discuss.airbyte.io/t/1544) 3. Environment Variables: Double-check that all relevant environment variables (such as
POSTGRES_USER
,
POSTGRES_PASSWORD
,
DBNAME
, etc.) are set correctly for the Temporal service in your docker-compose file. 4. Database Connectivity: Ensure that the Temporal container can reach the PostgreSQL database host and port. Network misconfigurations or Docker networking issues can also cause authentication failures. 5. Logs and Troubleshooting: If you continue to see authentication errors, try connecting to the database manually using the same credentials from within the Temporal container to verify connectivity and permissions. This type of issue has been reported multiple times in the Airbyte community, and the root cause is almost always related to database user credentials or permissions, especially when using external or pre-existing databases with restricted users. If you resolve the credentials and permissions, the Temporal service should be able to connect and proceed with schema setup as expected. If you need to use a user without database creation privileges, you must pre-create the required databases and grant the necessary permissions, as described above. Otherwise, Temporal will fail to start due to lack of permissions or missing databases [Forum: "Unable to create SQL database." when trying to connect to an external database](https://discuss.airbyte.io/t/1544).