MongoDB在启动时崩溃(中止信号6)CentOS 6.2 - Azure

时间:2013-05-07 15:11:25

标签: mongodb azure centos

我正在尝试在CentOS 6.2上安装MongoDB,但是当我尝试启动时它会不断崩溃。我收到以下错误:

mongod --dbpath /mnt/datadrive/data --logpath /mnt/datadrive/data/mongod.log
Tue May  7 14:47:46.913 terminate() called, printing stack (if implemented for platform):
0xdcf361 0x6ce59e 0x3b14ebcbe6 0x3b14ebcc13 0x3b14ebcd0e 0x3b14e61ce7 0x3b14ebaa04     0x3b14e663bc 0x3b14e67226 0xdecc8f 0xded5db 0xdea280 0x9e846f 0x6dc742 0x6de4d9 0x3b11a1ecdd 0x6ce389 
 mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xdcf361]
 mongod(_ZN5mongo11myterminateEv+0x3e) [0x6ce59e]
 /usr/lib64/libstdc++.so.6() [0x3b14ebcbe6]
 /usr/lib64/libstdc++.so.6() [0x3b14ebcc13]
 /usr/lib64/libstdc++.so.6() [0x3b14ebcd0e]
 /usr/lib64/libstdc++.so.6(_ZSt21__throw_runtime_errorPKc+0x67) [0x3b14e61ce7]
 /usr/lib64/libstdc++.so.6() [0x3b14ebaa04]
 /usr/lib64/libstdc++.so.6(_ZNSt6locale5_ImplC2EPKcm+0x4c) [0x3b14e663bc]
 /usr/lib64/libstdc++.so.6(_ZNSt6localeC2EPKc+0x5f6) [0x3b14e67226]
 mongod(_ZN5boost11filesystem34path21wchar_t_codecvt_facetEv+0x4f) [0xdecc8f]
 mongod(_ZNK5boost11filesystem34path14root_directoryEv+0xbb) [0xded5db]
 mongod(_ZN5boost11filesystem38absoluteERKNS0_4pathES3_+0x40) [0xdea280]
 mongod(_ZN5mongo27initializeServerGlobalStateEb+0x15f) [0x9e846f]
 mongod() [0x6dc742]
 mongod(main+0x9) [0x6de4d9]
 /lib64/libc.so.6(__libc_start_main+0xfd) [0x3b11a1ecdd]
 mongod(__gxx_personality_v0+0x499) [0x6ce389]
Tue May  7 14:47:46.918 Got signal: 6 (Aborted).

Tue May  7 14:47:46.922 Backtrace:
0xdcf361 0x6cf729 0x3b11a32920 0x3b11a328a5 0x3b11a34085 0x6ce5a3 0x3b14ebcbe6 0x3b14ebcc13 0x3b14ebcd0e 0x3b14e61ce7 0x3b14ebaa04 0x3b14e663bc 0x3b14e67226 0xdecc8f 0xded5db 0xdea280 0x9e846f 0x6dc742 0x6de4d9 0x3b11a1ecdd 
 mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xdcf361]
 mongod(_ZN5mongo10abruptQuitEi+0x399) [0x6cf729]
 /lib64/libc.so.6() [0x3b11a32920]
 /lib64/libc.so.6(gsignal+0x35) [0x3b11a328a5]
 /lib64/libc.so.6(abort+0x175) [0x3b11a34085]
 mongod(_ZN5mongo11myterminateEv+0x43) [0x6ce5a3]
 /usr/lib64/libstdc++.so.6() [0x3b14ebcbe6]
 /usr/lib64/libstdc++.so.6() [0x3b14ebcc13]
 /usr/lib64/libstdc++.so.6() [0x3b14ebcd0e]
 /usr/lib64/libstdc++.so.6(_ZSt21__throw_runtime_errorPKc+0x67) [0x3b14e61ce7]
 /usr/lib64/libstdc++.so.6() [0x3b14ebaa04]
 /usr/lib64/libstdc++.so.6(_ZNSt6locale5_ImplC2EPKcm+0x4c) [0x3b14e663bc]
 /usr/lib64/libstdc++.so.6(_ZNSt6localeC2EPKc+0x5f6) [0x3b14e67226]
 mongod(_ZN5boost11filesystem34path21wchar_t_codecvt_facetEv+0x4f) [0xdecc8f]
 mongod(_ZNK5boost11filesystem34path14root_directoryEv+0xbb) [0xded5db]
 mongod(_ZN5boost11filesystem38absoluteERKNS0_4pathES3_+0x40) [0xdea280]
 mongod(_ZN5mongo27initializeServerGlobalStateEb+0x15f) [0x9e846f]
 mongod() [0x6dc742]
 mongod(main+0x9) [0x6de4d9]
 /lib64/libc.so.6(__libc_start_main+0xfd) [0x3b11a1ecdd]

我一直在关注教程here。 有关如何解决此问题的任何建议吗?

2 个答案:

答案 0 :(得分:7)

在搜索此问题的解决方案时,只需分享另一种更简单(IMO)方式来设置我找到here的区域设置。

基本上,将您的语言环境设置为合理的值。例如

export LC_CTYPE="en_US.UTF-8"

错误报告为here

答案 1 :(得分:4)

这最终成为在终端中使用SSH连接到VM的Mac问题。要解决此问题,请访问:

终端⟶首选项⟶配置文件⟶高级

并在启动时取消选中" 设置区域设置环境变量" 国际标题下的复选框。