-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.0.0
-
Component/s: Packaging
-
Environment:SLES 12
-
Linux
-
Mongod can not start with error:
I CONTROL ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory
The mongodb was installed from zypper repository "http://repo.mongodb.org/zypper/suse/11/mongodb-org/3.0/x86_64/".
This should be a rpm package issue, the rpm do not create /var/run/mongodb/ with the correct permission.
So, the workaround is create /var/run/mongodb/ manually:
- mkdir -p /var/run/mongodb
- chown mongod:mongod /var/run/mongodb
- duplicates
-
SERVER-14679 (CentOS 7/RHEL 7) init.d script should create directory for pid file if it is missing
- Closed