I’m facing an issue logging into Operate, Admin, and Tasklist after configuring Camunda 8 Run (C8Run) to use a PostgreSQL database.
Previously, login with the default demo/demo user worked fine when using the default setup. However, after switching to PostgreSQL, login is no longer working.
What I tried:
Attempted to explicitly create the demo user via API
Received response:
Command 'CREATE' rejected with code 'ALREADY_EXISTS':
Expected to create user with username 'demo', but a user with this username already exists
Tried fetching/searching for the user
No user is returned (user not visible)
Deleted the /data folder (Zeebe data) and restarted C8Run
Issue still persists
Current Behavior:
Login fails for demo/demo
User seems to exist (based on API error) but is not retrievable or usable
No Users found in user_ table. table is empty
Environment:
Camunda 8 Run version: 8.9
Database: PostgreSQL
Deployment type: Local C8Run
Questions:
Is there any additional configuration required when switching to PostgreSQL for identity?
How can I reset or properly reinitialize users when using PostgreSQL?
This looks like a user initialization issue when switching Camunda 8 Run to PostgreSQL where the demo user exists in one system but not in the database tables. I found the following relevant resources:
I’m not sure about switching to PostgreSQL after using H2. However, I can confirm that Camunda Run 8.9.2 works with a local PostgreSQL database. I just need to change the RDBMS URL, username, and password. And it works.
As i mentioned earlier, when we switch from H2 to Postgres, there is no steps will take care to move the data. If we configure directly to postgres will work.