Status: open
Group: 1.860
Labels: Log File Rotation Compress old log files?
Created: Wed Dec 13, 2017 02:11 AM UTC by Jaret
Last Updated: Wed Dec 13, 2017 02:11 AM UTC
Owner: nobody
Attachments:
Capture.PNG (38.2 kB; image/png)
In Webmin on FreeBSD, we have an issue where logfiles cannot be compressed upon rotating logs..
Yeah it's strange indedd. I upgraded to Webmin 1.870 and the same thing is occurring when trying to compress the old logfiles. Below is the output.
Forcing the immediate rotation of all log files ..
error: failed to compress log /var/log/archived/maillog/maillog.1 (more files try to parse showing the same 'failed to compress' error)
.. failed! See the output above for the reason why.
That's all I get. If I have compression disabled everything seems to go ok rotating logs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you have the
gzip
command on your system?Indeed I do.
/usr/ports/sysutils/webmin# whereis gzip
gzip: /usr/bin/gzip /usr/share/man/man1/gzip.1.gz /usr/src/usr.bin/gzip
Indeed! Below is the location.
/usr/ports/sysutils/webmin# whereis gzipgzip: /usr/bin/gzip /usr/share/man/man1/gzip.1.gz /usr/src/usr.bin/gzip
Do you have the gzip command on your system?
[bugs:#5062] Log File Rotation (Compression Bug)
Status: open
Group: 1.860
Labels: Log File Rotation Compress old log files?
Created: Wed Dec 13, 2017 02:11 AM UTC by Jaret
Last Updated: Wed Dec 13, 2017 02:11 AM UTC
Owner: nobody
Attachments:
In Webmin on FreeBSD, we have an issue where logfiles cannot be compressed upon rotating logs..
Module: System > Log File Rotation.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/webadmin/bugs/5062/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #5062
If you SSH in as root and run
logrotate -f /etc/logrotate.conf
what does it output?logrotate -f /usr/local/etc/logrotate.conf shows no output. No errors.
That's odd, because that's the same command Webmin runs! If you re-try forcing log rotation in the UI, do you still get the same error message?
Yeah it's strange indedd. I upgraded to Webmin 1.870 and the same thing is occurring when trying to compress the old logfiles. Below is the output.
Forcing the immediate rotation of all log files ..
error: failed to compress log /var/log/archived/maillog/maillog.1
(more files try to parse showing the same 'failed to compress' error)
.. failed! See the output above for the reason why.
That's all I get. If I have compression disabled everything seems to go ok rotating logs.
Is your system perhaps low on RAM?
Negative. RAM is sufficient. It only does it the moment I enable old log file compression and memory doesn't even come close to maxing out.
Can you post the
/etc/webmin/logrotate/config
file from your system?