reaper scanning local filesystem, including /root, generating "permission denied" errors

39 views
Skip to first unread message

jmo

unread,
Oct 6, 2019, 10:43:51 PM10/6/19
to TLP Apache Cassandra Reaper users
On a fresh install of the reaper 1.4.6 deb package on an Ubuntu 18.04 LTS box, when the app starts up there are a mountain of "Permission denied" errors, why is reaper scanning these dirs in the first place? Thanks!


Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/log/unattended-upgrades’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/cache/ldconfig’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/cache/apt/archives/partial’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/lib/update-notifier/package-data-downloads/partial’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/lib/private’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/lib/snapd/void’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/lib/snapd/cookie’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/lib/apt/lists/partial’: Permission denied
Oct 06 01:20:58 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./var/lib/polkit-1’: Permission denied
Oct 06 01:20:59 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./sys/kernel/debug’: Permission denied
Oct 06 01:20:59 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./sys/fs/pstore’: Permission denied
Oct 06 01:20:59 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./sys/fs/fuse/connections/49’: Permission denied
Oct 06 01:21:00 cassandra-reaper-SFO2-01 cassandra-reaper[1498]: find: ‘./root’: Permission denied
...

jmo

unread,
Oct 8, 2019, 5:38:52 PM10/8/19
to TLP Apache Cassandra Reaper users
Appears to be because the /usr/local/bin/cassandra-reaper bash script issues `find` commands. And as the non-root `reaper` user it gets a lot of permission denied errors as it scans the entire filesystem

REAPER_JAR=$(find . -regex '.*/cassandra-reaper-.*[0-9rT]\.jar')



Reid Pinchback

unread,
Oct 9, 2019, 10:24:01 AM10/9/19
to TLP Apache Cassandra Reaper users
Given that reaper is installed via rpm, that would seem to be something that could be eliminated.  The rpm knows where it installs things, any script it installs should assume that resources it needs are where they belong.
Reply all
Reply to author
Forward
0 new messages