#11648·zitadel

[Bug]: Upgrade Docker container to V4.11 results in boot loop and DB errors.

Author: jordanp123Created Feb 19, 2026Updated Oct 1, 2026

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

4.11

Database

PostgreSQL

Database Version

18

Describe the problem caused by this bug

Upon upgrading Zitadel from 4.10.1 to 4.11 the docker container goes into a boot loop and appears to try to recreate the original database or at least transfer it (I'm not sure).

To reproduce

  1. Create a functioning Zitadel with 4.10.1 and Postgres 18,
  2. Upgrade the zitadel container to 4.11.

Logs below from docker compose

Container docker-zdb-1 Healthy zitadel-1 | time=2026-02-18T19:47:21.362Z level=INFO msg="structured logger configured" config_level=DEBUG format=text zitadel-1 | time=2026-02-18T19:47:21.362Z level=INFO msg="initialization started" stream=runtime version=v4.11.0 zitadel-1 | time="2026-02-18T19:47:21Z" level=debug msg="failed to get oid for command type" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/v3/eventstore.go:119" error="no rows in result set" zitadel-1 | time=2026-02-18T19:47:21.369Z level=INFO msg="verify user" stream=runtime version=v4.11.0 username=zitadel zitadel-1 | time=2026-02-18T19:47:21.370Z level=INFO msg="verify database" stream=runtime version=v4.11.0 database=zitadel zitadel-1 | time=2026-02-18T19:47:21.371Z level=INFO msg="verify grant" stream=runtime version=v4.11.0 user=zitadel database=zitadel zdb-1 | 2026-02-18 19:47:21.370 UTC [1634] ERROR: role "zitadel" already exists zdb-1 | 2026-02-18 19:47:21.370 UTC [1634] STATEMENT: -- replace zitadel with the name of the user zdb-1 | CREATE USER "zitadel" WITH PASSWORD 'Password Omitted' zdb-1 | 2026-02-18 19:47:21.371 UTC [1634] ERROR: database "zitadel" already exists zdb-1 | 2026-02-18 19:47:21.371 UTC [1634] STATEMENT: -- replace zitadel with the name of the database zdb-1 | CREATE DATABASE "zitadel" zitadel-1 | time=2026-02-18T19:47:21.377Z level=INFO msg="verify zitadel" stream=runtime version=v4.11.0 database=zitadel zitadel-1 | time=2026-02-18T19:47:21.383Z level=INFO msg="verify system" stream=runtime version=v4.11.0 zitadel-1 | time=2026-02-18T19:47:21.387Z level=INFO msg="verify encryption keys" stream=runtime version=v4.11.0 zitadel-1 | time=2026-02-18T19:47:21.388Z level=INFO msg="verify projections" stream=runtime version=v4.11.0 zitadel-1 | time=2026-02-18T19:47:21.394Z level=INFO msg="verify eventstore" stream=runtime version=v4.11.0 zitadel-1 | time=2026-02-18T19:47:21.397Z level=INFO msg="verify events tables" stream=runtime version=v4.11.0 zitadel-1 | time=2026-02-18T19:47:21.403Z level=INFO msg="verify unique constraints" stream=runtime version=v4.11.0 zdb-1 | 2026-02-18 19:47:22.548 UTC [1636] ERROR: relation "cache.objects" does not exist at character 44 zdb-1 | 2026-02-18 19:47:22.548 UTC [1636] QUERY: EXISTS (SELECT 1 FROM pg_class WHERE oid = 'cache.objects'::REGCLASS AND relpersistence = 'u') zdb-1 | 2026-02-18 19:47:22.548 UTC [1636] CONTEXT: PL/pgSQL function inline_code_block line 4 at IF zdb-1 | 2026-02-18 19:47:22.548 UTC [1636] STATEMENT: DO zdb-1 | $do$ zdb-1 | BEGIN zdb-1 | -- Convert objects to logged first (if unlogged) zdb-1 | IF EXISTS (SELECT 1 FROM pg_class WHERE oid = 'cache.objects'::REGCLASS AND relpersistence = 'u') THEN zdb-1 | ALTER TABLE IF EXISTS cache.objects zdb-1 | SET LOGGED; zdb-1 | END IF; zdb-1 | zdb-1 | -- Convert string_keys to logged (if unlogged) zdb-1 | -- Drop the FK constraint first to allow converting cache.string_keys (and avoid loggedness-change restrictions involving the FK) zdb-1 | IF EXISTS (SELECT 1 FROM pg_class WHERE oid = to_regclass('cache.objects') AND relpersistence = 'u') THEN zdb-1 | ALTER TABLE IF EXISTS cache.objects zdb-1 | SET LOGGED; zdb-1 | END IF; zdb-1 | zdb-1 | -- Convert string_keys to logged (if unlogged) zdb-1 | -- Drop the FK constraint first to avoid conflict with parent table conversion zdb-1 | IF EXISTS (SELECT 1 FROM pg_class WHERE oid = to_regclass('cache.string_keys') AND relpersistence = 'u') THEN zdb-1 | ALTER TABLE IF EXISTS cache.string_keys zdb-1 | DROP CONSTRAINT IF EXISTS fk_object; zdb-1 | ALTER TABLE IF EXISTS cache.string_keys zdb-1 | SET LOGGED; zdb-1 | ALTER TABLE IF EXISTS cache.string_keys zdb-1 | ADD CONSTRAINT fk_object zdb-1 | FOREIGN KEY(cache_name, object_id) zdb-1 | REFERENCES cache.objects(cache_name, id) zdb-1 | ON DELETE CASCADE; zdb-1 | END IF; zdb-1 | zdb-1 | CREATE UNLOGGED TABLE IF NOT EXISTS cache.objects_default zdb-1 | PARTITION OF cache.objects DEFAULT; zdb-1 | zdb-1 | CREATE UNLOGGED TABLE IF NOT EXISTS cache.string_keys_default zdb-1 | PARTITION OF cache.string_keys DEFAULT; zdb-1 | END zdb-1 | $do$ zdb-1 | zitadel-1 exited with code 1 (restarting)

Expected behavior

No response

Operating System

Device; Proxmox VM OS: Ubuntu 24.04 (latest updates). Docker Runtime (Latest as of February 19th 2026).

Relevant Configuration

No response

Additional Context

No response