This bug is fixed for all servers setup with version v2026.6.11 or after. For anyone running a server first setup before v2026.6.11 and facing the same issue, please follow the instruction below.
To confirm it is the same issue, please look for these lines in your Spokes container logs :
panic: constraint failed: UNIQUE constraint failed: user.owner, user.name (1555)
goroutine 1 [running]:
github.com/casdoor/casdoor/object.initDefinedUser(0xc0009d1008)
/go/src/casdoor/object/init_data.go:368 +0x12b
github.com/casdoor/casdoor/object.InitFromFile()
/go/src/casdoor/object/init_data.go:82 +0x199
main.main()
/go/src/casdoor/main.go:74 +0x310
panic: constraint failed: UNIQUE constraint failed: user.owner, user.name (1555)
Here's how to fix the problem :
- Stop your Spokes container.
- Locate the init_data.json file. It is located in your SpokesAppData/casdoor/init_data.json
- Open the file to edit it.
- In the "users" section, you should have something that looks like this :
"users": [
{
"owner": "built-in",
"name": "admin",
"id": "1723c3f0-ce90-4151-a97b-10020a3ecd03",
"type": "normal-user",
"password": "$2a$11$4G7sn5F7jZadznVerySecurenhRvGK1HCiq7ZtnaiScRr/si",
"passwordSalt": "",
"passwordType": "bcrypt",
"displayName": "Admin",
"isAdmin": true,
"isGlobalAdmin": true,
"isForbidden": false,
"isDeleted": false,
"signupApplication": "app-built-in",
"address": [],
"addresses": [],
"groups": []
},
{
"owner": "spokes-org",
"name": "Matsmd",
"id": "2df51a86-1604-422c-862f-a59101304674",
"type": "normal-user",
"password": "$2a$11$9NOa4VlcY9U25XWOWXz9PEPeWDuh7VOvIsEnb.qe5u",
"passwordSalt": "",
"passwordType": "bcrypt",
"displayName": "Admin",
"isAdmin": true,
"isGlobalAdmin": false,
"isForbidden": false,
"isDeleted": false,
"signupApplication": "spokes",
"address": [],
"addresses": [],
"groups": []
}
],
- The issue is on the line : "name": "Matsmd",
- Replace any and all uppercase letters in the user name with lowercase letters. For example : "name": "matsmd",
- Save and replace the file currently in the SpokesAppData/casdoor/ folder
- Restart your Spokes container.