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

cronsun 启动问题 #209

Open
shuke163 opened this issue Apr 27, 2023 · 2 comments
Open

cronsun 启动问题 #209

shuke163 opened this issue Apr 27, 2023 · 2 comments

Comments

@shuke163
Copy link

shuke163 commented Apr 27, 2023

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

  1. What version of Go and cronsun version are you using?
    go version go1.20.2 darwin/arm64
    cronsun-v0.3.5

  2. What operating system and processor architecture are you using (go env)?
    GOHOSTARCH="arm64"
    GOHOSTOS="darwin"

  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    install etcd and mongo and download cronsun

  4. What did you expect to see?
    run cronnode and cronweb

  5. What did you see instead?

./cronnode -conf conf/base.json -l -1
2023-04-27T14:44:32.740+0800	ERROR	node/server.go:38	Connect to MongoDB [127.0.0.1:27017] failed: no reachable servers
cat conf/db.json
{
  "Hosts": [
    "127.0.0.1:27017"
  ],
  "Database": "cronsun",
  "#AuthSource": "AuthSource Specify the database name associated with the user’s credentials.",
  "#AuthSource": "AuthSource defaults to the cronsun's Database.",
  "#AuthSource": "If connect mongodb like './bin/mongo mytest -u test -p 123 --authenticationDatabase admin' ",
  "#AuthSource": "the AuthSource is 'admin'. ",
  "AuthSource": "cronsun",
  "UserName": "shuke",
  "Password": "xxxxxx!",
  "#Timeout": "connect timeout duration/second",
  "Timeout": 15
}
@shuke163
Copy link
Author

image

@ozeer
Copy link

ozeer commented Oct 6, 2023

image

我也遇到了这个问题。cronsun不兼容新版本mongo导致的,你把mongo版本改低点试试,比如mongo:4.4.23。或者你改下cronsun的源码,自己编译一下就行

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