CUPS Error Log Fills Disk Fast | Generated by AI

Home 2026.02

Question: Why did /var/log/cups grow very large (occupying around 300 GB of log files) and cause the system to run out of space?

Answer:

The most common reason /var/log/cups (especially error_log) grows to hundreds of GB is that CUPS enters a rapid error-loop and logs the same error message thousands of times per second.

Typical causes include:

Why 300 GB is possible
A single line is ~100–200 bytes. At 10–1000 lines/second (easy in tight loops), it fills space very quickly:

Immediate emergency actions (when disk is already full)

  1. Stop CUPS immediately to halt logging
    sudo systemctl stop cups
    # or if systemd is broken due to no space:
    sudo service cups stop
    
  2. Free space by truncating or deleting the huge log
    sudo truncate -s 0 /var/log/cups/error_log
    # or
    sudo rm -f /var/log/cups/error_log
    
  3. Restart CUPS (only after fixing root cause)
    sudo systemctl start cups
    

Long-term prevention

Most people in this situation eventually discover one misconfigured network printer (or an old removed one still defined in CUPS) was the root cause.

If you can share the last 20–50 lines of /var/log/cups/error_log (after tail -n 50 /var/log/cups/error_log), it usually reveals exactly which printer or backend is looping.

References:


Back Donate