Konathala Chaitanya
08/04/2025, 8:22 AMTEMPORAL_ADDRESS is not set, setting it to 10.2.242.9:7233
PostgreSQL started.
Setup PostgreSQL schema.
2025-08-04T08:12:24.625Z 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"}
2025-08-04T08:12:24.625Z DEBUG Setting up version tables {"logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/common/schema/setuptask.go:74"}
2025-08-04T08:12:24.626Z ERROR Unable to setup SQL schema. {"error": "pq: permission denied for schema public", "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/sql/handler.go:56"}kapa.ai
08/04/2025, 8:22 AMUnable to create SQL database. {"error": "pq: database \"temporal\" does not exist", ...} or sql schema version compatibility check failed: pq: no pg_hba.conf entry for host, user "user", database "temporal", no encryption indicate the error is related to the temporal database. Similarly, you may see errors referencing temporal_visibility or other database names. If your error message does not explicitly mention the database, you should look for keywords like database "temporal", database "temporal_visibility", or similar in the error logs. In most Airbyte + Temporal setups, the main databases involved are temporal and temporal_visibility. If you have configured custom database names, check your configuration and match it with the error message. If you can provide the exact error message, I can help you pinpoint the database more precisely. Otherwise, based on the patterns in the knowledge sources, the error is most likely related to either the temporal or temporal_visibility database, as these are the standard databases Temporal expects and tries to connect to or create during startup and schema setup processes. If the error is about permissions or missing databases, it is usually clear in the log line which database is affected—for example, "pq: database 'temporal' does not exist" or "permission denied to create database" for a specific database name. If the error is more generic, reviewing the full log context is necessary to determine the exact database involved[Forum: Unable to create SQL database](https://discuss.airbyte.io/t/1544)[Github: Unable to start server. Error: sql schema version compatibility check failed](https://github.com/airbytehq/airbyte/issues/26647). If your error message does not specify the database, and you are still unsure, please share the full error log for a more targeted answer.kapa.ai
08/04/2025, 8:22 AMkapa.ai
08/04/2025, 8:23 AMERROR Unable to setup SQL schema. {"error": "pq: permission denied for schema public", ...} indicates that the Temporal service is trying to set up its schema in a PostgreSQL database, but the user it is connecting with does not have the necessary permissions on the public schema. Based on the knowledge sources, this error typically occurs during the initial schema setup phase for either the temporal or temporal_visibility databases, which are required by Temporal when running with Airbyte. The logs do not specify which database directly, but by default, Temporal will attempt to set up the schema in the database specified by your configuration (commonly temporal first, then temporal_visibility). To resolve this, you should ensure that the user Airbyte/Temporal is using has the correct privileges on the public schema of both the temporal and temporal_visibility databases. The required grants are: sql GRANT ALL PRIVILEGES ON DATABASE temporal TO <your_user>; GRANT ALL PRIVILEGES ON DATABASE temporal_visibility TO <your_user>; GRANT ALL PRIVILEGES ON SCHEMA public TO <your_user>; If you are still unsure which database is affected, you can run these grants on both databases to cover both possibilities. This approach is confirmed as necessary in several user reports and official answers in the knowledge sources[Forum: Unable to create SQL database](https://discuss.airbyte.io/t/1544)[Github: Document grants required for external airbyte database](https://github.com/airbytehq/airbyte/issues/60244). If you continue to see the error after applying these grants, double-check that the user is connecting to the correct database and that the privileges are set as expected.