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

3.5版本cronsun,在red-hat7.8上运行,执行任务时选择了其他的用户,但实际执行任务的用户还是root #187

Open
Dawei2021ye opened this issue Feb 26, 2021 · 3 comments

Comments

@Dawei2021ye
Copy link

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

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

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

  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    你做了什么,遇到了什么问题?尽可能描述清楚问题,最好把操作步骤写下来,按这些步骤操作后能重现你的问题。

  4. What did you expect to see?
    你期望得到什么样的结果?

  5. What did you see instead?
    现在你得到的结果是什么样的?

@jhkangah
Copy link

兄弟你们有没有碰到

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

mongo 是有启动得为什么连不上

@JackDan9
Copy link

兄弟你们有没有碰到

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

mongo 是有启动得为什么连不上

遇到了

@zqhong
Copy link

zqhong commented Oct 5, 2024

兄弟你们有没有碰到

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

mongo 是有启动得为什么连不上

猜测跟 mgo 有关系,这是 mgo 的文档:

mgo 在 MongoDB v3.0、3.2、3.4 和 3.6 上表现良好(并且已经通过集成测试)。

MongoDB 4.0 目前是实验性的 - 我们很乐意接受 PR 来帮助改进支持!

试试看用 MongoDB 4.x 以下版本。

以及,检查下 MongoDB 的日志

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

4 participants