coze-dev / coze-dev/coze-studio
初始化失败,请重试
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
这个 http://10.177.2.12:8888/ 是我部署好 coze-studio 之后的 URL 地址
我是在 Ubuntu 24.04 环境下部署的,完成之后,我注册了一个账号,接下来点击右上角蓝色的 “创建” 按钮,创建了一个智能体。
页面自动跳转到以下链接:
http://10.177.2.12:8888/space/7623666753502969856/bot/7623667604460142592
网页右侧显示“初始化失败,请重试”。
我查看了浏览器日志显示以下请求有报错:
http://10.177.2.12:8888/api/conversation/get_message_list
{"cursor":"0","count":15,"bot_id":"7623667604460142592","draft_mode":true,"scene":4}
报错信息如下:
{"code":500,"msg":"internal server error"}
然后我检查了容器日志,找到了以下报错信息:
coze-server | 2026/04/01 06:05:14 /app/domain/conversation/conversation/internal/dal/dao.go:133 record not found
coze-server | [0.838ms] [rows:0] SELECT * FROM `conversation` WHERE `conversation`.`creator_id` = 7623666753494581248 AND `conversation`.`agent_id` = 7623667604460142592 AND `conversation`.`scene` = 4 AND `conversation`.`connector_id` = 10000010 AND `conversation`.`status` = 1 ORDER BY `conversation`.`created_at` DESC,`conversation`.`id` LIMIT 1
coze-server | 2026/04/01 06:05:14 /app/domain/conversation/conversation/internal/dal/dao.go:60 Error 1054 (42S22): Unknown column 'user_id' in 'field list'
coze-server | 2026/04/01 06:05:14.630855 error_resp.go:52: [Error] [log-id: 7ddb45e3-5bf3-4eca-bf82-b8591523067a] [InternalError] error: Error 1054 (42S22): Unknown column 'user_id' in 'field list'
我删除之后重新部署,尝试了多次,依然是相同的情况,我不明白为什么会这样。
Contributor guide
Research direction
Start with the conversation endpoint /api/conversation/get_message_list and inspect /app/domain/conversation/conversation/internal/dal/dao.go, especially the queries at lines 60 and 133. Reproduce the request against the deployed Ubuntu setup and compare the conversation table with the query selecting user_id; done means creating an agent no longer returns the 500 initialization error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, mysql
- Domain
- api, backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100