[SERVER-9424] search for mongod PID file in wrong location Created: 23/Apr/13 Updated: 10/Dec/14 Resolved: 08/Mar/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.4.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Ron Warshawsky | Assignee: | Adam Comerford |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Fedora 17 |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Steps To Reproduce: | 1. Configure custom PID file location in /etc/mongod.conf 2. Start mongo with "service mongod start" fails |
||||||||
| Participants: | |||||||||
| Description |
|
Instaed of accessing configured PID file at /export/home/mongo/DB1/mongodDB1.pid Mongo is trying access: /var/run/mongo/mongod.pid ========================================
====== Mongo start service hangs for minutes and fails:
============= Mongo is running after failure:
============= Log info:
|
| Comments |
| Comment by Daniel Pasette (Inactive) [ 08/Mar/14 ] |
|
duplicate of |
| Comment by Franz Pletz [ 30/Jan/14 ] |
|
This is not a mongo problem. Systemd is expecting the PID file at /var/run/mongo/mongod.pid but you specified /export/home/mongo/DB1/mongodDB1.pid manually. If want to use your custom PID file location, add the PIDFile option to your systemd service config (see man 5 systemd.service). |
| Comment by Adam Comerford [ 22/May/13 ] |
|
Can you confirm the contents of the PID file when this happens? This may be related to |