linux - How to solve panic: no reachable servers -
i trying use raspberry pi host leanote,when try run leanote binary keep give me error no reachable host, possible reason?
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 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 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 gopkg.in/mgo%2ev2.newserver /users/life/documents/go/package_base/src/gopkg.in/mgo.v2/server.go:90 +0x140
sorry new xd
most mongodb server not running, try checking ps
, netstat
find out if mongod running , connected ip , port.
Comments
Post a Comment