cronsun icon indicating copy to clipboard operation
cronsun copied to clipboard

cronnode cronweb启动不了

Open jhkangah opened this issue 1 year ago • 3 comments

Please answer these questions before submitting your issue. Thanks! 在你提交 issue 前,请先回答以下问题,谢谢!

  1. What version of Go and cronsun version are you using? 你用的是哪个版本的 Go 和 哪个版本的 cronsun? cronsun-0.3.5

  2. What operating system and processor architecture are you using (go env)? 你用的是哪个操作系统,什么架构的? centos7

  3. What did you do? If possible, provide a recipe for reproducing the error. A complete runnable program is good. 你做了什么,遇到了什么问题?尽可能描述清楚问题,最好把操作步骤写下来,按这些步骤操作后能重现你的问题。 [root@localhost cronsun]# ./cronnode -conf conf/base.json 2022-07-02T14:45:02.070+0800 ERROR node/server.go:38 Connect to MongoDB [127.0.0.1:27017] failed: no reachable servers

[root@localhost cronsun]# ./cronweb -conf conf/base.json 2022-07-02T14:57:50.360+0800 ERROR web/server.go:39 Connect to MongoDB [127.0.0.1:27017] failed: no reachable servers github.com/shunfei/cronsun/log.Errorf /Users/qleelulu/dev/source/golang/src/github.com/shunfei/cronsun/log/log.go:39 main.main /Users/qleelulu/dev/source/golang/src/github.com/shunfei/cronsun/bin/web/server.go:39 runtime.main /usr/local/Cellar/go/1.11/libexec/src/runtime/proc.go:201

  1. What did you expect to see? 你期望得到什么样的结果? 成功启动

  2. What did you see instead? 现在你得到的结果是什么样的? 启动不了

jhkangah avatar Jul 25 '22 10:07 jhkangah

centos7 mongo6.0 默认安装没有创建用户密码 确认mongo有启动

[root@localhost cronsun]# ./cronnode -conf conf/base.json 2022-07-02T14:45:02.070+0800 ERROR node/server.go:38 Connect to MongoDB [127.0.0.1:27017] failed: no reachable servers

[root@localhost cronsun]# ./cronweb -conf conf/base.json 2022-07-02T14:57:50.360+0800 ERROR web/server.go:39 Connect to MongoDB [127.0.0.1:27017] failed: no reachable servers github.com/shunfei/cronsun/log.Errorf /Users/qleelulu/dev/source/golang/src/github.com/shunfei/cronsun/log/log.go:39 main.main /Users/qleelulu/dev/source/golang/src/github.com/shunfei/cronsun/bin/web/server.go:39 runtime.main /usr/local/Cellar/go/1.11/libexec/src/runtime/proc.go:201

jhkangah avatar Jul 25 '22 10:07 jhkangah

他这个好像支持mongo4

xuweiguo avatar Oct 24 '22 00:10 xuweiguo

尝试过,mongo 6.0不支持,mongo 4.4可以

luzihang123 avatar Aug 22 '23 11:08 luzihang123