LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-31-2020, 02:41 PM   #1
SirSkorpan
LQ Newbie
 
Registered: Nov 2018
Posts: 3

Rep: Reputation: Disabled
Question My logs are filled with a "Bluetooth ... unknown connection handle..." entry, what might be wrong?


The first sign was a crash of my terminal and this message when ever I try to, for example list the content of a directory:
Code:
bash: cannot create temp file for here-document: No space left on device
and
Code:
df -h
shows that my root file system is 100% full. After some searching I find that these three files:
Code:
 
/var/log/kern.log
/var/log/syslog
/var/log/syslog.1
are 8.1+4.1+4.1=16.3G and have been filled by the following line for the last 2 days:

Code:
Mar 29 21:01:50 ubuntu kernel: [52962.228231] Bluetooth: hci0: SCO packet for unknown connection handle 0
.
.
.
Mar 31 15:59:46 ubuntu kernel: [182643.085514] Bluetooth: hci0: SCO packet for unknown connection handle 0
Mar 31 15:59:46 ubuntu kernel: [182643.085516] Bluetooth: hci0: SCO packet for unknown connection handle 0
Mar 31 15:59:46 ubuntu kernel: [182643.085517] Bluetooth: hci0: SCO packet for unknown connection handle 0
Mar 31 15:59:46 ubuntu kernel: [182643.085519] Bluetooth: hci0: SCO packet for unknown connection handle 1024
Mar 31 15:59:46 ubuntu kernel: [182643.085521] Bluetooth: hci0: SCO packet for unknown connection handle 48
Mar 31 15:59:46 ubuntu kernel: [182643.085523] Bluetooth: hci0: SCO packet for unknown connection handle 0
Mar 31 15:59:46 ubuntu kernel: [182643.085524] Bluetooth: hci0: SCO packet for unknown connection handle 0
Mar 31 15:59:46 ubuntu kernel: [182643.085526] Bluetooth: hci0: SCO packet for unknown connection handle 0
(over 99.99% of the lines in all files consists of this line)

I realize that it has something to do with the Bluetooth, but I'm at a loss as to what specific about the bluetooth is failing. I have my bluetooth head set connected almost all day but it seems to be working fine. Both input and output.

I use bluetoothctl to connect to my headset and pavucontrol to switch between headset mode (HSP/HFP) and hifi mode (A2DP sink). Other than that I don't interact or manage bluetooth. Don't have any other devices connected either.

My system is a fairly standard Ubuntu 18.04 installation, as far as I know I haven't installed or changed any advanced settings for bluetooth.

I guess these are the questions:

how do I find out what the log entry means?
how do I solve it so it doesn't appear?
Is there a way to limit the logs to a maximum size?

Last edited by SirSkorpan; 03-31-2020 at 02:43 PM.
 
Old 03-31-2020, 03:28 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Delete the logs.
Reboot.
Then (assuming they are filling up again) take another look at the error messages and start fixing it.
Here's a search for the error to get you started.
 
Old 03-31-2020, 03:44 PM   #3
bazio101
Member
 
Registered: Feb 2020
Location: Greece
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
My logs are filled with a "Bluetooth ... unknown connection handle..." entry, what might be wrong?

Make sure to configure logrotate to, first: rotate kern.log, as it seems that there is no config file for it in /etc/logrotate.d directory or any entry inside logrotate.conf file and second: change the way syslog is being rotated (4,1 Gb is too much).
 
  


Reply

Tags
bluetooth, bluetoothctl, log files, pavucontrol



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
Back up logs file and create a script showing the backed up logs and the running logs Billy_6052 Programming 5 12-13-2014 02:32 AM
automatic mail of "Last User Login Logs" & "AIX Logs" nishith AIX 3 12-04-2009 12:42 PM
Filled hard disk with wrong CP command... buccaneere Linux - Software 37 02-21-2009 11:30 AM
Logs filled with psargs/psparse kernel message hazza SUSE / openSUSE 13 05-09-2005 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration