Page 1 of 1
Super Large /var/log files
Posted: Thu 31. Mar 2016, 13:02
by thorpey01
I have been using the CharDev drivers and the PCAN Basic API to write Python code to send and receive CAN messages.
How do I turn off logging of CAN messages to /var/log/ kern.log and syslog etc
I am seeing massive log files being produced .. one is 50GB ! .. i look in the logs and they are full of all the CAN messages I am looking at.
can i just delete these massive log files with SUDO? How do i stop them logging again.. ?
best regards,
Nicholas
Re: Super Large /var/log files
Posted: Thu 31. Mar 2016, 16:34
by M.Maidhof
Hi,
which driver version do you use and with which settings did you compile it? Please send the output of cat /proc/pcan to see more details
regards
Michael
Re: Super Large /var/log files
Posted: Thu 31. Mar 2016, 17:15
by thorpey01
*------------- PEAK-System CAN interfaces (
www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Mar 9 2016 13:02:06 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 2 interfaces @ major 246 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbpfd -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
33 usbpfd -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
rdm@rdm-Inspiron-1501:/var/log$
Re: Super Large /var/log files
Posted: Fri 1. Apr 2016, 16:38
by thorpey01
I've done a bit of research on this .. it could be a bug with Ubuntu.. possible solutions are to turn off ACPI in the BIOS.. I can't beleive Ubuntu could just let these log files grow to such large files as 50 GB .. and fill up your hardrive so that your PC is inoperable..
Re: Super Large /var/log files
Posted: Tue 5. Apr 2016, 12:24
by S.Grosjean
Hello,
Could you please give us an extract of these logs (last 50 lines, for example), something like:
We'll see what are the reasons of these logs,
Thanks.
Stéphane
Re: Super Large /var/log files
Posted: Wed 26. Apr 2017, 21:50
by monty_hall
I'm having the exact same problem too. kernel and syslog chocked full of pcan transaction information.
Re: Super Large /var/log files
Posted: Thu 27. Apr 2017, 10:00
by S.Grosjean
Hi,
Could you please give us the output of:
as well as:
Thanks,
Stéphane