Fresh install requires to run fix-permissions script for iplike.so

Description

When you make a clean installation of OpenNMS Horizon develop with NMS-13016 on a Debian system you get an error to run the fix-permissions. The java.conf file as permissions set to root instead of opennms.

The second problem the /usr/share/opennms/lib/iplike.so file is owned by root and throws the following error message:

16:56:21.180 [Main] ERROR org.opennms.install.Installer - OpenNMS is configured to run as 'opennms' but '/usr/share/opennms/lib/iplike.so' is not owned by that account. 16:56:21.181 [Main] ERROR org.opennms.install.Installer - To fix permissions, run '/usr/share/opennms/bin/fix-permissions' as root

Acceptance / Success Criteria

None

is triggered by

Lucidchart Diagrams

Activity

Show:

Benjamin Reed June 30, 2021 at 5:23 PM

The new versions of iplike (2.3.0) should fix this – they no longer symlink into $OPENNMS_HOME.

I will add a dependency on iplike >= 2.3.0 in the debian packages in the branch I'm using to work on https://opennms.atlassian.net/browse/NMS-13415#icft=NMS-13415.

Benjamin Reed June 29, 2021 at 8:26 PM

Ohhh... it symlinks it in the postinst for some weird reason. Well that's silly. I should update iplike to just not do that.

Benjamin Reed June 29, 2021 at 8:19 PM

Oh geez, why in the world are we putting those in /usr/share/opennms?? They should be in normal lib places.

Ronny Trommer June 28, 2021 at 3:22 PM

I can imagine there might be some fallout with JRRD and JRRD2 as well.

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

PagerDuty

Created June 28, 2021 at 2:59 PM
Updated July 12, 2021 at 10:20 AM
Resolved June 30, 2021 at 5:23 PM

Flag notifications