Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用如下docker compose启动服务后登陆界面报no such table: xiang_user错误 #326

Open
237035848 opened this issue Feb 8, 2023 · 2 comments

Comments

@237035848
Copy link

使用如下docker compose启动服务后登陆界面报no such table: xiang_user错误
version: "3.9"
services:
yao:
image: yaoapp/yao-wms:1.0.3-amd64
environment:
- YAO_INIT=demo
YAO_PROCESS_RESET=flows.init.menu
YAO_PROCESS_DEMO=flows.demo.data
YAO_DB_DRIVER=mysql
YAO_DB_PRIMARY="root:123456@tcp(192.168.2.160:3306)/yao?charset=utf8mb4&parseTime=True&loc=Local"
ports:
- "40006:5099"
volumes:
- D:\SynologyDrive\Work\docker\data\yao:/data/app

volumes:
data: {}

@237035848
Copy link
Author

yao_1 | 2023/02/08 08:02:59 [Recovery] 2023/02/08 - 08:02:59 panic recovered:
yao_1 | no such table: xiang_user
yao_1 | /home/runner/work/yao/xun/utils/utils.go:22 (0xc4a244)
yao_1 | /home/runner/work/yao/xun/dbal/query/query.go:53 (0xc4a220)
yao_1 | /home/runner/work/yao/gou/query.stack.go:212 (0xde9a49)
yao_1 | /home/runner/work/yao/gou/query.stack.go:127 (0xde896c)
yao_1 | /home/runner/work/yao/gou/model.atomic.go:47 (0xdd2c29)
yao_1 | /home/runner/work/yao/yao/user/user.go:37 (0x10ec9e4)
yao_1 | /home/runner/work/yao/yao/user/process.go:41 (0x10ebaa4)
yao_1 | /home/runner/work/yao/gou/process.go:21 (0xdc642f)
yao_1 | /home/runner/work/yao/gou/api.http.go:187 (0xdc6426)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168 (0x99e9e1)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x99e9cc)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168 (0x10799b7)
yao_1 | /home/runner/work/yao/yao/service/middleware.go:32 (0x1079848)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168 (0x99e9e1)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x99e9cc)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168 (0x99db06)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x99dae9)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168 (0x99cbd0)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:555 (0x99c838)
yao_1 | /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:511 (0x99c371)
yao_1 | /opt/hostedtoolcache/go/1.18.2/x64/src/net/http/server.go:2916 (0x75ff1a)
yao_1 | /opt/hostedtoolcache/go/1.18.2/x64/src/net/http/server.go:1966 (0x75af16)
yao_1 | /opt/hostedtoolcache/go/1.18.2/x64/src/runtime/asm_amd64.s:1571 (0x473b00)

@wwsheng009
Copy link
Contributor

可以试试使用配置环境变量YAO_LOG指定日志的位置,设置环境变量YAO_ENV=development,再看看是否有错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants