gpt4 book ai didi

linux - 如何解决 panic : no reachable servers

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:24:36 26 4
gpt4 key购买 nike

我正在尝试使用 Raspberry pi 来托管一个 leanote,当我尝试运行 leanote 二进制文件时,它总是给我这个错误,因为没有可访问的主机,可能的原因是什么?

Panic: no reachable servers

goroutine 1 [running]:
github.com/leanote/leanote/app/db.Init(0x111a4ab0, 0x21, 0x1103c46a, 0x7)
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/db/Mgo.go:104 +0x500
github.com/leanote/leanote/app.init.1.func27()
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/init.go:413 +0x2c
github.com/revel/revel.runStartupHooks()
/Users/life/Documents/Go/package_base/src/github.com/revel/revel/server.go:135 +0x70
github.com/revel/revel.Run(0x1f90)
/Users/life/Documents/Go/package_base/src/github.com/revel/revel/server.go:92 +0x20c
main.main()
/Users/life/leanote2/app/tmp/main.go:2294 +0x4f3c4

goroutine 9 [sleep]:
time.Sleep(0x1dcd6500, 0x0)
/Users/life/app/go1.5.1/src/runtime/time.go:59 +0x104
gopkg.in/mgo%2ev2.(*mongoCluster).syncServersLoop(0x110c50e0)
/Users/life/Documents/Go/package_base/src/gopkg.in/mgo.v2/cluster.go:383 +0x410
created by gopkg.in/mgo%2ev2.newCluster
/Users/life/Documents/Go/package_base/src/gopkg.in/mgo.v2/cluster.go:76 +0x1c4

goroutine 49 [sleep]:
time.Sleep(0x2a05f200, 0x1)
/Users/life/app/go1.5.1/src/runtime/time.go:59 +0x104
gopkg.in/mgo%2ev2.(*mongoServer).pinger(0x111de0a0, 0x1)
/Users/life/Documents/Go/package_base/src/gopkg.in/mgo.v2/server.go:297 +0x180
created by gopkg.in/mgo%2ev2.newServer
/Users/life/Documents/Go/package_base/src/gopkg.in/mgo.v2/server.go:90 +0x140

goroutine 52 [sleep]:
time.Sleep(0x2a05f200, 0x1)
/Users/life/app/go1.5.1/src/runtime/time.go:59 +0x104
gopkg.in/mgo%2ev2.(*mongoServer).pinger(0x10f0c460, 0x1)
/Users/life/Documents/Go/package_base/src/gopkg.in/mgo.v2/server.go:297 +0x180
created by gopkg.in/mgo%2ev2.newServer
/Users/life/Documents/Go/package_base/src/gopkg.in/mgo.v2/server.go:90 +0x140

抱歉我是新手XD

最佳答案

很可能您的 mongoDB 服务器没有运行,请尝试检查 psnetstat 以查明 mongod 是否正在运行并连接到 IP 和端口。

关于linux - 如何解决 panic : no reachable servers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37430510/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com