Closed gingerlime closed 3 years ago
Looks like mqtt server doesn't authorize connection ? Maybe check mqtt server logs ?
Thanks @zewelor
Ah, so the mqtt server runs outside / independently of the docker image?
I didn’t realise I might have one running on the pi and assumed it’s bundled and running inside the docker image...
shouldn’t the debug logs show that the gateway cannot publish to the mqtt server in this case?
Add info in README, about mqtt server requirement, I hope it will be clear now. Mqtt connection should exit after some time, when it cannot connect. I've tested with wrong mqtt server ip, and it exit after few seconds. Other error you wrote also should be fixed.
That's great. Thanks for your help @zewelor!
I now have a different problem/question but I'll ask separately... :)
[] 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 having problems running with docker on rpi 3
There were a few initial issues I managed to overcome
Can't down device hci0: Operation not permitted (1)
errors. setcap seems to fix this.To Reproduce Steps to reproduce the behavior:
mosquitto_sub -h localhost -p 1883 -d -t "#" -u user -P password
I tried removing the username/password from my config.yaml, but it still fails. Based on the output, it connects (there's a CONNACK), but it's not authorized
Expected behavior It should connect ?
Config
Debug gateway logs
Server (please complete the following information):