-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receive "noble warning: adapter state unauthorized" when Homebridge runs in Docker container #48
Comments
How are you running the container? Docker can't access bluetooth on the host by default. I think you might need to pass |
I run it like this:
Adding --privileged, makes no difference: "noble warning: adapter state unauthorized, please run as root or with sudo" |
You might need to add some capabilities to the container. I use You can probably find a lot more information by googling for "docker bluetooth" or something like that. Good luck! |
I've tried to turn off BT on host (systemctl stop bluetooth) - it helped a little bit - now I see this in logs:
|
Can you try running Some discussion regarding bluetooth in docker can be found here moby/moby#16208 |
@hannseman
When I disable bluetooth on host (systemctl stop bluetooth) I receive this:
In case I'll run
With external bluetooth dongle I receive the same error:
Unfortunately :( I've tried everything: like |
@mrdc Did you install the noble dependencies via |
Yes, I've fixed it with
|
I have to run "sudo setcap cap_net_raw+eip $(eval readlink -f |
@plantoschka have you found a way to automate it? To run it after restart? |
Unfortunately not. |
Expected Behavior
homebridge-mi-hygrothermograph works fine in Homebridge@Docker container.
Current Behavior
homebridge-mi-hygrothermograph is not working when used inside of Docker container.
Steps to Reproduce (for bugs)
Versions
Homebridge Log / Command Output
The text was updated successfully, but these errors were encountered: