[SERVER-15497] Missing locale causing exit code 14 when starting via /etc/init.d/mongd Created: 01/Oct/14  Updated: 08/Oct/14  Resolved: 08/Oct/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.6.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Raul Martinez Jr Assignee: Ramon Fernandez Marina
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File file1.txt     Text File file2.txt    
Issue Links:
Duplicate
duplicates SERVER-9032 mongod fails when launched with misco... Closed
Operating System: ALL
Participants:

 Description   

Running Centos 6.5, I updated my mongod to 2.6.4 and upon start mongod via /etc/init.d/mongod I get the following error:

ERROR: child process failed, exited with error number 14

I noticed that the init script requires numactl but the numactl package is not installed on my system.

init.d-mongd: https://github.com/mongodb/mongo/blob/master/rpm/init.d-mongod
rpm spec: https://github.com/mongodb/mongo/blob/master/rpm/mongodb-org.spec

I installed numactl and I solved the problem.

This affects 2.6.4 up to the latest version.

Adding numactl to the specs' Requires line should solve this problem...



 Comments   
Comment by Ramon Fernandez Marina [ 08/Oct/14 ]

Thanks for letting us know rmartinez – looks like you hit SERVER-9032, which was one of the possibilities we initially contemplated. SERVER-9032 has been fixed in the development branch (as of 2.7.3) and will be part of the next production release (2.6.5). You already have a workaround so you should be good to go.

Regards,
Ramón.

Comment by Raul Martinez Jr [ 08/Oct/14 ]

I tried searching the net about this issue and found

http://webmastercraft.net/thread/mongodb-could-not-be-start-on-centos-6/

The solution (which I have confirmed) to be working is to run

export LC_CTYPE="en_US.UTF-8"

or add it to .bashrc or system-wide profile

Comment by Ramon Fernandez Marina [ 02/Oct/14 ]

rmartinez, the init script only uses numactl if it's available – if it isn't available then it is not used.

One possibility is that you run into SERVER-9032, which has to do with a misconfigured or missing locale. If that's not the case, it would be useful if you could run the following on your system and send us the output.

  • stop mongod
  • remove numactl
  • update /etc/init.d/mongod to read #!/bin/bash -x on its first line
  • run /etc/init.d/mongod start

Just to rule out SERVER-9032, can you also send the output of the set command from the shell where you're running mongod?

Thanks,
Ramón.

Generated at Thu Feb 08 03:38:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.