Bluetooth DBus authentication error

Hello,

I’m trying to configure a Bluetooth USB adapter in a Home Assistant Docker container. I followed the official guide on the Home Assistant website and configured everything as instructed. Here’s the setup:

BlueZ Version: 5.64
Volume mounted in Portainer: /run/dbus:/run/dbus:ro
Container privileges: Running as privileged
DBus: Configured to use dbus-broker

However, the logs show the following error:

WARNING (MainThread) [bluetooth_adapters.dbus] DBus authentication error; make sure the DBus socket is available and the user has the correct permissions: authentication failed: REJECTED: ['EXTERNAL']
DEBUG (MainThread) [homeassistant.components.bluetooth] Rediscovered adapters: {'hci0': {'address': '04:7F:0E:1E:A1:62', 'sw_version': 'Unknown', 'hw_version': None, 'passive_scan': False, 'manufacturer': 'Barrot Technology Co.,LTD', 'product': None, 'vendor_id': None, 'product_id': None}}

On the host system (Ubuntu), Bluetooth is working fine. Additionally, when using the container’s console, Bluetooth scanning works without issues. This suggests that the container has no authentication-related problems, as it can successfully scan Bluetooth devices.