mosquitto and logrotate: is killall missing?

Kernels & Hardware, configuring network, installing services

mosquitto and logrotate: is killall missing?

Postby HankB » 2018-10-27 15:09

My server emailed me this morning with the message:
Code: Select all
/etc/cron.daily/logrotate:
logrotate_script: 2: logrotate_script: /usr/bin/killall: not found
error: error running non-shared postrotate script for /var/log/mosquitto/mosquitto.log of '/var/log/mosquitto/mosquitto.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1


Server is running Debian Stretch server (no GUI.)

Poking around a bit I see that killall is provided by the package psmisc which is not installed on this system. I also see that mosquitto was updated yesterday. I also see that mosquitto does not require psmisc.
Code: Select all
root@oak:/var/log# apt-cache depends mosquitto
mosquitto
  Depends: adduser
  Depends: libuuid1
  Depends: lsb-base
  Depends: libc6
  Depends: libssl1.1
  Depends: libwebsockets8
  Depends: libwrap0
  Suggests: apparmor
root@oak:/var/log# apt search killall
Sorting... Done
Full Text Search... Done
psmisc/stable 22.21-2.1+b2 amd64
  utilities that use the proc file system

sysvinit-utils/stable,now 2.88dsf-59.9 amd64 [installed]
  System-V-like utilities

root@oak:/var/log#


I can't find "logrotate_script" via apt or in /var, /etc, /usr or /opt.

It looks to me like the update to the mosquitto package now includes a dependency on psmisc but is not configured to require this. Or am I looking in the wrong place?

Thanks!
HankB
 
Posts: 46
Joined: 2012-03-07 15:15

Re: mosquitto and logrotate: is killall missing?

Postby bw123 » 2018-10-28 04:52

yes.
User avatar
bw123
 
Posts: 3531
Joined: 2011-05-09 06:02
Location: TN_USA

Re: mosquitto and logrotate: is killall missing?

Postby debiman » 2018-10-28 07:52

HankB wrote:I can't find "logrotate_script"

but you really need to find it, because that's where the answer to your problem lies (and not in packages and their dependencies).

try:
Code: Select all
find / -name '*logrotate_script*' 2>/dev/null


of course, as bw123 put it so succinctly, you could also just install killall and be done with it.
User avatar
debiman
 
Posts: 3018
Joined: 2013-03-12 07:18

Re: mosquitto and logrotate: is killall missing?

Postby HankB » 2018-10-31 00:38

debiman wrote:
HankB wrote:I can't find "logrotate_script"

...

of course, as bw123 put it so succinctly, you could also just install killall and be done with it.

Of course that's the solution to the immediate problem. However since I'm running Testing I thought I'd try to determine what the issue was and submit a bug report so this gets fixed before the package rolls to Stable. That's the point of Testing, right?
I didn't want to file a bug report if I was mistaken about the source of the problem.

At this point it is moot as something has now pulled in the psmisc package which includes /usr/bin/killall.

thanks,
hank
HankB
 
Posts: 46
Joined: 2012-03-07 15:15

Re: mosquitto and logrotate: is killall missing?

Postby debiman » 2018-11-02 17:08

HankB wrote:Of course that's the solution to the immediate problem. However since I'm running Testing I thought I'd try to determine what the issue was and submit a bug report so this gets fixed before the package rolls to Stable. That's the point of Testing, right?

which just brings you back to the need to find logrotate_script.
User avatar
debiman
 
Posts: 3018
Joined: 2013-03-12 07:18


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable