我已经在我的覆盆子pi https://github.com/svvitale/mongo4pi/blob/master/install.sh上使用以下安装脚本成功安装了mongodb。我已经测试了它,并通过mongo
与测试数据库建立了连接,一切运行良好。我重新启动了我的覆盆子(B)并注意到,mongod无法启动重启。毕竟我试图手动启动mongod
,但得到以下错误:
pi@raspberrypi /opt/mongo/bin $ ./mongod
db level locking enabled: 1
./mongod --help for help and startup options
Wed Jul 1 23:26:44
Wed Jul 1 23:26:44 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
Wed Jul 1 23:26:44
Wed Jul 1 23:26:44 Assertion failure 5 == (int)(g.distance( a , b ) ) src/mongo/db/geo/2d.cpp 3111
0x315e08 0x2015b4 0x393554 0x441d84 0x397f80 0x15c1d0 0xb6c7381c
./mongod(_ZN5mongo15printStackTraceERSo+0x18) [0x315e08]
./mongod(_ZN5mongo12sayDbContextEPKc+0xc4) [0x2015b4]
./mongod(_ZN5mongo12verifyFailedEPKcS1_j+0x108) [0x393554]
./mongod(_ZN5mongo11GeoUnitTest3runEv+0x3b84) [0x441d84]
./mongod(_ZN5mongo11StartupTest8runTestsEv+0x44) [0x397f80]
./mongod(main+0x1f58) [0x15c1d0]
/lib/arm-linux-gnueabihf/libc.so.6(__libc_start_main+0x110) [0xb6c7381c]
Wed Jul 1 23:26:44 terminate() called, printing stack (if implemented for platform):
0x315e08 0x16f708 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0 0xb6e92fb0
./mongod(_ZN5mongo15printStackTraceERSo+0x18) [0x315e08]
./mongod(_ZN5mongo11myterminateEv+0x40) [0x16f708]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6(+0x4efb0) [0xb6e92fb0]
Wed Jul 1 23:26:44 Got signal: 6 (Aborted).
Wed Jul 1 23:26:44 Backtrace:
0x315e08 0x1703bc 0xb6c89b20 0xb6c888dc
./mongod(_ZN5mongo15printStackTraceERSo+0x18) [0x315e08]
./mongod(_ZN5mongo10abruptQuitEi+0x240) [0x1703bc]
/lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0xb6c89b20]
/lib/arm-linux-gnueabihf/libc.so.6(gsignal+0x40) [0xb6c888dc]
你们有什么想法在重启过程中出了什么问题?
谢谢!
答案 0 :(得分:1)
我遇到了同样的问题并删除了锁定文件/var/lib/mongodb/mongod.lock为我工作