Sap driver initialization failed, sap-server: Operation not permitted

Bug #1629632 reported by Laurent Bonnaud
46
This bug affects 11 people
Affects Status Importance Assigned to Milestone
bluez (Debian)
New
Unknown
bluez (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

here are are messages from the bluetooth daemon:

$ journalctl -b | grep bluetoothd
Oct 01 17:24:35 xeelee bluetoothd[1104]: Bluetooth daemon 5.41
Oct 01 17:24:35 xeelee bluetoothd[1104]: Starting SDP server
Oct 01 17:24:36 xeelee bluetoothd[1104]: Bluetooth management interface 1.13 initialized
Oct 01 17:24:36 xeelee bluetoothd[1104]: Failed to obtain handles for "Service Changed" characteristic
Oct 01 17:24:36 xeelee bluetoothd[1104]: Sap driver initialization failed.
Oct 01 17:24:36 xeelee bluetoothd[1104]: sap-server: Operation not permitted (1)

There are at least 2 errors concerning:
 - handles
 - Sap driver/server

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: bluez 5.41-0ubuntu3
ProcVersionSignature: Ubuntu 4.8.0-19.21-lowlatency 4.8.0-rc8
Uname: Linux 4.8.0-19-lowlatency x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Oct 2 09:59:43 2016
InterestingModules: rfcomm bnep btusb bluetooth
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-19-lowlatency root=UUID=347d095b-3b19-412b-841e-acfd162e2c53 ro quiet splash nomdmonddf nomdmonisw vt.handoff=7
SourcePackage: bluez
UpgradeStatus: Upgraded to yakkety on 2016-03-31 (184 days ago)
dmi.bios.date: 03/25/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.50
dmi.board.name: HM77-HT
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.50:bd03/25/2013:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnHM77-HT:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.
hciconfig:
 hci0: Type: Primary Bus: USB
  BD Address: DC:85:DE:57:27:6F ACL MTU: 1022:8 SCO MTU: 183:5
  UP RUNNING PSCAN ISCAN
  RX bytes:1974 acl:0 sco:0 events:132 errors:0
  TX bytes:6033 acl:0 sco:0 commands:132 errors:0

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bluez (Ubuntu):
status: New → Confirmed
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

According to this:

  https://raspberrypi.stackexchange.com/questions/40839/sap-error-on-bluetooth-service-status

the error messages about SAP can be avoided by starting bluetoothd with the "--noplugin=sap" option.

Since SAP is probably of little use in Ubuntu and since it does not work anyway, how about disabling it by default?

Changed in bluez (Debian):
status: Unknown → New
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug still exists in zesty:

# journalctl -b | grep bluetoothd
Mar 20 11:29:29 xeelee bluetoothd[1113]: Bluetooth daemon 5.43
Mar 20 11:29:29 xeelee bluetoothd[1113]: Starting SDP server
Mar 20 11:29:29 xeelee bluetoothd[1113]: Bluetooth management interface 1.14 initialized
Mar 20 11:29:29 xeelee bluetoothd[1113]: Failed to obtain handles for "Service Changed" characteristic
Mar 20 11:29:29 xeelee bluetoothd[1113]: Sap driver initialization failed.
Mar 20 11:29:29 xeelee bluetoothd[1113]: sap-server: Operation not permitted (1)
[...]

tags: added: zesty
Revision history for this message
groby (groby) wrote :

Same on my UbuntuStudio 17.04

# journalctl -b | grep bluetoothd
[...]
Jun 09 13:55:39 Lenovo-G500 bluetoothd[873]: Failed to obtain handles for "Service Changed" characteristic
Jun 09 13:55:39 Lenovo-G500 bluetoothd[873]: Sap driver initialization failed.
Jun 09 13:55:39 Lenovo-G500 bluetoothd[873]: sap-server: Operation not permitted (1)
[...]

Revision history for this message
groby (groby) wrote :

... and on my Lubuntu 17.04

# journalctl -b | grep bluetoothd
[...]
Jun 09 20:31:34 acer bluetoothd[1986]: Failed to obtain handles for "Service Changed" characteristic
Jun 09 20:31:34 acer bluetoothd[1986]: Sap driver initialization failed.
Jun 09 20:31:34 acer bluetoothd[1986]: sap-server: Operation not permitted (1)
[...]

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.04 (zesty) reached end-of-life on January 13, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in bluez (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

The error messages about the sap-server are not there any longer in Ubuntu 17.10.
Thanks for the fix!

Changed in bluez (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
nda888 (nda888) wrote :

The issue still exits on Debian 9

Please help, thanks so much

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.