Printing suddenly stops on the iPrint Appliance 3.x

  • 7024575
  • 20-Apr-2020
  • 20-Apr-2020

Environment

iPrint Appliance 3.x
Apache version 2.2.X

Situation

Printing suddenly stops on the iPrint Appliance
df -h shows that the /var partition is 100% full.

Resolution

  • Delete the oversized Apache rewrite log
    • rm /var/log/apache2/rewrite_log
  • Configure the Apache2 rewrite_log to roll over.
    • Edit the /etc/logrotate.d/apache2 config file
    • Note the multiple log file directives for access_log, error_log, suexec.log, etc.  Add one more set of directives for rewrite_log by adding all of the text below to the bottom of the /etc/logrotate.d/apache2 file:
/var/log/apache2/rewrite_log {
    compress
    dateext
    maxage 365
    rotate 99
    size=+1024k
    notifempty
    missingok
    create 644 root root
    prerotate
     /etc/init.d/apache2 check-reload
    endscript
    postrotate
     /etc/init.d/apache2 reload
    endscript
}
  • Restart Apache
    • rcapache2 restart

Cause

The rewrite_log does not roll over by default and will continue to grow indefinitely.  This caused the /var partition to be 100% full, which causes printing to not work.

Additional Information

df -h shows the partitions and their usage.

This command will list the top 20 largest files within the /var partition, sorted by largest first:
find /var -type f -exec du -Sh {} + | sort -rh | head -n 20