Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#38524 - [mongodb] Unable to start mogod.service
Attached to Project:
Community Packages
Opened by Julian Wergieluk (jwergieluk) - Wednesday, 15 January 2014, 11:46 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 16 January 2014, 01:47 GMT
Opened by Julian Wergieluk (jwergieluk) - Wednesday, 15 January 2014, 11:46 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 16 January 2014, 01:47 GMT
|
DetailsDescription:
Attempting to start mongodb.service or run mongod as root produces the following error message: # mongod --config=/etc/mongodb.conf Wed Jan 15 12:25:54.679 terminate() called, printing stack (if implemented for platform): 0xacb446 0x6cf2b5 0x7f0f8d5407a6 0x7f0f8d5407d3 0x7f0f8d5409fe 0x7f0f8d592217 0x7f0f8d55dfc4 0x7f0f8d5531e9 0x7f0f8d554392 0x7f0f8e0e0d62 0x7f0f8e0e29ee 0x7f0f8e0da97d 0x895afb 0x6b7c0a 0x7f0f8cc40b05 0x6cf155 mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xacb446] mongod(_ZN5mongo11myterminateEv+0x45) [0x6cf2b5] /usr/lib/libstdc++.so.6(+0x5e7a6) [0x7f0f8d5407a6] /usr/lib/libstdc++.so.6(+0x5e7d3) [0x7f0f8d5407d3] /usr/lib/libstdc++.so.6(+0x5e9fe) [0x7f0f8d5409fe] /usr/lib/libstdc++.so.6(_ZSt21__throw_runtime_errorPKc+0x67) [0x7f0f8d592217] /usr/lib/libstdc++.so.6(+0x7bfc4) [0x7f0f8d55dfc4] /usr/lib/libstdc++.so.6(_ZNSt6locale5_ImplC1EPKcm+0x49) [0x7f0f8d5531e9] /usr/lib/libstdc++.so.6(_ZNSt6localeC1EPKc+0x792) [0x7f0f8d554392] /usr/lib/libboost_filesystem.so.1.55.0(_ZN5boost10filesystem4path7codecvtEv+0x52) [0x7f0f8e0e0d62] /usr/lib/libboost_filesystem.so.1.55.0(_ZNK5boost10filesystem4path14root_directoryEv+0xde) [0x7f0f8e0e29ee] /usr/lib/libboost_filesystem.so.1.55.0(_ZN5boost10filesystem8absoluteERKNS0_4pathES3_+0x2d) [0x7f0f8e0da97d] mongod(_ZN5mongo27initializeServerGlobalStateEb+0x2fb) [0x895afb] mongod(main+0x26a) [0x6b7c0a] /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7f0f8cc40b05] mongod() [0x6cf155] Wed Jan 15 12:25:54.680 Got signal: 6 (Aborted). Wed Jan 15 12:25:54.681 Backtrace: 0xacb446 0x6cf77b 0x7f0f8cc543e0 0x7f0f8cc54369 0x7f0f8cc55768 0x6cf2ba 0x7f0f8d5407a6 0x7f0f8d5407d3 0x7f0f8d5409fe 0x7f0f8d592217 0x7f0f8d55dfc4 0x7f0f8d5531e9 0x7f0f8d554392 0x7f0f8e0e0d62 0x7f0f8e0e29ee 0x7f0f8e0da97d 0x895afb 0x6b7c0a 0x7f0f8cc40b05 0x6cf155 mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xacb446] mongod(_ZN5mongo10abruptQuitEi+0xfb) [0x6cf77b] /usr/lib/libc.so.6(+0x353e0) [0x7f0f8cc543e0] /usr/lib/libc.so.6(gsignal+0x39) [0x7f0f8cc54369] /usr/lib/libc.so.6(abort+0x148) [0x7f0f8cc55768] mongod(_ZN5mongo11myterminateEv+0x4a) [0x6cf2ba] /usr/lib/libstdc++.so.6(+0x5e7a6) [0x7f0f8d5407a6] /usr/lib/libstdc++.so.6(+0x5e7d3) [0x7f0f8d5407d3] /usr/lib/libstdc++.so.6(+0x5e9fe) [0x7f0f8d5409fe] /usr/lib/libstdc++.so.6(_ZSt21__throw_runtime_errorPKc+0x67) [0x7f0f8d592217] /usr/lib/libstdc++.so.6(+0x7bfc4) [0x7f0f8d55dfc4] /usr/lib/libstdc++.so.6(_ZNSt6locale5_ImplC1EPKcm+0x49) [0x7f0f8d5531e9] /usr/lib/libstdc++.so.6(_ZNSt6localeC1EPKc+0x792) [0x7f0f8d554392] /usr/lib/libboost_filesystem.so.1.55.0(_ZN5boost10filesystem4path7codecvtEv+0x52) [0x7f0f8e0e0d62] /usr/lib/libboost_filesystem.so.1.55.0(_ZNK5boost10filesystem4path14root_directoryEv+0xde) [0x7f0f8e0e29ee] /usr/lib/libboost_filesystem.so.1.55.0(_ZN5boost10filesystem8absoluteERKNS0_4pathES3_+0x2d) [0x7f0f8e0da97d] mongod(_ZN5mongo27initializeServerGlobalStateEb+0x2fb) [0x895afb] mongod(main+0x26a) [0x6b7c0a] /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7f0f8cc40b05] mongod() [0x6cf155] Contenst of /etc/mongodb.conf: # Run mongod --help to see a list of options bind_ip = 127.0.0.1 quiet = true dbpath = /var/lib/mongodb logpath = /var/log/mongodb/mongod.log logappend = true smallfiles = true In the previous version (2.4.8-2) I had the same problem when starting the mongodb.service but it was possible to run mongod directly as root. After downgrading from 2.4.9-1 to 2.4.8-2 this also no longer works. Additional info: * Package versions affected: mongodb 2.4.9-1 mongodb 2.4.8-2 Steps to reproduce: # systemctl start mongodb.service # systemctl status mongodb.service |
This task depends upon
Closed by Felix Yan (felixonmars)
Thursday, 16 January 2014, 01:47 GMT
Reason for closing: Not a bug
Thursday, 16 January 2014, 01:47 GMT
Reason for closing: Not a bug
Not sure if it related: https://jira.mongodb.org/browse/SERVER-9032
LC_ALL="XX"; mongod --config=/etc/mongodb.conf
I put 'export LC_ALL="C"' into /etc/profile and can start mongod by hand.
However, mongodb.service is still failing. Any idea how to set locale for a systemctl service?
LANG=en_US.utf8
Maybe you can give it a try?
In /etc/locale.conf I have now
LANG=en_US.utf8
and in /etc/profile
export LC_ALL="en_US.utf8"
locale command gives me the following:
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8
Thank you for your help!