You are not logged in.

#1 2009-05-14 18:37:06

IcePik
Member
From: Canterbury, UK
Registered: 2008-12-14
Posts: 31

Insanely LARGE log files[SOLVED]

Hi guys,

I seem to have a problem here i seem to have an gigantic /var/log folder (104Gb) with abnormally large log files everything.log.1, errors.log.1 and user.log.1 each 34.8Gb

nano hung the system when i tried opening errors.log.1 and when i tried less it looked like the file was full with the same stuff repeated over and over again from fifth may till may 9th

May  5 22:17:02 myhost Deskjet_F4100_series?serial=CN77T3V1960504: io/hpmud/musb.c 725: invalid deviceid wIndex=1, retrying wIndex=100: No such device
May  5 22:17:02 myhost Deskjet_F4100_series?serial=CN77T3V1960504: io/hpmud/musb.c 734: invalid deviceid retry ret=-19: No such device
May  5 22:17:02 myhost Deskjet_F4100_series?serial=CN77T3V1960504: io/hpmud/musb.c 777: invalid device_status: No such device
May  5 22:17:02 myhost Deskjet_F4100_series?serial=CN77T3V1960504: io/hpmud/musb.c 1022: bulk_write failed buf=0x7fff45933b00 size=1664 len=-19: No such device
May  5 22:17:02 myhost Deskjet_F4100_series?serial=CN77T3V1960504: io/hpmud/musb.c 1384: unable to write data hp:/usb/Deskjet_F4100_series?serial=CN77T3V1960504: No such device

even evrything.log.1 and user.log.1 has a similar code repeated from may 5th to may 9th it seems like whatever is causing this error has stopped as there is no record of any such errors in any other log file and at the end of the file.

it seems like some printer related error

i would like to ask if anyone has experienced such log files and would want to know if it would be safe to delete them.

also any suggestions on what should be done to clean up these files and any idea what exactly these errors are please suggest some sort of remedy, suggestions will be much appreciated

Last edited by IcePik (2009-06-16 09:12:01)


IcePik
Samsung Series 5 Ultrabook NP530U3C-A01US
Intel® Core™ i5-3317U CPU @ 1.70GHz  |  4 GB DDR3  |  Intel® HD Graphics 4000 (Intel i915)  |  Intel® Centrino Advanced-N 6235

Offline

#2 2009-05-14 23:28:45

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Insanely LARGE log files[SOLVED]

IcePik,

i would like to ask if anyone has experienced such log files and would want to know if it would be safe to delete them.

Yes, its safe to delete the files.

It seems that some error with the printer kept filling the log files. It happens.

You seem to have logrotate installed, since you mention files like "everything.log.1, errors.log.1", that are usually generated
by logrotate.

In this case you will have "/etc/logrotate.d/syslog-ng" which will contain something like:

/var/log/messages.log /var/log/auth.log /var/log/mail.log /var/log/kernel.log /var/log/errors.log /var/log/daemon.log /var/log/user.log /var/log/iptables.log /var/log/everything.log /var/log/syslog.log /var/log/acpid.log {
        missingok
        sharedscripts
        postrotate
                /bin/kill -HUP `cat /var/run/syslog-ng.pid 2>/dev/null`  2> /dev/null || true
        endscript
}

You can add a line containing f.e.:

size 10M

This will limit the log size to 10 Meg's.

However logrotate is in /etc/cron.daily, which means it will run once a day.
You could put it in /etc/cron.hourly, to have it run every hour.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

Board footer

Powered by FluxBB