[DOCS-4209] Comment on: "manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt" Created: 19/Oct/14  Updated: 03/Nov/17  Resolved: 20/Oct/14

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Tomas Dabašinskas Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

rhel 7 with systemd

Location: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0
Referrer: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/
Screen Resolution: 2144 x 1340
repo: docs
source: tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux


Issue Links:
Duplicate
duplicates SERVER-15724 Cannot write pid file to /var/run/mon... Closed
Participants:
Days since reply: 9 years, 17 weeks, 3 days ago

 Description   

Hi,
I'm running mongo server on rhel7 and systemd,

  1. rpm -q mongodb-org-server
    mongodb-org-server-2.6.4-1.x86_64

I'm trying to run the daemon: # /etc/rc.d/init.d/mongod start
Starting mongod (via systemctl): Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.
[FAILED]

when I look at the log, I'm seeing:
2014-10-20T11:36:28.085+0530 ***** SERVER RESTARTED *****
2014-10-20T11:36:28.087+0530 ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory

The way around it is to create mongodb.conf in /lib/tmpfiles.d/ with following content:
d /var/run/mongodb 0755 mongod mongod

Please add /lib/tmpfiles.d/mongodb.conf to mongodb-org-server package

http://stackoverflow.com/questions/23086655/mongodb-service-will-not-start-after-initial-setup

Many thanks,
Tomas



 Comments   
Comment by Tomas Dabašinskas [ 19/Oct/14 ]

logged under server component: https://jira.mongodb.org/browse/SERVER-15724

Generated at Thu Feb 08 07:47:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.