Open nullnullnul opened 5 years ago
Looks like a permission problem. You could try to launch the gateway container in privileged mode.
I restarted the container with --privileged but the same error messages are still being displayed.
I never tried to access bluetooth from within a container. Noble definitely has problems accessing the bluetooth controller. I'll try it with my pi at the weekend.
I have setup where Grafana is collecting information from Ruuvitags. On the same Raspberry I am running now Mozilla WebThings within a Docker. When running hcitool lescan, the device is visible and my Grafana setup gets the latest events accordingly.
However, when installing the addon on "vanilla" WebThings, the device is not found and authorization problem is raised.
2019-08-05 18:03:19.376 INFO : Opened a new things socket 2019-08-05 18:03:19.413 INFO : About to call startPairing on RuuviTagAdapter 2019-08-05 18:03:19.425 INFO : ruuvitag: Adapter: RuuviTagAdapter id RuuviTagAdapter pairing started 2019-08-05 18:03:39.913 INFO : ruuvitag: Noble adapter is poweredOn 2019-08-05 18:03:39.916 INFO : ruuvitag: Start scanning for devices 2019-08-05 18:03:39.918 INFO : ruuvitag: noble warning: adapter state unauthorized, please run as root or with sudo 2019-08-05 18:03:39.920 INFO : ruuvitag: or see README for information on running without root/sudo: 2019-08-05 18:03:39.922 INFO : ruuvitag: https://github.com/sandeepmistry/noble#running-on-linux 2019-08-05 18:03:39.924 INFO : ruuvitag: Noble adapter is unauthorized 2019-08-05 18:04:19.418 INFO : Pairing timeout 2019-08-05 18:04:19.426 ERROR : Thing was not added 2019-08-05 18:04:19.428 ERROR : addNewThing cancelled 2019-08-05 18:04:19.434 INFO : ruuvitag: Adapter: RuuviTagAdapter id RuuviTagAdapter pairing cancelled
I am running my tags with 2.4.2 Beta in RAWv2 mode. Are there some restrictions for this to work with WebThings?