<@U04S8PLJWMT> i am nogt getting to know which daa...
# ask-ai
k
@kapa.ai i am nogt getting to know which daata base it is calling
TEMPORAL_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"}
k
Based on the logs you provided and the knowledge sources, the database being called during this step is most likely either the
temporal
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:
Copy code
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:
Copy code
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.