Li You
Li You

Reputation: 159

Disk space rapidly decreased because /var/log/cups/error_log has become huge

After I updated my Ubuntu to 12.04, my system went slow and it warned me that my disk has less space left. I checked my disk and found the file /var/log/cups/error_log 's size was 78G!!. I checked this file and found it full of "notifier for subscription dbus:// went away retrying retrying"......... What's going on here? And what can I do?

Upvotes: 5

Views: 9678

Answers (3)

Jack Vial
Jack Vial

Reputation: 2474

The first thing you should do is stop the cups server so it stops filling up your file system with errors. Open the terminal and run:

sudo stop cups

Then delete the error_log file. If you are deleting it through the gui make sure you delete it using shift + delete so it doesn't go to your trash. You might need to restart your system after. I just had this problem. Will extend this answer when I figure out a permanent solution.

Update #1

Stopping cups server, deleting the error_log file and rebooting solved the problem for me. cups (Common Unix Printing System) is used to connect network printers to your your machine so if you are getting lots of cups errors it is most like due to a failed printer connection or some other printer error.

Upvotes: 0

Ayo Makanjuola
Ayo Makanjuola

Reputation: 628

You can use the command below to show all the files in your drive over 1G in size

sudo find / -size +1G

You can now delete the files that you do not need.

Cheers

Upvotes: 0

Nihilist Freedom
Nihilist Freedom

Reputation: 121

try remove this folder and make it again with this command

sudo rm -vfr /var/log && sudo mkdir /var/log

and check if any tools make report about your system like apport disable it from here

apport disable

and something like this uncheck it and make record activity inactive like this in privacy option

privacy option

and in software sources uncheck this option you can this windows by type in terminal

gksu software-properties-gtk

and do that

enter image description here

Upvotes: 2

Related Questions