zero-ui
zero-ui copied to clipboard
bug: zerotier 1.12.0 compatibility
Bug Report
ZeroUI version:
zero-ui:1.5.1
Current behavior:
with the new version of zerotier 1.12.0 I'm unable to:
- see the member of any networks
- rename a new network (or make any other modification)
Steps to reproduce:
install the new version of zerotier, login in zeroUI and look at the list of memebers of any network it will display something like:
No devices have joined this network. Use the app on your devices to join aaaaabbbbbcccccddddd1111.
I have the same problem. Yesterday my zerotier server received the update, we migrated from ZT 1.10.6 to 1.12.0 and now I'm unable to see the clients on the web interface.
Thanks for reporting the problem. Seems to be ZeroTier Team made some breaking changes to the controller behavior. You should stay on the latest supported ZeroTier version for the controller - 1.10
The issue on ZeroTierOne repo to track the problem: https://github.com/zerotier/ZeroTierOne/issues/2108
Fixed in 1.12.1
Originally posted by @glimberg in https://github.com/zerotier/ZeroTierOne/issues/2108#issuecomment-1694020567
Everything I have has been upgraded to 1.12.1, systems rebooted, and I'm still not seeing them in ZeroUI.
Looks like others are still having the same issue, from the main ZeroTierOne Github issues list:
https://github.com/zerotier/ZeroTierOne/issues/2114
Already fixed via my commit https://github.com/dec0dOS/zero-ui/commit/856682bad1ccd46970681e45bea8a992043c38f4
https://github.com/zerotier/ZeroTierOne/issues/2114
It was fixed in https://github.com/zerotier/ZeroTierOne/pull/2115, waiting for 1.12.2 release
It was fixed in zerotier/ZeroTierOne#2115, waiting for 1.12.2 release
Perfect! Do you know the time when 1.12.2 will be released?
Everything I have has been upgraded to 1.12.1, systems rebooted, and I'm still not seeing them in ZeroUI.
Looks like others are still having the same issue, from the main ZeroTierOne Github issues list:
@iball Have you found a fix for it?
@KevinRoebert you should wait for 1.12.2 release or downgrade ZeroTier on the controller to supported version.
1.12.2 is now released
Upgraded all my clients to 1.12.2 to include the server running ZeroUI and it's still not showing any clients/peers. zerotier-cli peers lists them all just fine but it's not showing up in the ZeroUI web UI.
Someone can confirm this? before I can give 1.12.2 a try
1.12.2 Still having problems
let's reopen one on their issue list
Yep broken with ZT 1.12.2, I am seeing no clients.
Same issue for me on fedora, I reverted to zerotier 1.10.2 and that solved the issue
You basically need to revert one line in backend/routes/member.js to get rid of the compatibility fix introduced to handle 1.12.0, now that the compatibility is back to what it was before.
See https://github.com/dec0dOS/zero-ui/commit/856682bad1ccd46970681e45bea8a992043c38f4#r126131655
You basically need to revert one line in
backend/routes/member.jsto get rid of the compatibility fix introduced to handle 1.12.0, now that the compatibility is back to what it was before.
Please keep in mind that the controller API responses for version 1.12.2 are still distinct from those in version 1.10. This commit was initially introduced as a temporary solution for the 1.12.0 release within the main branch, but the new ZeroUI version hasn't been released yet. I'm planning to revert it back while we await a proper fix from the ZeroTier team. For now, the best solution is to use the 1.10 ZeroTier version on the controller.
Please keep in mind that the controller API responses for version 1.12.2 are still distinct from those in version 1.10
If this is still the case after 1.12.2, it hasn't been reported to us at ZeroTier.
I couldn't replicate the issue with 1.12.2. My apologies, it turns out I was actually testing 1.12.1 at the time. Could someone please verify the problem with their setup using ZeroUI version 1.5.1 and ZeroTier 1.12.2? If you're still experiencing the problem, please consider building from the source and report any issues.
With the latest update 1.5.8 everything is working fine!
Thank you
@dec0dOS I built your latest commit from source and it is working. One thing to note for everyone, is it seems that with 1.12 zerotier is changing permissions of authtoken.secret to be 600 (rw- --- ---) and owned by root, so because I am spawning zeroui as a user that is not root, it can't access the authtoken.secret file. If I allow that user access to the authtoken, on restart zerotier changes the permissions back. Worth noting this.
@dec0dOS I built your latest commit from source and it is working. One thing to note for everyone, is it seems that with 1.12 zerotier is changing permissions of authtoken.secret to be 600 (rw- --- ---) and owned by root, so because I am spawning zeroui as a user that is not root, it can't access the authtoken.secret file. If I allow that user access to the authtoken, on restart zerotier changes the permissions back. Worth noting this.
In that case you should probably set ZU_CONTROLLER_TOKEN in env.
After pulling the latest docker image, it's working properly now. Thank you.
@dec0dOS I built your latest commit from source and it is working. One thing to note for everyone, is it seems that with 1.12 zerotier is changing permissions of authtoken.secret to be 600 (rw- --- ---) and owned by root, so because I am spawning zeroui as a user that is not root, it can't access the authtoken.secret file. If I allow that user access to the authtoken, on restart zerotier changes the permissions back. Worth noting this.
In that case you should probably set ZU_CONTROLLER_TOKEN in env.
Great! I was wondering if this was a thing. Thanks
Flow rules still not work.
@eduardo010174, please provide minimal, reproducible example.