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构建时运行时报错 #6

Open
fly2008begin opened this issue Sep 3, 2020 · 5 comments
Open

docker构建时运行时报错 #6

fly2008begin opened this issue Sep 3, 2020 · 5 comments

Comments

@fly2008begin
Copy link

No description provided.

@fly2008begin
Copy link
Author

fly2008begin commented Sep 3, 2020

使用nodb的DockerFile构建后,运行时log报错

DEBUG 18:52:35 revel server.go:106: InitServerEngine: Found server engine and invoking section=ser ver name=go panic: init: router initialize error goroutine 1 [running]: github.com/leanote/leanote/vendor/github.com/revel/revel/logger.(*RevelLogger).Panic(0xc420040ec0, 0 xb5a473, 0x1d, 0xc4203a9ca0, 0x2, 0x2) /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel /revel/logger/logger.go:149 +0xaf github.com/leanote/leanote/vendor/github.com/revel/revel.init.5.func1() /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel /revel/router.go:840 +0x241 github.com/leanote/leanote/vendor/github.com/revel/revel.runStartupHooks() /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel /revel/server.go:126 +0x7f github.com/leanote/leanote/vendor/github.com/revel/revel.InitServer() /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel /revel/server.go:37 +0x39 github.com/leanote/leanote/vendor/github.com/revel/revel.Run(0x0) /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel /revel/server.go:69 +0xd4 main.main() /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/tmp/main.go:2312 +0 x223d5

@fly2008begin fly2008begin changed the title docker docker构建时运行时报错 Sep 3, 2020
@axboy
Copy link
Owner

axboy commented Sep 10, 2020

/data/leanote/conf/app.conf 文件需要映射,还需要一个初始化好数据的mongodb。

我使用axboy/leanote:nodb 一切正常,dockerhub通过nodb的dockerfile构建的

@fly2008begin
Copy link
Author

/data/leanote/conf/app.conf 文件需要映射,还需要一个初始化好数据的mongodb。

我使用axboy/leanote:nodb 一切正常,dockerhub通过nodb的dockerfile构建的

能否给分享个完整镜像,我尝试了多次都没有成功 好像总是go语言的哪个依赖time out

@axboy
Copy link
Owner

axboy commented Sep 15, 2020

你使用docker hub 的axboy/leanote:nodb看看,或者用latest的镜像

@cdlaimin
Copy link

db.host=172.17.0.1 #数据库地址
db.port=27017
db.dbname=leanote # required
db.username= # 数据库用户名,默认留空
db.password= # 数据库密码,默认留空

1.用docker0的网卡的地址
2.用户名密码为空
233

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

3 participants