You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a fresh installation of the 20221108-mark2_base.img image the Raspberry Pi will boot up but cannot start the DBus server. As a result the commands to control fan, LEDs and microphone won't work.
To Reproduce
Steps to reproduce the behavior:
Flash the image to a new SD card
Boot the system
See errors
Expected behavior
DBus server will start as intended.
Log files
systemctl status mark2-hal.service
● mark2-hal.service - DBus server for hardware access
Loaded: loaded (/etc/systemd/system/mark2-hal.service; enabled; vendor preset: enabled)
Active: activating (start) since Fri 2023-03-03 09:52:00 GMT; 46s ago
Main PID: 1004 (python3)
Tasks: 4 (limit: 1770)
CPU: 1.578s
CGroup: /system.slice/mark2-hal.service
└─1004 /usr/local/mycroft/mark-2/dbus-hal/.venv/bin/python3 -m dbus_hal --websocket
Mar 03 09:52:36 raspberrypi python3[1004]: self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
Mar 03 09:52:36 raspberrypi python3[1004]: File "/usr/local/mycroft/mark-2/dbus-hal/.venv/lib/python3.9/site-packages/websocket/_http.py", line 130, in connect
Mar 03 09:52:36 raspberrypi python3[1004]: sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
Mar 03 09:52:36 raspberrypi python3[1004]: File "/usr/local/mycroft/mark-2/dbus-hal/.venv/lib/python3.9/site-packages/websocket/_http.py", line 205, in _open_socket
Mar 03 09:52:36 raspberrypi python3[1004]: raise err
Mar 03 09:52:36 raspberrypi python3[1004]: File "/usr/local/mycroft/mark-2/dbus-hal/.venv/lib/python3.9/site-packages/websocket/_http.py", line 185, in _open_socket
Mar 03 09:52:36 raspberrypi python3[1004]: sock.connect(address)
Mar 03 09:52:36 raspberrypi python3[1004]: ConnectionRefusedError: [Errno 111] Connection refused
Mar 03 09:52:36 raspberrypi python3[1004]: ERROR:mycroft_bus_client.client.client:Exception closing websocket: ConnectionRefusedError(111, 'Connection refused')
Mar 03 09:52:36 raspberrypi python3[1004]: WARNING:mycroft_bus_client.client.client:Message Bus Client will reconnect in 40.0 seconds.
Environment (please complete the following information):
Device type: Mark-2 Dev Kit
OS: mark-ii-sandbox 2022-11-08
Mycroft-core version: -
Other versions: Linux raspberrypi 5.15.61-v8+
Additional context
I think the error is related to user permissions since:
The 'pi' user does not own its own home folder '/home/pi'
I can start the DBus server manually by doing sudo su then cd /usr/local/mycroft/mark-2/dbus-hal and python3 -m dbus_hal
The text was updated successfully, but these errors were encountered:
I was able to "fix" the DBus server by removing the --websocket flag from /etc/systemd/system/mark2-hal.service (and reinstalled dbus-hal as root via bash /usr/local/mycroft/mark-2/dbus-hal/install.sh just to make sure).
I'm not sure what the purpose is of the websocket connection as I can't find a server, but at least the tools mark2-fan, led ... work now.
[EDIT] I'm assuming the Websocket server is part of Dinkum's messagebus service but is not installed in the sandbox 🤔
pfefferle
added a commit
to pfefferle/mark-ii-sandbox
that referenced
this issue
Mar 26, 2024
Describe the bug
After a fresh installation of the
20221108-mark2_base.img
image the Raspberry Pi will boot up but cannot start the DBus server. As a result the commands to control fan, LEDs and microphone won't work.To Reproduce
Steps to reproduce the behavior:
Expected behavior
DBus server will start as intended.
Log files
Environment (please complete the following information):
Additional context
I think the error is related to user permissions since:
sudo su
thencd /usr/local/mycroft/mark-2/dbus-hal
andpython3 -m dbus_hal
The text was updated successfully, but these errors were encountered: