Super Large /var/log files

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
thorpey01
Posts: 8
Joined: Fri 26. Feb 2016, 10:55

Super Large /var/log files

Post by thorpey01 » Thu 31. Mar 2016, 13:02

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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Super Large /var/log files

Post by M.Maidhof » Thu 31. Mar 2016, 16:34

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

thorpey01
Posts: 8
Joined: Fri 26. Feb 2016, 10:55

Re: Super Large /var/log files

Post by thorpey01 » Thu 31. Mar 2016, 17:15

*------------- 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$

thorpey01
Posts: 8
Joined: Fri 26. Feb 2016, 10:55

Re: Super Large /var/log files

Post by thorpey01 » Fri 1. Apr 2016, 16:38

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..

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Super Large /var/log files

Post by S.Grosjean » Tue 5. Apr 2016, 12:24

Hello,

Could you please give us an extract of these logs (last 50 lines, for example), something like:

Code: Select all

$ dmesg | tail -n 50
We'll see what are the reasons of these logs,

Thanks.

Stéphane
— Stéphane

monty_hall
Posts: 4
Joined: Mon 20. Mar 2017, 21:16

Re: Super Large /var/log files

Post by monty_hall » Wed 26. Apr 2017, 21:50

I'm having the exact same problem too. kernel and syslog chocked full of pcan transaction information.

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Super Large /var/log files

Post by S.Grosjean » Thu 27. Apr 2017, 10:00

Hi,

Could you please give us the output of:

Code: Select all

$ cat /proc/pcan
as well as:

Code: Select all

$ dmesg | grep pcan
Thanks,

Stéphane
— Stéphane

Post Reply