Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
-
3.0.5
-
None
-
Service Arch 2022-10-31
Description
When mongod fails to start because dbpath is not found, the /tmp/mongodb-xxxxx.sock file is not removed.
Original description
Starting mongodb as service fails after trying run mongod (not as service) and failing because /data/db not found.
2015-08-03T11:28:35.657+0000 I CONTROL ***** SERVER RESTARTED *****
2015-08-03T11:28:35.695+0000 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
2015-08-03T11:28:35.695+0000 I - [initandlisten] Fatal Assertion 28578
2015-08-03T11:28:35.695+0000 I - [initandlisten]
Deleting the socket file and running as service fixes the problem.