← Back to team overview

kernel-packages team mailing list archive

[Bug 1490349] Re: 15:10: bluetoothd reports "Not enough handles to register service" at start

 

I use ubuntu16.04, my computer can't connect to my bluetooth speaker
after reboot.

uname -a
Linux zs-PC 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

journalctl --unit=bluetooth
-- Logs begin at 一 2016-06-20 18:41:21 CST, end at 一 2016-06-20 18:43:45 CST. --
6月 20 18:41:36 zs-PC systemd[1]: Starting Bluetooth service...
6月 20 18:41:36 zs-PC bluetoothd[818]: Bluetooth daemon 5.37
6月 20 18:41:36 zs-PC systemd[1]: Started Bluetooth service.
6月 20 18:41:36 zs-PC bluetoothd[818]: Starting SDP server
6月 20 18:41:36 zs-PC bluetoothd[818]: Bluetooth management interface 1.10 initialized
6月 20 18:41:36 zs-PC bluetoothd[818]: Failed to obtain handles for "Service Changed" characteristic
6月 20 18:41:36 zs-PC bluetoothd[818]: Not enough free handles to register service
6月 20 18:41:36 zs-PC bluetoothd[818]: Error adding Link Loss service
6月 20 18:41:36 zs-PC bluetoothd[818]: Not enough free handles to register service
6月 20 18:41:36 zs-PC bluetoothd[818]: Not enough free handles to register service
6月 20 18:41:36 zs-PC bluetoothd[818]: Not enough free handles to register service
6月 20 18:41:36 zs-PC bluetoothd[818]: Current Time Service could not be registered
6月 20 18:41:36 zs-PC bluetoothd[818]: gatt-time-server: Input/output error (5)
6月 20 18:41:36 zs-PC bluetoothd[818]: Not enough free handles to register service
6月 20 18:41:36 zs-PC bluetoothd[818]: Not enough free handles to register service
6月 20 18:41:36 zs-PC bluetoothd[818]: Sap driver initialization failed.
6月 20 18:41:36 zs-PC bluetoothd[818]: sap-server: Operation not permitted (1)
6月 20 18:41:48 zs-PC bluetoothd[818]: Endpoint registered: sender=:1.43 path=/MediaEndpoint/A2DPSource
6月 20 18:41:48 zs-PC bluetoothd[818]: Endpoint registered: sender=:1.43 path=/MediaEndpoint/A2DPSink
6月 20 18:41:53 zs-PC bluetoothd[818]: Endpoint registered: sender=:1.67 path=/MediaEndpoint/A2DPSource
6月 20 18:41:53 zs-PC bluetoothd[818]: Endpoint registered: sender=:1.67 path=/MediaEndpoint/A2DPSink
6月 20 18:41:53 zs-PC bluetoothd[818]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
6月 20 18:42:10 zs-PC bluetoothd[818]: Endpoint unregistered: sender=:1.43 path=/MediaEndpoint/A2DPSource
6月 20 18:42:10 zs-PC bluetoothd[818]: Endpoint unregistered: sender=:1.43 path=/MediaEndpoint/A2DPSink


>From now, I can only use my bluetooth speaker by:
1. delete it from the bluetooth device list
2. research the bluetooth device
3. select and connect it
then everything is ok.

I don't konw why I can't connect my bluetooth speaker wituout delete it.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1490349

Title:
  15:10: bluetoothd reports "Not enough handles to register service" at
  start

Status in bluez package in Ubuntu:
  Confirmed

Bug description:
  On 15:10 after the bluetooth service has been stopped and restarted it
  is not possible to scan or connect to devices:

  $ sudo systemctl start bluetooth
  $ journalctl --unit=bluetooth | tail -n 19 | awk '{$1="";$2="";$4="";print $0}'
    23:31:53  systemd[1]: Starting Bluetooth service...
    23:31:53  bluetoothd[16647]: Bluetooth daemon 5.33
    23:31:53  systemd[1]: Started Bluetooth service.
    23:31:53  bluetoothd[16647]: Starting SDP server
    23:31:53  bluetoothd[16647]: Bluetooth management interface 1.9 initialized
    23:31:53  bluetoothd[16647]: Failed to obtain handles for "Service Changed" characteristic
    23:31:53  bluetoothd[16647]: Not enough free handles to register service
    23:31:53  bluetoothd[16647]: Error adding Link Loss service
    23:31:53  bluetoothd[16647]: Not enough free handles to register service
    23:31:53  bluetoothd[16647]: Not enough free handles to register service
    23:31:53  bluetoothd[16647]: Not enough free handles to register service
    23:31:53  bluetoothd[16647]: Current Time Service could not be registered
    23:31:53  bluetoothd[16647]: gatt-time-server: Input/output error (5)
    23:31:53  bluetoothd[16647]: Not enough free handles to register service
    23:31:53  bluetoothd[16647]: Not enough free handles to register service
    23:31:53  bluetoothd[16647]: Sap driver initialization failed.
    23:31:53  bluetoothd[16647]: sap-server: Operation not permitted (1)
    23:31:53  bluetoothd[16647]: Endpoint registered: sender=:1.440 path=/MediaEndpoint/A2DPSource
    23:31:53  bluetoothd[16647]: Endpoint registered: sender=:1.440 path=/MediaEndpoint/A2DPSink

  And

  $ bluetoothctl
  [NEW] Controller 00:1F:3A:E0:0A:AF hephaestion.lan.iam.tj [default]
  [NEW] Device 00:0A:95:4B:BD:C2 Apple Wireless Keyboard
  [NEW] Device 00:07:61:3B:86:98 Bluetooth Travel Mouse
  [bluetooth]# scan on
  Failed to start discovery: org.bluez.Error.NotReady

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1490349/+subscriptions


References