How to fix "bluetoothd[*]: src/main.c:main() Unable to get on D-Bus"?

Asked by Andrei Dyomin

Hi,

I am not able to connect Bluetooth headset today for some reason. I recently upgraded from 20.10 to 21.04 and using the same headset over Bluetooth was fine-ish, until today. Several reboots did not help.

GUI connection fails silently; bluetoothctl `connect [MAC address]` gives:
> Attempting to connect to [MAC address]
> Failed to connect: org.bluez.Error.Failed

$ sudo cat /var/log/syslog | grep -i bluetooth

May 21 12:45:21 DLW bluetoothd[6366]: Bluetooth daemon 5.56
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “AlwaysPairable” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “JustWorksRepairing” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “TemporaryTimeout” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() ControllerMode=dual
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have group “GATT”
May 21 12:45:21 DLW bluetoothd[6366]: message repeated 3 times: [ src/main.c:parse_config() Key file does not have group “GATT”]
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have group “AVDTP”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_config() Key file does not have group “AVDTP”
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_mode_config() Key file does not have group “BR”
May 21 12:45:21 DLW bluetoothd[6366]: message repeated 9 times: [ src/main.c:parse_mode_config() Key file does not have group “BR”]
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:parse_mode_config() Key file does not have group “LE”
May 21 12:45:21 DLW bluetoothd[6366]: message repeated 20 times: [ src/main.c:parse_mode_config() Key file does not have group “LE”]
May 21 12:45:21 DLW bluetoothd[6366]: src/main.c:main() Unable to get on D-Bus

$ /usr/lib/bluetooth/bluetoothd -n -d
...
D-Bus setup failed: Connection ":1.121" is not allowed to own the service "org.bluez" due to security policies in the configuration file
bluetoothd[6366]: src/main.c:main() Unable to get on D-Bus

"bluetoothd[6366]: src/main.c:main() Unable to get on D-Bus" could this be the reason and how can I fix it? Or should I run more diagnostics?

Would appreciate any help with the matter!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bluez Edit question
Assignee:
No assignee Edit question
Solved by:
Andrei Dyomin
Solved:
Last query:
Last reply:
Revision history for this message
Andrei Dyomin (adyomin-deactivatedaccount) said :
#1

For some reason my question duplicated. I am closing an extra copy.