Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566004 - net-wireless/bluez-5.37 - Not enough free handles to register service
Summary: net-wireless/bluez-5.37 - Not enough free handles to register service
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-17 03:53 UTC by Lagu
Modified: 2016-04-03 12:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge,22.13 KB, text/plain)
2015-11-17 03:54 UTC, Lagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2015-11-17 03:53:43 UTC
Hi, here a problem with bluez, i don't have idea why this happend, i try search but i can't get a solution, log:

Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Failed to obtain handles for "Service Changed" characteristic
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Not enough free handles to register service
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Error adding Link Loss service
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Not enough free handles to register service
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Not enough free handles to register service
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Not enough free handles to register service
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Current Time Service could not be registered
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: gatt-time-server: Input/output error (5)
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Not enough free handles to register service
Nov 16 14:10:23 PaiQb0cwsS bluetoothd[1888]: Not enough free handles to register service
Comment 1 Lagu 2015-11-17 03:54:08 UTC
Created attachment 417172 [details]
emerge --info
Comment 2 Lukas Turek 2015-11-23 14:34:23 UTC
I had the same problem, downgrade to 5.33 didn't help, but 5.25 seems OK.

Nov 22 16:45:49 cylon bluetoothd[18424]: Bluetooth daemon 5.33
Nov 22 16:45:49 cylon bluetoothd[18424]: Starting SDP server
Nov 22 16:45:49 cylon bluetoothd[18424]: kernel lacks bnep-protocol support
Nov 22 16:45:49 cylon bluetoothd[18424]: System does not support network plugin
Nov 22 16:45:49 cylon bluetoothd[18424]: Bluetooth management interface 1.8 initialized
Nov 22 16:46:03 cylon bluetoothd[18424]: Failed to obtain handles for "Service Changed" characteristic
Nov 22 16:46:03 cylon bluetoothd[18424]: Not enough free handles to register service
Nov 22 16:46:03 cylon bluetoothd[18424]: Error adding Link Loss service
Nov 22 16:46:03 cylon bluetoothd[18424]: Not enough free handles to register service
Nov 22 16:46:03 cylon bluetoothd[18424]: Not enough free handles to register service
Nov 22 16:46:03 cylon bluetoothd[18424]: Not enough free handles to register service
Nov 22 16:46:03 cylon bluetoothd[18424]: Current Time Service could not be registered
Nov 22 16:46:03 cylon bluetoothd[18424]: gatt-time-server: Input/output error (5)
Nov 22 16:46:03 cylon bluetoothd[18424]: Not enough free handles to register service
Nov 22 16:46:03 cylon bluetoothd[18424]: Not enough free handles to register service
Nov 22 16:46:03 cylon bluetoothd[18424]: Sap driver initialization failed.
Nov 22 16:46:03 cylon bluetoothd[18424]: sap-server: Operation not permitted (1)

Nov 23 15:24:59 cylon bluetoothd[9005]: Bluetooth daemon 5.25
Nov 23 15:24:59 cylon bluetoothd[9005]: Starting SDP server
Nov 23 15:24:59 cylon bluetoothd[9005]: kernel lacks bnep-protocol support
Nov 23 15:24:59 cylon bluetoothd[9005]: System does not support network plugin
Nov 23 15:24:59 cylon bluetoothd[9005]: Bluetooth management interface 1.8 initialized
Nov 23 15:24:59 cylon bluetoothd[9005]: Sap driver initialization failed.
Nov 23 15:24:59 cylon bluetoothd[9005]: sap-server: Operation not permitted (1)
Comment 4 Lagu 2015-12-01 21:33:25 UTC
Hi, thx for the links, sadly in my case both modules are loaded.
Comment 5 Pacho Ramos gentoo-dev 2015-12-01 21:40:48 UTC
Maybe upstream will be able to help you more, either via their mailing list or via IRC :|
http://www.bluez.org/contact/
Comment 6 Lukas Turek 2015-12-01 22:50:18 UTC
I got the same error even though I don't use Pulseaudio (I use Bluetooth for cellphone connection sharing only), so I guess the cause of the bug is somewhere else...
Comment 7 Andrey Aleksandrovich 2016-01-17 09:10:37 UTC
Same here.

# dmesg | grep 4-1.5 
[  475.204004] usb 4-1.5: New USB device found, idVendor=8086, idProduct=0189 
[  475.204014] usb 4-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0 

# lsusb | grep 009 
Bus 004 Device 009: ID 8086:0189 Intel Corp.

# cat /var/log/everything/current | grep bluetoothd 
Jan 16 18:52:51 [bluetoothd] Bluetooth daemon 5.37 
Jan 16 18:52:51 [bluetoothd] Starting SDP server 
Jan 16 18:52:51 [bluetoothd] Bluetooth management interface 1.9 initialized 
Jan 16 18:52:51 [bluetoothd] Failed to obtain handles for "Service Changed" characteristic 
Jan 16 18:52:51 [bluetoothd] Not enough free handles to register service 
Jan 16 18:52:51 [bluetoothd] Error adding Link Loss service 
Jan 16 18:52:51 [bluetoothd] Not enough free handles to register service 
Jan 16 18:52:51 [bluetoothd] Current Time Service could not be registered 
Jan 16 18:52:51 [bluetoothd] gatt-time-server: Input/output error (5) 
Jan 16 18:52:51 [bluetoothd] Not enough free handles to register service 
Jan 16 18:52:51 [bluetoothd] Sap driver initialization failed. 
Jan 16 18:52:51 [bluetoothd] sap-server: Operation not permitted (1)
Comment 8 Andrey Aleksandrovich 2016-01-18 15:44:05 UTC
From upstream mailing list:

> These are deprecated plugins, we will probably be reworking/removing
 them shortly.

> At least sap-server plugin shouldn't be enabled at all (unless you run it on
 supported platform ie STE u8500, which you most likely don't). So this is a
 (quite common it seems) packaging bug.

> Ahh, it looks like this is enabled by common 'experimental flag.
Comment 9 Bodo Graumann 2016-03-03 18:57:07 UTC
Strangely nobody actually said what the problem was, but I guess you didn’t just find those log messages by accident and thought “what does this mean?”.

For me, bluetooth did not work anymore, i.e. bluedevil-monolithic could not enable it. I do not use it that often, but I assume it was broken after the update from bluez-5.25 to bluez-5.33 and then bluez-5.35.

Fortunately after updating to 5.37 everything works fine again, even though I still get the same messages:
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Bluetooth daemon 5.37
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Starting SDP server
Mar  3 19:39:24 nowhereland bluetoothd[5739]: kernel lacks bnep-protocol support
Mar  3 19:39:24 nowhereland bluetoothd[5739]: System does not support network plugin
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Failed to open RFKILL control device
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Bluetooth management interface 1.9 initialized
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Failed to obtain handles for "Service Changed" characteristic
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Not enough free handles to register service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Error adding Link Loss service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Not enough free handles to register service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Not enough free handles to register service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Not enough free handles to register service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Current Time Service could not be registered
Mar  3 19:39:24 nowhereland bluetoothd[5739]: gatt-time-server: Input/output error (5)
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Not enough free handles to register service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Not enough free handles to register service
Mar  3 19:39:24 nowhereland bluetoothd[5739]: Sap driver initialization failed.
Mar  3 19:39:24 nowhereland bluetoothd[5739]: sap-server: Operation not permitted (1)


So maybe this would work for you too. In that case I think 5.35 should be removed.

Also why does the bug mention bluez-5.35-r1? I do not see that version in the tree.
Comment 10 Lagu 2016-03-03 19:21:06 UTC
updating things and more things...

mar 03 14:25:45 1xb bluetoothd[2110]: Failed to obtain handles for "Service Changed" characteristic
mar 03 14:25:45 1xb bluetoothd[2110]: Not enough free handles to register service
mar 03 14:25:45 1xb bluetoothd[2110]: Error adding Link Loss service
mar 03 14:25:45 1xb bluetoothd[2110]: Not enough free handles to register service
mar 03 14:25:45 1xb bluetoothd[2110]: Not enough free handles to register service
mar 03 14:25:45 1xb bluetoothd[2110]: Not enough free handles to register service
mar 03 14:25:45 1xb bluetoothd[2110]: Current Time Service could not be registered
mar 03 14:25:45 1xb bluetoothd[2110]: gatt-time-server: Input/output error (5)
mar 03 14:25:45 1xb bluetoothd[2110]: Not enough free handles to register service
mar 03 14:25:45 1xb bluetoothd[2110]: Not enough free handles to register service
mar 03 14:25:45 1xb bluetoothd[2110]: Sap driver initialization failed.
mar 03 14:25:45 1xb bluetoothd[2110]: sap-server: Operation not permitted (1)
Comment 11 Andrey Aleksandrovich 2016-03-04 08:16:38 UTC
BTW, https://wiki.gentoo.org/wiki/Bluetooth#Permissions
I have done alternative (adding a user to the plugdev group). The error (Not enough free handles to register service) not disappeared. But all I need (exchange files between laptop and mobile phone) is working now.
Comment 12 Pacho Ramos gentoo-dev 2016-04-03 12:26:53 UTC
[master dc22fe2] net-wireless/bluez: Version bump, make experimental plugins optional and disabled by default as wanted by upstream (#566004)
 3 files changed, 233 insertions(+)
 create mode 100644 net-wireless/bluez/bluez-5.38.ebuild