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

Mongod fails to start as unprivileged user when {{/sys/devices/system/node}} is not readable and executable.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: None
    • Component/s: Stability
    • None
    • Environment:
      ArchLinux, kernel 3.10.9-xxxx-grs-ipv6-64 (OVH) x86_64, Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
    • Fully Compatible
    • Linux

      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.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            statianzo Jason Staten
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: