[SERVER-9202] Bad pid file configuration in rpm Created: 01/Apr/13  Updated: 05/May/14  Resolved: 14/Feb/14

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

Type: Bug Priority: Minor - P4
Reporter: Ask Bjørn Hansen Assignee: Ernie Hershey
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fedora 18


Issue Links:
Duplicate
duplicates SERVER-7285 Support systemd in future compatible ... Closed
Operating System: Linux
Participants:

 Description   

On Fedora 18 the startup script times out and then kills mongod because it can't read the pid file.

Apr 01 10:35:00 gunnarr.bn.dev mongod[9596]: Starting mongod: about to fork child process, waiting until server is ready for connections.
Apr 01 10:35:00 gunnarr.bn.dev mongod[9596]: forked process: 9605
Apr 01 10:35:00 gunnarr.bn.dev mongod[9596]: all output going to: /var/log/mongo/mongod.log
Apr 01 10:35:01 gunnarr.bn.dev mongod[9596]: child process started successfully, parent exiting
Apr 01 10:35:01 gunnarr.bn.dev runuser[9601]: pam_unix(runuser:session): session closed for user mongod
Apr 01 10:35:01 gunnarr.bn.dev mongod[9596]: [ OK ]
Apr 01 10:35:01 gunnarr.bn.dev systemd[1]: PID file /var/run/mongo/mongod.pid not readable (yet?) after start.
Apr 01 10:40:00 gunnarr.bn.dev systemd[1]: mongod.service operation timed out. Terminating.
Apr 01 10:40:00 gunnarr.bn.dev systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
Apr 01 10:40:00 gunnarr.bn.dev systemd[1]: Unit mongod.service entered failed state

The default configuration has the pid file written to /var/run/mongodb/mongod.pid, but the init.d script (and systemd) looks for it to appear in /var/run/mongo/mongod.pid



 Comments   
Comment by Ernie Hershey [ 14/Feb/14 ]

This might be a slightly different case than SERVER-7285 but both are failing to start correctly using init scripts in Fedora 15+ so making sure they work should fix both. The symptoms are the same even if the log messages are different - can't start mongod using init scripts in Fedora 15+.

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