core: Soon after 2022.9 UI wont load and logs show bluetooth errors

The problem

UI doesn’t load. Log shows this error

What version of Home Assistant Core has the issue?

2022.9.0

What was the last working version of Home Assistant Core?

2022.7.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Bluetooth

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bluetooth/

Diagnostics information

HAS OS 8 on raspberry pi 3B+ I have ssh access

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-09-10
09:00:54
homeassistant.components.bluetooth.scanner.ScannerStartError: hci0 (B8:27:EB:C9:D6:6E): Failed to start Bluetooth: [org.bluez.Error.NotReady] Resource Not Ready
2022-09-10
09:00:54
raise ScannerStartError(
2022-09-10
09:00:54
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 313, in _async_start
2022-09-10
09:00:54
await self._async_start()
2022-09-10
09:00:54
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 362, in _async_scanner_watchdog
2022-09-10
09:00:54
Traceback (most recent call last):
2022-09-10
09:00:54
The above exception was the direct cause of the following exception:
2022-09-10
09:00:54
bleak.exc.BleakDBusError: [org.bluez.Error.NotReady] Resource Not Ready
2022-09-10
09:00:54
raise BleakDBusError(reply.error_name, reply.body)
2022-09-10
09:00:54
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
2022-09-10
09:00:54
assert_reply(reply)
2022-09-10
09:00:54
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/manager.py", line 324, in active_scan
2022-09-10
09:00:54
self._stop = await manager.active_scan(
2022-09-10
09:00:54
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/scanner.py", line 141, in start
2022-09-10
09:00:54
await self.scanner.start() # type: ignore[no-untyped-call]
2022-09-10
09:00:54
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 232, in _async_start
2022-09-10
09:00:54
Traceback (most recent call last):
2022-09-10
09:00:54
2022-09-10 10:00:54.468 ERROR (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (B8:27:EB:C9:D6:6E): Failed to restart Bluetooth scanner: hci0 (B8:27:EB:C9:D6:6E): Failed to start Bluetooth: [org.bluez.Error.NotReady] Resource Not Ready
2022-09-10
09:00:54
2022-09-10 10:00:54.452 WARNING (MainThread) [bluetooth_auto_recovery.recover] Reset of hci0 timed out after 10!
2022-09-10
09:00:45
2022-09-10 10:00:45.102 WARNING (MainThread) [homeassistant.components.binary_sensor] Updating rpi_power binary_sensor took longer than the scheduled update interval 0:00:30
2022-09-10
09:00:44
2022-09-10 10:00:44.436 WARNING (MainThread) [bluetooth_auto_recovery.recover] Reset of hci0 timed out after 10!



### Additional information

N.B some of these errors look like a device not ready yet error. However this was *NOT* after a recent reboot. Uptime would have been > 12 hours at this point.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (13 by maintainers)

Commits related to this issue

Most upvoted comments

I finally managed to get this to happen by dumb luck

https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/pull/12