[SERVER-12464] Mongod fails to start as unprivileged user when {{/sys/devices/system/node}} is not readable and executable. Created: 24/Jan/14  Updated: 11/Jul/16  Resolved: 28/Jan/14

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

Type: Bug Priority: Major - P3
Reporter: Jason Staten Assignee: Kyle Erf
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ArchLinux, kernel 3.10.9-xxxx-grs-ipv6-64 (OVH) x86_64, Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz


Issue Links:
Duplicate
is duplicated by SERVER-12480 Debian Wheeze Package is Broken Closed
Related
is related to SERVER-10623 Mongod fails to start as unprivileged... Closed
is related to SERVER-18763 Use get_mempolicy() or /proc/zoneinfo... Backlog
Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

Follow-on to SERVER-10623, which we apparently didn't completely resolve.

I'm still having a related issue to this in 2.5.4. Also running on an OVH kernel that /sys/devices/system/node is not readable/executable. On startup, the fatal message is logged:

exception in initAndListen std::exception: boost::filesystem::status:
Permission denied: "/sys/devices/system/node/node1", terminating

While the fix solved processinfo_linux2.cpp's reading of /sys/devices/system/node/node1, there's another attempt to read it inside of startup_warnings.cpp that isn't wrapped with a try/catch.


The function boost::filesystem::exists(boost::filesystem::path) throws an exception if some component of the path is not accessible by the executing user.



 Comments   
Comment by Githook User [ 28/Jan/14 ]

Author:

{u'username': u'3rf', u'name': u'Kyle Erf', u'email': u'erf@mongodb.com'}

Message: SERVER-12464 Added warning for unreadable NUMA files

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/3e62df4ebfdba59cc38dfbf33ea30cc8cf4ae15a

Comment by Kyle Erf [ 28/Jan/14 ]

Pull request @ https://github.com/mongodb/mongo/pull/620

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