coze-dev / coze-dev/coze-studio
使用 docker compose 部署之后, coze-server 这个服务报错 mysql 连接不上
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
main.main()
/app/main.go:60 +0xa0
2025/08/30 11:36:21.720339 main.go:117: [Info] load env file: .env
2025/08/30 11:36:21.720946 main.go:138: [Info] log level: debug
panic: InitializeInfra failed, err=mysql open, dsn: coze:coze123@tcp(localhost:3306)/opencoze?charset=utf8mb4&parseTime=True, err: dial tcp [::1]:3306: connect: connection refused
Contributor guide
Research direction
Start with /app/main.go around lines 60 and 117, then inspect the .env loading and the reported MySQL DSN for the coze-server container. Reproduce the Docker Compose deployment and verify that coze-server can establish the MySQL connection and complete startup without the connection-refused panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, go, mysql
- Domain
- backend, databases, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100