Hello, I have this running on a Pi trying to connect to a RAK4631 over BLE. When I run the container and check the logs, it states the following:
INFO: Started server process [53]
INFO: Waiting for application startup.
DEBUG:root:Threads starting
DEBUG:root:Threads running
DEBUG:root:BLE connecting to: RE:DA:CT:ED:DD:DD
DEBUG:root:No address provided - only discover method will work.
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 732, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.9/contextlib.py", line 181, in __aenter__
return await self.gen.__anext__()
File "/data/main.py", line 51, in lifespan
client = WrappedBLEInterface(ble_host)
File "/data/main.py", line 34, in __init__
BLEInterface.__init__(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/meshtastic/ble_interface.py", line 52, in __init__
self.client = self.connect(address)
File "/usr/local/lib/python3.9/site-packages/meshtastic/ble_interface.py", line 117, in connect
device = self.find_device(address)
File "/usr/local/lib/python3.9/site-packages/meshtastic/ble_interface.py", line 92, in find_device
meshtastic_devices = self.scan()
File "/usr/local/lib/python3.9/site-packages/meshtastic/ble_interface.py", line 83, in scan
(x[0], x[1]) for x in (client.discover(
File "/usr/local/lib/python3.9/site-packages/meshtastic/ble_interface.py", line 189, in discover
return self.async_await(BleakScanner.discover(**kwargs))
File "/usr/local/lib/python3.9/site-packages/meshtastic/ble_interface.py", line 220, in async_await
return self.async_run(coro).result(timeout)
File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/usr/local/lib/python3.9/site-packages/bleak/__init__.py", line 317, in discover
async with cls(**kwargs) as scanner:
File "/usr/local/lib/python3.9/site-packages/bleak/__init__.py", line 158, in __aenter__
await self._backend.start()
File "/usr/local/lib/python3.9/site-packages/bleak/backends/bluezdbus/scanner.py", line 168, in start
manager = await get_global_bluez_manager()
File "/usr/local/lib/python3.9/site-packages/bleak/backends/bluezdbus/manager.py", line 1046, in get_global_bluez_manager
await instance.async_init()
File "/usr/local/lib/python3.9/site-packages/bleak/backends/bluezdbus/manager.py", line 235, in async_init
bus = MessageBus(bus_type=BusType.SYSTEM, auth=get_dbus_authenticator())
File "/usr/local/lib/python3.9/site-packages/dbus_fast/aio/message_bus.py", line 199, in __init__
super().__init__(bus_address, bus_type, ProxyObject, negotiate_unix_fd)
File "/usr/local/lib/python3.9/site-packages/dbus_fast/message_bus.py", line 169, in __init__
self._setup_socket()
File "/usr/local/lib/python3.9/site-packages/dbus_fast/message_bus.py", line 726, in _setup_socket
raise err
File "/usr/local/lib/python3.9/site-packages/dbus_fast/message_bus.py", line 699, in _setup_socket
self._sock.connect(filename)
FileNotFoundError: [Errno 2] No such file or directory
Hello, I have this running on a Pi trying to connect to a RAK4631 over BLE. When I run the container and check the logs, it states the following: