Open amaisano opened 3 years ago
Probably you don't have required packages installed as root user, or pi user ( depending if you changed service file to run as user )
I have the same issue, also on a Pi Zero. I installed the required packages within the virtual environment following the instructions. I see that service.sh adds the venv to path so theoretically it should work but I suspect the problem lies here somewhere.
I had the same issue and at least for me, the solution in #194 solved it. Seems like there is a minor mistake in the readme file.
I haven't checked it extensively so far, but at least the service now starts.
similar problem on rpi0w but starting it within docker. up until now i was not able to get out any logs from the container as it keeps restarting.
I had issues getting the service.sh started as well. I had to do #194 by comment out lines 3-9. Before doing that, when executing ./gateway.sh, I ran into btle.py errors, which was fixed with setcap...probably not very secure.
sudo setcap 'cap_net_raw,cap_net_admin+eip' /usr/local/lib/python3.7/dist-packages/bluepy/bluepy-helper
I also had to modify the bt-mqtt-gateway.service to add ExecStartPre=/bin/sleep 30 because the service failed to start when system was reboot. Probably needs some python service started first.
[x] I've read the Troubleshooting Wiki, my problem is not described there and I am already using the specified minimum bluez version.
Describe the bug Manually running
sudo ./gateway.py -d
works fine and I can see correct output. This is when I try to start the service:A couple issues here. Looks like the logger cannot load the yaml module. It also says something about start request repeated too quickly.
To Reproduce Steps to reproduce the behavior:
Expected behavior Service to start and stay running
Config
Debug gateway logs
Server (please complete the following information):
Additional context PiZero W