install script fails if an OpenNMS directory contains root-owned lost+found directory

Description

When running install -dis, the process will fail if one of the OpenNMS directories is at the root of an extfs filesystem, because the lost+found directory is owned and accessible only by root.

Steps to reproduce:

  1. Install OpenNMS such that one of its directories (e.g., /opt/opennms/logs or /var/log/opennms) is at the root of an extfs filesystem.

  2. Run ${OPENNMS_HOME}/bin/install -dis

Expected result:

The install script should complete normally.

Actual result:

The install script exits with a large stack trace, eventually blaming java.nio.file.AccessDeniedException: /opt/opennms/logs/lost+found

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed April 21, 2022 at 6:40 PM

Merged updated fix to foundation-2022

Benjamin Reed April 20, 2022 at 2:10 PM

Will Keaney March 22, 2022 at 4:11 PM

${OPENNMS_HOME}/bin/install -dis still fails when there is a root-owned lost+found directory with Horizon 29.0.7-1:

Benjamin Reed February 23, 2022 at 7:00 PM

fixed in foundation-2022

Fixed

Details

Assignee

Reporter

Labels

Components

Sprint

Affects versions

Priority

PagerDuty

Created February 23, 2022 at 6:39 PM
Updated October 25, 2022 at 1:59 PM
Resolved April 21, 2022 at 6:40 PM