[SERVER-76179] "/var/run/mongodb/"mongod.pid" deleted on each Mongod shutdown Created: 17/Apr/23 Updated: 29/Oct/23 Resolved: 04/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.16 |
| Fix Version/s: | 7.1.0-rc0, 5.0.18, 7.0.0-rc1, 6.0.7, 4.4.23 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tedi Roca | Assignee: | Alex Neben |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v7.0, v6.3, v6.0, v5.0, v4.4
|
||||||||||||||||
| Steps To Reproduce: |
Now create the directroy manually an set the permissions for mongod to own it, and start mongod with fork = true - works fine:
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||
| Description |
|
``` {"t":\{"$date":"2023-04-17T13:50:46.795+02:00"},"s":"I", "c":"CONTROL", "id":23330, "ctx":"main","msg":"ERROR: Cannot write pid file to {path_string}: {errAndStr_second}","attr":{"path_string":"/var/run/mongodb/mongod.pid","errAndStr_second":"No such file or directory"}} ``` mongod.conf ```
security: replication: #sharding:
#auditLog: #snmp: ``` OS: CentOS 7
|
| Comments |
| Comment by Githook User [ 17/May/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: (cherry picked from commit e968d9507a2d038004de32250ea62edaa627d39e) |
| Comment by Githook User [ 04/May/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: (cherry picked from commit e968d9507a2d038004de32250ea62edaa627d39e) |
| Comment by Githook User [ 04/May/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: (cherry picked from commit e968d9507a2d038004de32250ea62edaa627d39e) |
| Comment by Githook User [ 04/May/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: (cherry picked from commit e968d9507a2d038004de32250ea62edaa627d39e) |
| Comment by Githook User [ 04/May/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Chris Kelly [ 17/Apr/23 ] |
|
Thanks for your report, tedi.roca@gmail.com! This is related to In your case, the processManagement.pidFilePath line can be removed from mongod.conf to correct the problem for now. |