Hi
I am following this doc for self-hosting temporal for the production environment and settled the config file using the below link
https://github.dev/temporalio/temporal/blob/master/config/development-postgres.yaml
In the Postgres DB, I have two databases temporal
and temporal_visibility
.
Using the below Docker run command
docker run \
-e SERVICES=history,matching,worker,frontend \
-e LOG_LEVEL=info \
-e DYNAMIC_CONFIG_FILE_PATH=<CONFIG_FILE_LOCATION>/config/docker.yaml \
-v <CONFIG_FILE_LOCATION>/config/docker.yaml:/etc/temporal/config/config_template.yaml \
-v <CONFIG_FILE_LOCATION>/config/dynamicconfig/development-sql.yaml:/etc/temporal/config/dynamicconfig/development-sql.yaml \
temporalio/server:latest
Error:
[Fx] PROVIDE fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
[Fx] PROVIDE fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
[Fx] ERROR Failed to initialize custom logger: could not build arguments for function "go.uber.org/fx".(*App).constructCustomLogger.func2
/go/pkg/mod/go.uber.org/fx@v1.18.2/app.go:414:
failed to build fxevent.Logger:
could not build arguments for function "go.temporal.io/server/temporal".glob..func8
/home/builder/temporal/temporal/fx.go:921:
failed to build log.Logger:
received non-nil error from function "go.temporal.io/server/temporal".ServerOptionsProvider
/home/builder/temporal/temporal/fx.go:158:
sql schema version compatibility check failed: unable to read DB schema version keyspace/database: temporal error: pq: relation "schema_version" does not exist
Unable to create server. Error: could not build arguments for function "go.uber.org/fx".(*App).constructCustomLogger.func2 (/go/pkg/mod/go.uber.org/fx@v1.18.2/app.go:414): failed to build fxevent.Logger: could not build arguments for function "go.temporal.io/server/temporal".glob..func8 (/home/builder/temporal/temporal/fx.go:921): failed to build log.Logger: received non-nil error from function "go.temporal.io/server/temporal".ServerOptionsProvider (/home/builder/temporal/temporal/fx.go:158): sql schema version compatibility check failed: unable to read DB schema version keyspace/database: temporal error: pq: relation "schema_version" does not exist