Code: Select all
Sep 15 19:19:44 porteus syslogd[763]: -- MARK --
Sep 15 19:30:01 porteus logrotate: ALERT - exited abnormally.
Sep 15 19:59:45 porteus syslogd[763]: -- MARK --
https://www.linuxquestions.org/question ... 1]-747571/
In contrast to that find I do not have a mailserver running and the issue should be with either /var/log/messages itself or with Xorg.0.log or lastlog since these are the only logs larger than 100 kB.well it's nothing at all to do with logrotate from what I can see. I mean, there's the reason the file got so big, and the reason that logrotate is giving those errors, and the latter will be disk space most likely
Here is what I have free on / and what's in /var/log
Code: Select all
guest@rava:/var/log$ ls -o --time-style=long-iso --quoting-style=shell | cut -c 20-$(expr 19 + $(tput cols))
112423 2023-09-15 17:06 Xorg.0.log
0 2022-12-11 09:45 btmp
2373 2023-09-15 19:30 cron
12154 2023-09-13 18:17 debug
61538 2023-09-08 13:27 dmesg
0 2021-02-13 12:15 faillog
292292 2023-09-08 13:30 lastlog
0 2021-12-04 21:20 maillog
458787 2023-09-16 01:59 messages
3 2021-06-15 20:38 nfsd
24 2023-03-02 17:28 packages -> ../lib/pkgtools/packages
62 2023-03-02 17:28 pkgtools
2488 2023-09-08 15:26 porteus-livedbg
25 2022-07-10 09:42 removed_packages -> pkgtools/removed_packages
24 2022-07-10 09:42 removed_scripts -> pkgtools/removed_scripts
34 2022-07-10 09:42 removed_uninstall_scripts -> pkgtools/removed_uninstall_
3 2022-12-07 13:57 samba
23 2023-03-02 17:28 scripts -> ../lib/pkgtools/scripts
8077 2023-09-10 16:39 secure
21 2023-03-02 17:28 setup -> ../lib/pkgtools/setup
40263 2023-09-15 17:06 syslog
3840 2023-09-08 13:30 wtmp
guest@rava:/var/log$ df -Tm .
Filesystem Type 1M-blocks Used Available Use% Mounted on
aufs aufs 388 253 135 66% /
The largest logs (un-logrotated) - meaning uncompressed are:
448.03 KB messages
285.44 KB lastlog
109.79 KB Xorg.0.log
I did not change the settings of logrotate (I presume it is set up via cron?) - thus it should run in its default settings.
And here is /var/lib/logrotate.status
Code: Select all
guest@rava:/var/log$ cat /var/lib/logrotate.status
logrotate state -- version 2
"/var/log/syslog" 2023-9-8-19:0:0
"/var/log/debug" 2023-9-8-19:0:0
"/var/log/wtmp" 2023-9-8-19:0:0
"/var/log/spooler" 2023-9-8-19:0:0
"/var/log/btmp" 2023-9-8-19:0:0
"/var/log/maillog" 2023-9-8-19:0:0
"/var/log/wpa_supplicant.log" 2023-9-8-19:0:0
"/var/log/secure" 2023-9-8-19:0:0
"/var/log/messages" 2023-9-8-19:0:0
"/var/log/cron" 2023-9-8-19:0:0
But even then, together uncompressed these three files are approx 843.26 KB while I have 135 MB free on / - so the free space needed on / should not be the issue for logrotate even when it would try to compress all three files at once.
Any ideas why logrotate exited abnormally ?
Added in 6 minutes 51 seconds:
This post https://unix.stackexchange.com/question ... sing-files was not helpful at all.
Update
The original issue was solved due to a reboot, but it happened again. See here: [SOLVED by itself] porteus logrotate: ALERT - exited abnormally. (Post by Rava #96662)