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.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.5.5
    • Stability
    • None
    • 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

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: