Konathala Chaitanya
08/07/2025, 11:15 AMTEMPORAL_ADDRESS is not set, setting it to 10.2.217.126:7233
PostgreSQL started.
Setup PostgreSQL schema.
2025-08-07T11:11:16.635Z 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-07T11:11:16.635Z DEBUG Setting up version tables {"logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/common/schema/setuptask.go:74"}
2025-08-07T11:11:16.636Z 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/07/2025, 11:15 AMtemporal or temporal_visibility database. This is consistent with how Airbyte's Temporal service operates: it expects to find these databases in your PostgreSQL instance and will attempt to set up the required schema in the public schema of those databases. The error message: ERROR Unable to setup SQL schema. {"error": "pq: permission denied for schema public", ...} indicates that the user configured for Temporal does not have sufficient privileges on the public schema of the database it is trying to use. This is a common issue when the required databases (temporal and temporal_visibility) are created manually but the user does not have the necessary permissions on the schema within those databases. How to resolve: 1. Ensure that both temporal and temporal_visibility databases exist. 2. Grant the Airbyte/Temporal user all privileges on these databases and specifically on the public schema within them. For example: sql GRANT ALL PRIVILEGES ON DATABASE temporal TO airbyte; GRANT ALL PRIVILEGES ON DATABASE temporal_visibility TO airbyte; GRANT ALL PRIVILEGES ON SCHEMA public TO airbyte; This matches the official solution provided in the Airbyte community forum, where the lack of permissions on the public schema caused similar errors during Temporal startup. Manually creating the databases and granting the correct privileges resolved the issue [Forum: Unable to create SQL database](https://discuss.airbyte.io/t/1544)[Github Issue: Document grants required for external airbyte database](https://github.com/airbytehq/airbyte/issues/60244). If you are unsure which database is being called at the exact moment, it is almost certainly one of these two (temporal or temporal_visibility), as these are the standard databases used by Temporal in Airbyte deployments. If you continue to see permission errors, double-check that the user has both database-level and schema-level privileges, as lacking either can cause this error.