tyx
tyx3mo ago

zitadel setup times out

zitadel setup --masterkeyFromEnv --init-projections=true --config ../z_actions.yaml --config ../z_authn.yaml --config ../z_authz.yaml --config ../z_db.yaml --config ../z_runtime.yaml --config ../z_telemetry.yaml --config ../z_usage_control.yaml --steps ./z_initial_instance.yaml
INFO[0000] setup started caller="github.com/zitadel/zitadel/cmd/setup/setup.go:103"


INFO[0003] verify migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:43" ...
name=31_add_aggregate_index_to_fields
INFO[0004] verify migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:43" name=46_init_permission_functions
INFO[0005] verify migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:43" name=03_default_instance
INFO[0007] starting migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:66" name=03_default_instance
ERRO[0044] failed to rollback transaction caller="github.com/zitadel/zitadel/internal/database/database.go:58" error="sql: transaction has already been committed or rolled back"
ERRO[0044] migration failed caller="github.com/zitadel/zitadel/internal/migration/migration.go:68" error="ID=COMMA-AiV3u Message=Errors.Internal Parent=(timeout: context deadline exceeded)" name=03_default_instance
FATA[0046] migration failed caller="github.com/zitadel/zitadel/cmd/setup/setup.go:304" error="ID=COMMA-AiV3u Message=Errors.Internal Parent=(timeout: context deadline exceeded)" name=03_default_instance
error: Recipe `zitadel-setup-raw` failed on line 87 with exit code 1
zitadel setup --masterkeyFromEnv --init-projections=true --config ../z_actions.yaml --config ../z_authn.yaml --config ../z_authz.yaml --config ../z_db.yaml --config ../z_runtime.yaml --config ../z_telemetry.yaml --config ../z_usage_control.yaml --steps ./z_initial_instance.yaml
INFO[0000] setup started caller="github.com/zitadel/zitadel/cmd/setup/setup.go:103"


INFO[0003] verify migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:43" ...
name=31_add_aggregate_index_to_fields
INFO[0004] verify migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:43" name=46_init_permission_functions
INFO[0005] verify migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:43" name=03_default_instance
INFO[0007] starting migration caller="github.com/zitadel/zitadel/internal/migration/migration.go:66" name=03_default_instance
ERRO[0044] failed to rollback transaction caller="github.com/zitadel/zitadel/internal/database/database.go:58" error="sql: transaction has already been committed or rolled back"
ERRO[0044] migration failed caller="github.com/zitadel/zitadel/internal/migration/migration.go:68" error="ID=COMMA-AiV3u Message=Errors.Internal Parent=(timeout: context deadline exceeded)" name=03_default_instance
FATA[0046] migration failed caller="github.com/zitadel/zitadel/cmd/setup/setup.go:304" error="ID=COMMA-AiV3u Message=Errors.Internal Parent=(timeout: context deadline exceeded)" name=03_default_instance
error: Recipe `zitadel-setup-raw` failed on line 87 with exit code 1
3 Replies
tyx
tyxOP3mo ago
GitHub
[Bug]: Setup 03_default_instance fails after Tx retries on Cockroac...
Preflight Checklist I could not find a solution in the documentation, the existing issues or discussions I have joined the ZITADEL chat Environment Self-hosted Version main: 04b9e9b Database Cockro...
tyx
tyxOP3mo ago
I am using postgres17 I cannot see anything in the db longs for this, think this is timeing outwithin zitadel (using 3.3.0) This got resolved, some network issue, corrupt db state etc. Moved to a machine w a faster network and re-did the whole thing. worked as expected
Gigi the Giraffe (Zitadel)
🎉 Looks like you just helped out another community member! Thanks for being so helpful <@178803097576013824>! You're now one step closer to leveling up—keep up the amazing peer support! 🚀

Did you find this page helpful?