Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8842

Permission denied errors when starting Minion

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 19.0.0
    • 19.0.0
    • Build / Packaging
    • Security Level: Default (Default Security Scheme)
    • None
    • Amazon Linux 2016.09

    Description

      When starting minion via /etc/init.d/minion start, the following errors appear in the console

      sudo /etc/init.d/minion start
      find: failed to restore initial working directory: Permission denied
      find: failed to restore initial working directory: Permission denied
      find: failed to restore initial working directory: Permission denied
      

      It appears that these come from the `find-java.sh` script:

      /usr/bin/sudo -u minion /opt/minion/bin/find-java.sh 1.8.0 1.8.9999
      find: failed to restore initial working directory: Permission denied
      find: failed to restore initial working directory: Permission denied
      find: failed to restore initial working directory: Permission denied
      /usr/java/jdk1.8.0_60
      

      In this case, /opt contains folders which are owned by root, and cannot be read by the Minion user. Perhaps we should suppress these errors when attempting to locate the JRE.

      Attachments

        Activity

          People

            ranger Benjamin Reed
            j-white Jesse White
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: