I am trying to install HA on my Redmi Note 4 (PostmarketOs) using Docker.
But the docker is getting an error related to bluetooth and can not access the webUI.
Device Details
OS: postmarketOS edge aarch64
Host: Xiaomi Redmi Note 4X
Kernel: 6.12.0-postmarketos-qcom-msm8953
homeassistant | Linuxserver.io version: 2024.11.3-ls49
homeassistant | Build-date: 2024-11-27T02:08:27+00:00
homeassistant | ───────────────────────────────────────
homeassistant |
homeassistant | **** New container detected, fixing python package permissions. This may take a while. ****
homeassistant | Setting permissions
homeassistant | [custom-init] No custom files found, skipping...
homeassistant | 2024-11-30 10:15:07.853 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
homeassistant | Connection to localhost (::1) 8123 port [tcp/*] succeeded!
homeassistant | [ls.io-init] done.
homeassistant | 2024-11-30 10:15:15.426 ERROR (SyncWorker_6) [bluetooth_adapters.systems.linux] Unexpected error setting up device hci<usb_devices.BluetoothDevice object at 0xffff774a40c0>
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_adapters/systems/linux.py", line 55, in _refresh_devices
homeassistant | dev.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:15:15.608 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:15:20.610 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:15:20.613 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:15:20.618 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:15:23.463 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:15:28.476 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:15:28.497 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:15:28.508 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:15:28.661 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:15:33.679 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:15:33.682 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:15:33.687 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:15:33.827 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:15:38.829 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:15:38.833 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:15:38.838 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:15:44.107 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:15:49.110 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:15:49.113 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:15:49.117 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:15:59.293 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:16:04.295 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:16:04.298 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:16:04.302 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:16:29.432 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:16:34.435 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:16:34.438 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:16:34.443 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:17:24.794 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:17:29.797 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:17:29.800 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:17:29.805 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:17:54.822 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:17:59.826 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:17:59.834 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:17:59.838 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:18:50.040 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:18:55.041 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:18:55.044 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:18:55.048 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:19:20.162 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:19:25.164 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:19:25.167 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:19:25.172 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant | 2024-11-30 10:20:15.258 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant | 2024-11-30 10:20:20.262 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant | 2024-11-30 10:20:20.265 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant | return await dev.async_reset()
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant | return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant | self.setup()
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant | self.usb_device = USBDevice(path.parts[-1])
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant | bus_port_id, interface_id = id_str.split(":")
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | ValueError: too many values to unpack (expected 2)
homeassistant | 2024-11-30 10:20:20.269 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
I tried both official and linuxserver’s HA images. Both getting same error
Here is my docker compose
version: "3.3"
services:
homeassistant:
container_name: homeassistant
# image: ghcr.io/home-assistant/home-assistant:stable
image: lscr.io/linuxserver/homeassistant:latest
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
# privileged: true
network_mode: host
ports:
- 8123:8123
environment:
# DISABLE_JEMALLOC: true
- PUID=10000
- PGID=10000
- TZ=Etc/UTC
networks: {}
More details : https://discourse.linuxserver.io/t/home-assistant-bluetooth-issue/10095/2