Permission denied errors when starting Minion

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.

Environment

Amazon Linux 2016.09

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Benjamin Reed October 25, 2016 at 4:01 PM

fixed in develop

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

PagerDuty

Created October 25, 2016 at 3:20 PM
Updated October 25, 2016 at 8:01 PM
Resolved October 25, 2016 at 4:01 PM

Flag notifications