coze-dev / coze-dev/coze-studio
docker账号注册登录异常,多用户无法稳定注册登录
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
首次注册可以成功登录,然而退出账号再次登录却报了错:invalid email or password, please try again。
另外也出现了用其他邮箱注册不了的情况(点击注册按钮没任何反应)。
**To Reproduce**
我是克隆的coze-sudio最新代码(07.31),docker方式部署,部署完成后,服务可以成功启动,并访问上coze页面;
但测试发现账号注册登录很不稳定。有时能注册成功,有时不行。
1. 同一账号注册后登录异常:
docker-server服务首次启动后,我用邮箱注册了一个账号,可以登进来coze主页面。但第二天退出账号重新登陆却报错:
弹出:“invalid email or password, please try again.”。见图1。
2. 账号注册不了的情况
输入账号邮箱和密码,点击注册没有反应。见图2.
请问这些异常是因为啥导致的?目前部署哪个版本比较稳定呢?
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
图1:
后台报错信息是:
```shell
2025/08/04 07:04:41.495616 log.go:77: [Debug] [log-id: 9b479620-2d86-4f42-92cb-ec3a46e462a4] query :
req : {}
resp: {"code":700012006,"msg":"authentication failed: missing session_key in cookie"}
2025/08/04 07:04:41.594999 session.go:55: [Error] [SessionAuthMW] session id is nil
2025/08/04 07:04:41.595084 error_resp.go:43: [Warn] [log-id: 460bd415-077e-4067-b981-973ea9b86fbd] [ErrorX] error: 700012006 code=700012006 message=authentication failed: missing session_key in cookie
2025/08/04 07:45:51 /app/domain/user/internal/dal/user.go:41 record not found
```
图2:
**Version:**
Please provide the version of {project_name} you are using.
**Environment:**
Rocky Linux release 8.10
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Start by reproducing registration and subsequent login with the Docker deployment, using the reported missing session_key in cookie and session id is nil logs as the first clues. Inspect /app/domain/user/internal/dal/user.go:41 and the docker-server session handling; done means multiple accounts can register, log out, and log back in reliably without authentication errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100