{"action":"created","issue":{"url":"https://api.github.com/repos/zerotier/ZeroTierOne/issues/714","repository_url":"https://api.github.com/repos/zerotier/ZeroTierOne","labels_url":"https://api.github.com/repos/zerotier/ZeroTierOne/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/zerotier/ZeroTierOne/issues/714/comments","events_url":"https://api.github.com/repos/zerotier/ZeroTierOne/issues/714/events","html_url":"https://github.com/zerotier/ZeroTierOne/issues/714","id":314558332,"number":714,"title":"\"unable to add ip address\" with unprivileged user on Manjaro","user":{"login":"jonathonf","id":559369,"avatar_url":"https://avatars2.githubusercontent.com/u/559369?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathonf","html_url":"https://github.com/jonathonf","followers_url":"https://api.github.com/users/jonathonf/followers","following_url":"https://api.github.com/users/jonathonf/following{/other_user}","gists_url":"https://api.github.com/users/jonathonf/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathonf/subscriptions","organizations_url":"https://api.github.com/users/jonathonf/orgs","repos_url":"https://api.github.com/users/jonathonf/repos","events_url":"https://api.github.com/users/jonathonf/events{/privacy}","received_events_url":"https://api.github.com/users/jonathonf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-16T08:59:31Z","updated_at":"2018-04-19T22:16:20Z","closed_at":null,"author_association":"NONE","body":"_(Additions to the original are in italics)_\r\n\r\n## Summary\r\n\r\n_When there is an unprivileged user \"zerotier-one\" present on a Manjaro system,_ ZeroTier fails to add an IP address to a zt0 device with the message \"ERROR: unable to add ip address 10.0.0.1/24\" (where 10.0.0.1 is the IPv4 address assigned via the web dashboard). It is repeated for the assigned IPv6 address.\r\n\r\nManually adding the ZT IP and route via `ip` succeeds.\r\n\r\n## Details\r\n\r\n~~I run ZT on a variety of devices (Linux, Windows, Mac, Android) and this issue occurs on only one of my Linux machines. Configuration is pretty much identical to another machine which works perfectly. I can't see any reason for it, and I can't seem to find or generate any more logging output.~~\r\n\r\nManually running\r\n\r\n```\r\nsudo ip addr add 10.0.0.1/24 dev zt0\r\nsudo ip route add 0.0.0.0/1 via 10.0.0.254 dev zt0\r\n```\r\nsucceeds; the ZT network becomes accessible and traffic is routed over the global/managed route. Restarting the ZT service after this \"loses\" the IP and route.\r\n\r\n## Log output\r\n\r\nThe output from `journalctl -u zerotier-one` shows:\r\n\r\n```\r\nApr 16 09:33:28 box systemd[1] Started ZeroTier One.\r\nApr 16 09:33:28 box zerotier-one[5691]: ERROR: unable to add ip address 10.0.0.1/24\r\nApr 16 09:33:28 box zerotier-one[5691]: ERROR: unable to add ip address fde5:::1/88\r\n```\r\n\r\nOutput from `zerotier-one` directly is:\r\n\r\n```\r\n$ sudo zerotier-one\r\nERROR: unable to add ip address 10.0.0.1/24\r\nERROR: unable to add ip address fde5:::1/88\r\n```\r\n\r\n_This also occurs when specifying not to drop privileges:_\r\n```\r\n$ sudo zerotier-one -U\r\nERROR: unable to add ip address 10.0.0.1/24\r\nERROR: unable to add ip address fde5:::1/88\r\n```\r\n\r\n## System details\r\n\r\nOS: Manjaro Linux 64-bit\r\nTested kernels: 4.14.34, 4.15.17, 4.16.2\r\nZeroTier version: 1.24 (from https://www.archlinux.org/packages/community/x86_64/zerotier-one/)\r\nsystemd version: 238.76\r\n\r\n~~(The same setup works perfectly on another machine)~~"},"comment":{"url":"https://api.github.com/repos/zerotier/ZeroTierOne/issues/comments/382897592","html_url":"https://github.com/zerotier/ZeroTierOne/issues/714#issuecomment-382897592","issue_url":"https://api.github.com/repos/zerotier/ZeroTierOne/issues/714","id":382897592,"user":{"login":"adamierymenko","id":591635,"avatar_url":"https://avatars2.githubusercontent.com/u/591635?v=4","gravatar_id":"","url":"https://api.github.com/users/adamierymenko","html_url":"https://github.com/adamierymenko","followers_url":"https://api.github.com/users/adamierymenko/followers","following_url":"https://api.github.com/users/adamierymenko/following{/other_user}","gists_url":"https://api.github.com/users/adamierymenko/gists{/gist_id}","starred_url":"https://api.github.com/users/adamierymenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamierymenko/subscriptions","organizations_url":"https://api.github.com/users/adamierymenko/orgs","repos_url":"https://api.github.com/users/adamierymenko/repos","events_url":"https://api.github.com/users/adamierymenko/events{/privacy}","received_events_url":"https://api.github.com/users/adamierymenko/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T22:16:20Z","updated_at":"2018-04-19T22:16:20Z","author_association":"CONTRIBUTOR","body":"We did not change that code at all, so I'm curious to hear what you discover."}}
{"actor":{"display_login":"adamierymenko"}}