[SERVER-6655] pid file does not get created when passing a relative path for --pidfilepath Created: 31/Jul/12  Updated: 02/Jun/20  Resolved: 21/Apr/17

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Abdul Alkhatib Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File execution.log    
Issue Links:
Duplicate
is duplicated by SERVER-10263 Failure to use absolute path for --pi... Closed
Backwards Compatibility: Fully Compatible
Operating System: OS X
Participants:

 Description   

Passing relative paths to mongod works --dbpath, --logpath but does not work for --pidfilepath which is not consistent.

To reproduce:

  • Run the following command from your home dir
    mongod --dbpath mydbpath --pidfilepath mydbpath/pid.txt
  • Result: mydbpath/pid.txt does not get created


 Comments   
Comment by Andrew Morrow (Inactive) [ 21/Apr/17 ]

We just tried the commands presented in the reproduction steps, and we are not currently able to reproduce this behavior. This may have been a problem with an older version of MongoDB, but it appears to have been subsequently fixed. If you need this fixed for a specific version of MongoDB, please re-open the ticket and provide a value for the "Affects Version" field that describes which version exhibits this behavior.

Comment by Gianfranco Palumbo [ 12/Mar/13 ]

If this won't be fixed soon. Documentation should reflect that the absolute path is required:

/home/user/data/mongod.pid
// and not
~/data/mongod.pid

http://docs.mongodb.org/manual/reference/configuration-options/#pidfilepath

Comment by Benno Leslie [ 02/Oct/12 ]

The same bug hit me too. OS X version: 2.2.0

Comment by Abdul Alkhatib [ 07/Aug/12 ]

This also happens with --keyFile

Generated at Thu Feb 08 03:12:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.