Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19716

remove socket when exiting because dbpath not found

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.5
    • Component/s: Admin
    • None
    • Service Arch 2022-10-31
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            levyavi Avi Levy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: