ZITADELZZITADEL
Powered by
HercticH
ZITADELβ€’2w agoβ€’
8 replies
Herctic

Migration failed: Azure Container App

🏬Self-hosted❓Questionβœ…Solved
Hello, I am trying to get Zitadel set up for a PoC as an Azure container app right now and running into an issue relating to migration? I have loosely followed the docker compose documentation as we are deploying individual container apps within the same container app environment with OpenTofu.
I've confirmed that the zitadel container is able to access the postgres container app via the given postgres host env var shown below.

Currently deployed:
* DNS server with entries pointing dev-zitadel*.customdomain.com to the application gateway
* Application Gateway to point the dev-zitadel*.customdomain.com traffic to the default container app url: blah.region.azurecontainerapps.io
* Postgresql (zitadel_postgresql) as a container app in the same environment, which is using a mounted Azure file share as the data directory.
* Zitadel (zitadel), which immediately starts a migration and then eventually failing with
level=error msg="migration failed" caller="/home/runner/work/zitadel/zitadel/cmd/setup/setup.go:378" error="ID=MIGR-as3f7 Message=Errors.Internal" name=03_default_instance
level=error msg="migration failed" caller="/home/runner/work/zitadel/zitadel/cmd/setup/setup.go:378" error="ID=MIGR-as3f7 Message=Errors.Internal" name=03_default_instance

* the logs have been attached as a .txt
* the env vars have also been attached
* Zitadel login (zitadel-login)

Any help or guidance would be appreciated!
zitadel_logs.txt10.26KB
zitadel_env_vars.tf2.96KB
ZITADEL banner
ZITADELJoin
ZITADEL - Identity infrastructure, simplified for you.
4,374Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Migration failed issue
happyHyppoHhappyHyppo / questions-help-bugs
8mo ago
Migration failed. Permission denied
R7FXRR7FX / questions-help-bugs
7mo ago
Self Hosted Azure Container Apps - "Database "zitadel" already exists"
AndyAAndy / questions-help-bugs
10mo ago