karaf.log appears on the root file system when running Minion/Sentinel on Ubuntu/Debian.

Description

On CentOS/RHEL, the karaf.log is placed on /opt/minon/data/log or /opt/sentinel/data/log.

When running any of these applications on Ubuntu/Debian, the karaf.log is "temporary" created on /usr/share/minion/data/log or /usr/share/sentinel/data/log, but then a file on the root filesystem is created and all the log is redirected there (i.e. either /minion.log or /sentinel.log). This is a problem if you want to run Sentinel/Minion as non-root on Ubuntu/Debian, as a normal user doesn't have permissions to write on the root filesystem.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed September 19, 2019 at 2:36 PM

Benjamin Reed September 18, 2019 at 3:56 PM

Alejandro ran into this again while testing 25 packages and we found there was already an issue.  grinning face with big eyes  I think it's actually an easy fix, testing a change right now.

Alejandro Galue June 20, 2019 at 2:48 PM

How to reproduce the problem ?

Install Minion or Sentinel on Debian or Ubuntu, and start it as root (otherwise you won't be able to start it), and then you'll see the log on the root filesystem.

Also, I had issues when starting using the systemd's definition, so I had to use the start script directly. I don't know if this is a related problem or a different one, but worth mention it.

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

PagerDuty

Created June 20, 2019 at 2:45 PM
Updated September 24, 2019 at 12:15 PM
Resolved September 19, 2019 at 8:03 PM

Flag notifications