nullsenseN

SystemUser Works for Debug Stock Image but not Non-Debug Image

There's a lot of issues using the SystemUser.

I'm trying to upgrade our self-hosted instance of Zitadel from 2.71.10 (self-compiled source code) to 2.71.17 (v2:latest as of writing). However, I'd like to use the stock image if possible.

I'm noticing that ghcr.io/zitadel/zitadel:v2.71.17-debug works fine as expected. However, ghcr.io/zitadel/zitadel:v2.71.17 does not, giving the same errors other community members have reported relating to SystemUsers:
rpc error: code = Unauthenticated desc = Errors.Token.Invalid (AUTH-7fs1e)


time="2025-10-17T18:45:31Z" level=info msg=activity caller="/home/runner/work/zitadel/zitadel/internal/activity/activity.go:105" domain="https://{{mydomain}}:443" grpcStatus=0 httpStatus=200 instance=322930458348224793 isSystemUser=false method=/zitadel.admin.v1.AdminService/Healthz org= path= requestMethod= trigger=resourceAPI user=


Notably: isSystemUser=false

Using the -debug flavour:
time="2025-10-17T20:03:12Z" level=info msg=activity caller="/home/runner/work/zitadel/zitadel/internal/activity/activity.go:105" domain="{{mydomain}}:443" grpcStatus=0 httpStatus=200 instance=322930458348224793 isSystemUser=true method=/zitadel.admin.v1.AdminService/ListOrgs org= path= requestMethod= trigger=resourceAPI user=superuser

isSystemUser=true

This makes me think there is an issue with the system user keys we're using, but I'm not clear how this would differ between the debug and non-debug flavour. Working with the non-debug flavour is difficult because it does not have a shell I can use to look around.
Was this page helpful?