Syslog and Kern.log

22 respostas [Última entrada]
Davide0
Desconectado
Joined: 12/01/2015

Hello to everyone, whenever I start Trisquel the Syslog and Kern.log files increase their size until I have to clear them otherwise I don't have enough free space to load the OS. How can I solve the problem?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Well, the good solution would be to solve the problem that must be repeatedly written in kern.log. What is it? Maybe it is a support issue that would be solved by the installation of a newer kernel: https://jxself.org/linux-libre/

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014
Davide0
Desconectado
Joined: 12/01/2015

I checked the files but I can't understand what they say. I installed the latest version of linux-libre kernel and sometimes I have to reboot the OS otherwise it doesn't work: everything is blocked. At the moment I can't understand what the log files contain, I'm not an expert....

ADFENO
Desconectado
Joined: 12/31/2012

When I started using my first computer, I also didn't understand how
things worked, over time, I begun understanding that I could only solve
my occasional computer problems if I do share what I currently have with
the people related to the same thing I use, even though I don't need to
understand everything that exists in the universe, because I'm not the
know-all-person. :)

Still as of today, when I have a problem I can't solve, or something I
can't understand, I seek advice from people who are related to those
things, and that I think that might have some experience to share. This
can be as simple as copying a little piece of text from that log file,
and inserting it here for us to read. So, go ahead and do as I just
said. ;)

Note, however that, if the text repeats over and over, or is too similar
to various ones, please paste only the first occurence.

Respectfully, Adonay.

--
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
GNU Ring, ou Tox. Quer outras formas de contato? Adicione o vCard
que está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
/software/ livre. Favor entrar em contato em caso de dúvida.

Davide0
Desconectado
Joined: 12/01/2015

Thanks to everyone for the information! I am using a Lenovo Notebook ideapad 110. The internal wifi doesn't work with Trisquel so I am using an usb wifi. I attach the files that give me problmes. If somone needs more information let me know...

AnexoTamaño
kern.log_.txt 568.11 KB
syslog.txt 780.46 KB
Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Those logs look normal. Do they still increase until you run out of disk space?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Having five lines (from "Missing Free firmware" to "Could not read microcode: -22") logged every 2ms (the numbers between squared brackets are times since the last boot) is abnormal... but the logs Davide0 attached are not like that. They look normal, hence my question: do they still increase until you run out of disk space? The newer version of Linux-libre may have solved the problem but the older logs may be still present, taking all the space. Let us see the output of the following command that shows the twenty largest files in /var/log:
$ ls -lhS /var/log/ | head -20
If you cannot log into a graphical session (a full root partition does that if I remember well), log into a terminal with Ctrl+Alt+F1 (or Ctrl+Alt+F2 or ... or Ctrl+Alt+F6).

Davide0
Desconectado
Joined: 12/01/2015

Here's the output:

-rw-r----- 1 syslog adm 6,1G lug 18 17:24 syslog
-rw-r----- 1 syslog adm 6,1G lug 18 17:23 kern.log
-rw-r--r-- 1 root root 2,6M lug 16 23:38 dpkg.log
-rw-rw-r-- 1 root utmp 818K lug 18 17:26 wtmp
-rw-r--r-- 1 root root 390K lug 18 17:23 udev
-rw-rw-r-- 1 root utmp 286K lug 2 22:48 lastlog
-rw-r--r-- 1 root root 246K lug 18 17:23 pm-powersave.log
-rw-r----- 1 syslog adm 148K lug 18 17:23 auth.log
-rw-r--r-- 1 root root 64K nov 2 2014 bootstrap.log
-rw-r----- 1 root adm 54K lug 17 20:58 dmesg.0
-rw-r----- 1 root adm 54K lug 18 17:22 dmesg
-rw-r--r-- 1 root root 47K lug 15 22:18 alternatives.log
-rw-r--r-- 1 root root 33K lug 15 21:52 pm-suspend.log
-rw-r--r-- 1 root root 32K lug 2 22:48 faillog
-rw-r--r-- 1 root root 30K lug 17 23:37 Xorg.0.log.old
-rw-r--r-- 1 root root 23K lug 18 17:24 Xorg.0.log
-rw-r----- 1 root adm 16K lug 16 20:20 dmesg.3.gz
-rw-r----- 1 root adm 16K lug 16 20:19 dmesg.4.gz
-rw-r----- 1 root adm 16K lug 16 23:39 dmesg.2.gz

Today I started the OS and the files increased a lot, in fact now they are about 6.5GB each.

one part of the output of "tail -f /var/log/syslog" is:

$ tail -f /var/log/kern.log
Jul 18 17:23:33 davidoff kernel: [ 52.384828] ath: Regpair used: 0x52
Jul 18 17:23:33 davidoff kernel: [ 52.456562] ieee80211 phy0: Atheros AR9271 Rev:1
Jul 18 17:23:34 davidoff kernel: [ 52.764721] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 18 17:23:35 davidoff kernel: [ 54.388508] wlan0: authenticate with e0:b9:e5:2c:ac:85
Jul 18 17:23:36 davidoff kernel: [ 54.784977] wlan0: send auth to e0:b9:e5:2c:ac:85 (try 1/3)
Jul 18 17:23:36 davidoff kernel: [ 54.786679] wlan0: authenticated
Jul 18 17:23:36 davidoff kernel: [ 54.790035] wlan0: associate with e0:b9:e5:2c:ac:85 (try 1/3)
Jul 18 17:23:36 davidoff kernel: [ 54.793678] wlan0: RX AssocResp from e0:b9:e5:2c:ac:85 (capab=0x411 status=0 aid=2)
Jul 18 17:23:36 davidoff kernel: [ 54.803750] wlan0: associated
Jul 18 17:23:36 davidoff kernel: [ 54.803783] IPv6: ADDRCONF(NETDEV_CHANGE): wldavide@davidoff:~$ tail -f /var/log/syslog
Jul 18 17:23:45 davidoff dbus[650]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jul 18 17:23:46 davidoff gnome-session[1250]: GLib-CRITICAL: g_environ_setenv: assertion 'value != NULL' failed
Jul 18 17:23:51 davidoff ntpdate[1906]: adjust time server 91.189.89.199 offset -0.128774 sec
Jul 18 17:23:56 davidoff NetworkManager[1139]: (wlan0): IP6 addrconf timed out or failed.
Jul 18 17:23:56 davidoff NetworkManager[1139]: Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jul 18 17:23:56 davidoff NetworkManager[1139]: Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jul 18 17:23:56 davidoff NetworkManager[1139]: Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jul 18 17:23:57 davidoff wpa_supplicant[1777]: wlan0: CTRL-EVENT-SCAN-STARTED

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

See if some messages are repeated many times (and show them to us):
$ less /var/log/kern.log
You can press PgUp/PgDn to scroll up/down one page; 'q' to quit.

Davide0
Desconectado
Joined: 12/01/2015

Ok, all this block is repeated:

Jul 17 21:35:12 davidoff kernel: [ 2210.262943] WARNING: CPU: 1 PID: 1003 at drivers/usb/core/urb.c:449 usb_submit_urb+0x536/0x5a0
Jul 17 21:35:12 davidoff kernel: [ 2210.262946] Modules linked in: ccm arc4 ath9k_htc ath9k_common ath9k_hw ath mac80211 cmac rfcomm bnep intel_rapl x86_pkg_temp_thermal intel_powerclamp coret
emp snd_soc_skl snd_soc_skl_ipc snd_hda_codec_hdmi kvm snd_soc_sst_ipc snd_hda_codec_generic snd_soc_sst_dsp irqbypass snd_hda_ext_core snd_soc_sst_match snd_soc_core snd_compress ac97_bus crc
t10dif_pclmul snd_pcm_dmaengine crc32_pclmul ghash_clmulni_intel uvcvideo snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep rtsx_usb_ms pcbc snd_pcm_oss aesni_intel memstick videobuf2_vmalloc
snd_mixer_oss videobuf2_memops aes_x86_64 iwlwifi videobuf2_v4l2 snd_pcm videobuf2_core crypto_simd videodev snd_seq_midi snd_seq_midi_event btusb snd_rawmidi hci_uart snd_seq snd_seq_device
snd_timer dm_multipath serdev media btrtl btbcm btqca btintel glue_helper cfg80211
Jul 17 21:35:12 davidoff kernel: [ 2210.263059] bluetooth snd cryptd ecdh_generic soundcore input_leds intel_cstate intel_rapl_perf joydev serio_raw wdat_wdt ideapad_laptop mei_me sparse_keym
ap shpchp tpm_crb i2c_hid hid mei mac_hid intel_lpss_acpi intel_lpss intel_pch_thermal pinctrl_sunrisepoint pinctrl_intel acpi_pad parport_pc ppdev lp parport btrfs raid10 raid456 async_raid6_
recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear dm_mirror dm_region_hash dm_log rtsx_usb_sdmmc rtsx_usb i915 i2c_algo_bit drm_kms_helper sysc
opyarea sysfillrect psmouse sysimgblt r8169 ahci fb_sys_fops mii libahci drm wmi video
Jul 17 21:35:12 davidoff kernel: [ 2210.263103] CPU: 1 PID: 1003 Comm: NetworkManager Tainted: G W 4.12.0-gnu #1
Jul 17 21:35:12 davidoff kernel: [ 2210.263104] Hardware name: LENOVO 80TL/Lenovo V110-15ISK, BIOS 1KCN28WW 11/15/2016
Jul 17 21:35:12 davidoff kernel: [ 2210.263106] task: ffff90e172f1ae00 task.stack: ffffbc940157c000
Jul 17 21:35:12 davidoff kernel: [ 2210.263110] RIP: 0010:usb_submit_urb+0x536/0x5a0
Jul 17 21:35:12 davidoff kernel: [ 2210.263111] RSP: 0018:ffffbc940157f258 EFLAGS: 00010296
Jul 17 21:35:12 davidoff kernel: [ 2210.263114] RAX: 000000000000002b RBX: ffff90e0d201a780 RCX: ffffffffb2e62d78
Jul 17 21:35:12 davidoff kernel: [ 2210.263115] RDX: 0000000000000001 RSI: 0000000000000092 RDI: 0000000000000202
Jul 17 21:35:12 davidoff kernel: [ 2210.263117] RBP: ffffbc940157f2c8 R08: 000000000000291c R09: ffffffffb334cdc4
Jul 17 21:35:12 davidoff kernel: [ 2210.263118] R10: 000000000000cae0 R11: 000000000000cadf R12: 00000000014000c0
Jul 17 21:35:12 davidoff kernel: [ 2210.263119] R13: ffff90e075fb6800 R14: 0000000000000001 R15: 0000000000000001
Jul 17 21:35:12 davidoff kernel: [ 2210.263121] FS: 00007f4d96a81880(0000) GS:ffff90e17ec80000(0000) knlGS:0000000000000000
Jul 17 21:35:12 davidoff kernel: [ 2210.263123] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 17 21:35:12 davidoff kernel: [ 2210.263124] CR2: 00007f0abbf73020 CR3: 0000000138dd5000 CR4: 00000000003406e0
Jul 17 21:35:12 davidoff kernel: [ 2210.263126] Call Trace:
Jul 17 21:35:12 davidoff kernel: [ 2210.263130] ? __kmalloc+0x185/0x210
Jul 17 21:35:12 davidoff kernel: [ 2210.263137] hif_usb_send+0x1a3/0x370 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263141] htc_issue_send.constprop.2+0x6d/0x90 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263145] htc_send_epid+0x18/0x20 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263149] ath9k_wmi_cmd+0x141/0x1f0 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263154] ath9k_regread+0x3e/0x50 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263159] ath9k_reg_rmw+0x123/0x180 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263166] ? ath9k_hw_init_global_settings+0x1e9/0x340 [ath9k_hw]
Jul 17 21:35:12 davidoff kernel: [ 2210.263175] ath9k_hw_reset+0x70b/0x1290 [ath9k_hw]
Jul 17 21:35:12 davidoff kernel: [ 2210.263183] ? ath9k_wmi_cmd+0x1bb/0x1f0 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263195] ath9k_htc_config+0x1b0/0x5d0 [ath9k_htc]
Jul 17 21:35:12 davidoff kernel: [ 2210.263217] ? ieee80211_bss_info_change_notify+0xc8/0x1a0 [mac80211]
Jul 17 21:35:12 davidoff kernel: [ 2210.263238] ieee80211_hw_config+0x63/0x330 [mac80211]
Jul 17 21:35:12 davidoff kernel: [ 2210.263264] ieee80211_do_open+0x5ee/0x840 [mac80211]
Jul 17 21:35:12 davidoff kernel: [ 2210.263287] ieee80211_open+0x5a/0x70 [mac80211]
Jul 17 21:35:12 davidoff kernel: [ 2210.263295] __dev_open+0xac/0x120
Jul 17 21:35:12 davidoff kernel: [ 2210.263302] __dev_change_flags+0xac/0x180
Jul 17 21:35:12 davidoff kernel: [ 2210.263308] dev_change_flags+0x30/0x70
Jul 17 21:35:12 davidoff kernel: [ 2210.263317] do_setlink+0x4cd/0xc80
Jul 17 21:35:12 davidoff kernel: [ 2210.263325] ? __nla_reserve+0x50/0x70
Jul 17 21:35:12 davidoff kernel: [ 2210.263333] rtnl_newlink+0x4b7/0x840
Jul 17 21:35:12 davidoff kernel: [ 2210.263338] ? rtnl_newlink+0x11d/0x840
Jul 17 21:35:12 davidoff kernel: [ 2210.263347] ? ns_capable+0x2d/0x50
Jul 17 21:35:12 davidoff kernel: [ 2210.263350] rtnetlink_rcv_msg+0xa8/0x220
Jul 17 21:35:12 davidoff kernel: [ 2210.263354] ? __kmalloc_node_track_caller+0x1fc/0x260
Jul 17 21:35:12 davidoff kernel: [ 2210.263356] ? __rtnl_unlock+0x50/0x50
Jul 17 21:35:12 davidoff kernel: [ 2210.263360] netlink_rcv_skb+0xed/0x120
Jul 17 21:35:12 davidoff kernel: [ 2210.263364] rtnetlink_rcv+0x25/0x40
Jul 17 21:35:12 davidoff kernel: [ 2210.263368] netlink_unicast+0x180/0x200
Jul 17 21:35:12 davidoff kernel: [ 2210.263371] netlink_sendmsg+0x2c5/0x3b0
Jul 17 21:35:12 davidoff kernel: [ 2210.263375] sock_sendmsg+0x46/0x60
Jul 17 21:35:12 davidoff kernel: [ 2210.263379] ___sys_sendmsg+0x2bb/0x2d0
Jul 17 21:35:12 davidoff kernel: [ 2210.263383] ? SYSC_sendto+0x120/0x160
Jul 17 21:35:12 davidoff kernel: [ 2210.263388] __sys_sendmsg+0x4c/0x90
Jul 17 21:35:12 davidoff kernel: [ 2210.263392] SyS_sendmsg+0x12/0x20
Jul 17 21:35:12 davidoff kernel: [ 2210.263395] entry_SYSCALL_64_fastpath+0x1e/0xa9
Jul 17 21:35:12 davidoff kernel: [ 2210.263397] RIP: 0033:0x7f4d93fee9bd
Jul 17 21:35:12 davidoff kernel: [ 2210.263399] RSP: 002b:00007ffeed638a00 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
Jul 17 21:35:12 davidoff kernel: [ 2210.263401] RAX: ffffffffffffffda RBX: 0000000000ca61e0 RCX: 00007f4d93fee9bd
Jul 17 21:35:12 davidoff kernel: [ 2210.263403] RDX: 0000000000000000 RSI: 00007ffeed638a30 RDI: 0000000000000006
Jul 17 21:35:12 davidoff kernel: [ 2210.263404] RBP: 00007ffeed638448 R08: 0000000000000001 R09: 00007f4d93fd87b8
Jul 17 21:35:12 davidoff kernel: [ 2210.263405] R10: 00007f4d93fd87b8 R11: 0000000000000293 R12: 0000000000c55f60
Jul 17 21:35:12 davidoff kernel: [ 2210.263407] R13: 00007f4d9484a790 R14: 0000000000000000 R15: 00007ffeed638530
Jul 17 21:35:12 davidoff kernel: [ 2210.263409] Code: 45 a8 44 88 4d c0 44 89 55 b8 e8 86 33 f2 ff 44 8b 45 a8 48 8b 55 b0 48 89 c6 44 89 f9 48 c7 c7 b0 6b d2 b2 31 c0 e8 cd b3 b1 ff <0f> ff 44 8b 55 b8 44 0f b6 4d c0 e9 74 fc ff ff 49 8b 95 e8 00
Jul 17 21:35:12 davidoff kernel: [ 2210.263492] ---[ end trace 2a520bef57709c1b ]---
Jul 17 21:35:12 davidoff kernel: [ 2210.264977] usb 1-2.1: BOGUS urb xfer, pipe 1 != type 3
Jul 17 21:35:12 davidoff kernel: [ 2210.264991] ------------[ cut here ]------------

Also appear errors before the OS is loaded, I attach the photo.

photo_2017-07-19_16-53-21.jpg
Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

It apparently is a problem with the Wifi. You use the firmware that the package "open-ath9k-htc-firmware" provides, right? I use it too but I have no problem. Maybe the hardware is defective...

albertoefg
Desconectado
Joined: 04/21/2016

How much space do you have for / and how much for /home

Is your disk encrypted?

What's the total space of your disk?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

It is very probable that my hypothesis ("*maybe* the hardware is defective") is wrong. Do you have another hypothesis? Or do you disagree that the problem "*apparently* is with the Wifi"? That is easy to test:

  1. Disconnect the Wifi (with the related Fn key on the keyboard or physically, e.g., if it is a USB adapter, maybe deactivating Wifi from NetworkManager is enough);
  2. Save some space on the root partition (see https://trisquel.info/forum/trisquel-not-detecting-thinkpenguin-wifi-adapter-after-install#comment-118193 that I have just written);
  3. See if the message keeps on being logged in kern.log, looking at the live output of 'tail -F /var/log/kern.log' or with 'less /var/log/kern.log' after working a little (using Ethernet if the network is needed) or searching for pieces of it with 'grep'.
Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

The kernel messages look more "low-level" to me. But, again, it is very probable that I am wrong! Over the years, I have been wrong multiple times in this forum. I would first try deactivating the Wifi, as I wrote in the message above.

Davide0
Desconectado
Joined: 12/01/2015

Thanks Heather and thanks to Magic Banana. I disabled the Wifi on BIOS and for now everything seems to work fine. But I don't know how to editing network interfaces and rc.local, so I took the easiest way for me...
With Xubuntu, when I enable wifi in BIOS the network works well and I don't need any proprietary driver, that is what Xubuntu says (I don't need an USB adapter but the internal hardware works good)...

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

>With Xubuntu, when I enable wifi in BIOS the network works well and I don't need any proprietary driver

That's because what you need is not the proprietary driver but rather the **firmware**, which on Xubuntu is loaded in the kernel when you boot your machine. The same proprietary firmware is obviously missing in Trisquel.
Hence your hardware 'works good' with Xubuntu shipping the vanilla linux kernel that is full of proprietary firmware blobs (the one for your wifi included) and works NOT with Trisquel for the particular needed blob is not there..