Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

mosquitto and logrotate: is killall missing?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
HankB
Posts: 53
Joined: 2012-03-07 15:15

mosquitto and logrotate: is killall missing?

#1 Post by HankB »

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!

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: mosquitto and logrotate: is killall missing?

#2 Post by bw123 »

yes.
resigned by AI ChatGPT

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: mosquitto and logrotate: is killall missing?

#3 Post by debiman »

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.

HankB
Posts: 53
Joined: 2012-03-07 15:15

Re: mosquitto and logrotate: is killall missing?

#4 Post by HankB »

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

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: mosquitto and logrotate: is killall missing?

#5 Post by debiman »

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.

Post Reply