Menu

#5062 Log File Rotation (Compression Bug)

1.860
open
nobody
4
2017-12-21
2017-12-13
Jaret
No

In Webmin on FreeBSD, we have an issue where logfiles cannot be compressed upon rotating logs..

Module: System > Log File Rotation.

1 Attachments

Related

Bugs: #5062

Discussion

  • Jamie Cameron

    Jamie Cameron - 2017-12-13

    Do you have the gzip command on your system?

     
  • Jaret

    Jaret - 2017-12-18

    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

     
  • Jaret

    Jaret - 2017-12-18

    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

    On Wednesday, December 13, 2017, 3:15:10 PM GMT-8, Jamie Cameron <jcameron@users.sf.net> wrote:
    

    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:

    • Capture.PNG (38.2 kB; image/png)

    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

  • Jamie Cameron

    Jamie Cameron - 2017-12-18

    If you SSH in as root and run logrotate -f /etc/logrotate.conf what does it output?

     
  • Jaret

    Jaret - 2017-12-18

    logrotate -f /usr/local/etc/logrotate.conf shows no output. No errors.

     
  • Jamie Cameron

    Jamie Cameron - 2017-12-19

    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?

     
  • Jaret

    Jaret - 2017-12-19

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2017-12-20

    Is your system perhaps low on RAM?

     
  • Jaret

    Jaret - 2017-12-20

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2017-12-21

    Can you post the /etc/webmin/logrotate/config file from your system?

     

Log in to post a comment.