{"action":"created","issue":{"url":"https://api.github.com/repos/noble/noble/issues/682","repository_url":"https://api.github.com/repos/noble/noble","labels_url":"https://api.github.com/repos/noble/noble/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/noble/noble/issues/682/comments","events_url":"https://api.github.com/repos/noble/noble/issues/682/events","html_url":"https://github.com/noble/noble/issues/682","id":259464763,"node_id":"MDU6SXNzdWUyNTk0NjQ3NjM=","number":682,"title":"Adapter state still unauthorized even after running setcap cap_net_raw+eip","user":{"login":"scottsweb","id":411945,"node_id":"MDQ6VXNlcjQxMTk0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/411945?v=4","gravatar_id":"","url":"https://api.github.com/users/scottsweb","html_url":"https://github.com/scottsweb","followers_url":"https://api.github.com/users/scottsweb/followers","following_url":"https://api.github.com/users/scottsweb/following{/other_user}","gists_url":"https://api.github.com/users/scottsweb/gists{/gist_id}","starred_url":"https://api.github.com/users/scottsweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottsweb/subscriptions","organizations_url":"https://api.github.com/users/scottsweb/orgs","repos_url":"https://api.github.com/users/scottsweb/repos","events_url":"https://api.github.com/users/scottsweb/events{/privacy}","received_events_url":"https://api.github.com/users/scottsweb/received_events","type":"User","site_admin":false},"labels":[{"id":822787044,"node_id":"MDU6TGFiZWw4MjI3ODcwNDQ=","url":"https://api.github.com/repos/noble/noble/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2017-09-21T11:31:24Z","updated_at":"2018-12-24T17:01:12Z","closed_at":null,"author_association":"NONE","body":"I am running a couple of node tools that use noble. Both are requiring me to run as root despite running: \r\n\r\n`sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)`\r\n\r\nError is:\r\n\r\n```\r\nnoble warning: adapter state unauthorized, please run as root or with sudo\r\n               or see README for information on running without root/sudo:\r\n               https://github.com/sandeepmistry/noble#running-on-linux\r\n```\r\n\r\nThe output of `which node` is `/home/scott/.nvm/versions/node/v6.10.2/bin/node`.\r\nThe output of `sudo getcap $(eval readlink -f `which node`)` is `/home/scott/.nvm/versions/node/v6.10.2/bin/node = cap_net_raw+eip`\r\n\r\nI have also created a symlink for root so the latest version of node is also available at `/usr/local/bin/node`.\r\n\r\nI believe my issue may be caused by using [NVM](https://github.com/creationix/nvm) to manage node but cannot be 100% certain. \r\n\r\nAny tips of what I might be able to do to debug this some more?"},"comment":{"url":"https://api.github.com/repos/noble/noble/issues/comments/449755143","html_url":"https://github.com/noble/noble/issues/682#issuecomment-449755143","issue_url":"https://api.github.com/repos/noble/noble/issues/682","id":449755143,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTc1NTE0Mw==","user":{"login":"cropab","id":45964602,"node_id":"MDQ6VXNlcjQ1OTY0NjAy","avatar_url":"https://avatars1.githubusercontent.com/u/45964602?v=4","gravatar_id":"","url":"https://api.github.com/users/cropab","html_url":"https://github.com/cropab","followers_url":"https://api.github.com/users/cropab/followers","following_url":"https://api.github.com/users/cropab/following{/other_user}","gists_url":"https://api.github.com/users/cropab/gists{/gist_id}","starred_url":"https://api.github.com/users/cropab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cropab/subscriptions","organizations_url":"https://api.github.com/users/cropab/orgs","repos_url":"https://api.github.com/users/cropab/repos","events_url":"https://api.github.com/users/cropab/events{/privacy}","received_events_url":"https://api.github.com/users/cropab/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T17:01:12Z","updated_at":"2018-12-24T17:01:12Z","author_association":"NONE","body":"first i tried `sudo setcap cap_net_raw+eip /usr/lib/node_modules/node-red-contrib-xiaomi-ble` didnt work, same error messages. \r\n\r\nafter that i issued `sudo setcap cap_net_raw,cap_net_admin+eip $(eval readlink -f which node)` , just like it is, and there was no console output to a path or anything. ran the command, restarted node red and the mijia was sending data the first time.\r\n\r\nOS: 2018-11-13-raspbian-stretch-full.img with preinstalled Node Red, Node 8."}}
{"actor":{"display_login":"cropab"}}