SOLVED Unable to use Zerotier with SCALE

Joined
Nov 13, 2022
Messages
39
Hello all, has anyone found a true working method to getting zerotier working to be able to access the TNscale gui or access smb shares? I had installed ZT inside TNscale and was working fine, but it got wiped on reboot. I have tried both the official charts app and the truecharts app with all the setting shown here by others but all I get is seeing the server popup in my ZT online account to assign it an IP. I cannot access the TNscale GUI or any of the shares.

in both the official app and truecharts app I look at the logs and see this...

2023-05-21 23:17:31.658383+00:00=> Configuring networks to join
2023-05-21 23:17:31.660872+00:00=> Joining networks from command line: [mynetworkid]
2023-05-21 23:17:31.661178+00:00===> Configuring join: [mynetworkid]
2023-05-21 23:17:31.662698+00:00=> Starting ZeroTier
2023-05-21 23:17:31.665081+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:31.668765+00:00/usr/sbin/zerotier-one: WARNING: failed to drop privileges (kernel may not support required prctl features), running as root
2023-05-21 23:17:31.671703+00:00/usr/sbin/zerotier-one: fatal error: cannot bind to local control interface port 9993
2023-05-21 23:17:32.669732+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:33.675251+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:34.679762+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:35.685361+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:36.690857+00:00===> ZeroTier hasn't started, waiting a second...
This last log keeps going forever
Are you using the CLI version or the TrueCharts app for ZT ?
 

dbrannon79

Dabbler
Joined
Oct 21, 2022
Messages
32
I have tried both from TrueCharts and the official charts app. if i go back in and edit the app by unchecking the box for binding the network, the app seems to with without the fatal error log one log entry repeating forever but I cannot access the TNscale gui or shares outside my network.

the weird thing is that I can see the device node in my online ZT account from where I had installed ZT directly in TNscale and it stills seems to be actively pinging (showing last seen less than a minute ago) in the site, but if I ssh into TNscale and attempt any of the ZT cli commands it acts like it's not installed. it's acting like it's not installed I expected after the server rebooted. I'm sure the files are still installed somewhere in there.

I might need to ssh into TNscale, re-install it so the commands are there, then have it leave the ZT network and do an uninstall. maybe there is something conflicting.
 

gabriel83

Cadet
Joined
Jun 29, 2023
Messages
3
I imported the TrueCharts Catalog and installed it throught it. You can add the key of your ZeroTier network in the ''extra args'' tab and then, once the docker app is done deploying, you will see the server in your network. Easier than dealing with the CLI and works just as well.

I had the community version of Zerotier installed and because of your recommendations I switched to the Truecharts version. I also had the problem with the community version that when the computer restarted it lost connectivity. I managed to install the charts catalog and everything seemed fine. The problem is that when I try to install zerotier (charts) I get the following error, with the community version it installed fine and except for the reboot problem everything worked fine. Any idea what I am doing wrong or what is missing on my side. TIA

Error:

Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 428, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 463, in __run_body rv = await self.method(*([self] + args)) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1246, in nf res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1378, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 486, in do_create await self.middleware.call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1395, in call return await self._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1355, in _call return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1258, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}') middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition
 
Joined
Nov 13, 2022
Messages
39
I had the community version of Zerotier installed and because of your recommendations I switched to the Truecharts version. I also had the problem with the community version that when the computer restarted it lost connectivity. I managed to install the charts catalog and everything seemed fine. The problem is that when I try to install zerotier (charts) I get the following error, with the community version it installed fine and except for the reboot problem everything worked fine. Any idea what I am doing wrong or what is missing on my side. TIA

Error:

Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 428, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 463, in __run_body rv = await self.method(*([self] + args)) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1246, in nf res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1378, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 486, in do_create await self.middleware.call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1395, in call return await self._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1355, in _call return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1258, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}') middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition
Unfortunately as of the latest version of Zerotier it does not work anymore on any of my systems so I had to move to Tailscale (The community version because the Truecharts version of it is broken) so I cannot provide any help. I would suggest switching to Tailscale as the only downside I found to it is not being able to manually set network IP. Otherwise everything works better via TS.
 

gabriel83

Cadet
Joined
Jun 29, 2023
Messages
3
Unfortunately as of the latest version of Zerotier it does not work anymore on any of my systems so I had to move to Tailscale (The community version because the Truecharts version of it is broken) so I cannot provide any help. I would suggest switching to Tailscale as the only downside I found to it is not being able to manually set network IP. Otherwise everything works better via TS.

Thanks a lot for your fast answer. It happens to me with other apps when I try to install them. Is it because I'm missing something from Truecharts?
 
Joined
Nov 13, 2022
Messages
39
Thanks a lot for your fast answer. It happens to me with other apps when I try to install them. Is it because I'm missing something from Truecharts?
Uh, if that happens with other apps, consider reinstalling TrueNAS completely with a fresh .iso. (Choose upgrade and then it will ask you if you want to format the drive beforehand. Choose yes and it will reformat and then do a fresh reinstall of TrueNAS but without loosing your config.)

I had a similar issue and that fixed it.
Also make sure you have set your server's internal IP in advanced settings under the apps tab.
Screenshot_20230629_190303_Samsung Internet.jpg
 

gabriel83

Cadet
Joined
Jun 29, 2023
Messages
3
Uh, if that happens with other apps, consider reinstalling TrueNAS completely with a fresh .iso. (Choose upgrade and then it will ask you if you want to format the drive beforehand. Choose yes and it will reformat and then do a fresh reinstall of TrueNAS but without loosing your config.)

I had a similar issue and that fixed it.
Also make sure you have set your server's internal IP in advanced settings under the apps tab.
View attachment 67824
Thank you very much my friend for all your help. I added DEPENDENCY and the issue was solved with Zerotier. I have it working and when I reboot everything still works fine. Much appreciated.
 

Kasen

Dabbler
Joined
Sep 15, 2023
Messages
17
Thank you very much my friend for all your help. I added DEPENDENCY and the issue was solved with Zerotier. I have it working and when I reboot everything still works fine. Much appreciated.
Hi, I have encounter the same problem of zerotier. It generates a new key when reboot. Would you please share the solution to this problem more detailly? How to add dependency?

Thanks.
 
Joined
Nov 13, 2022
Messages
39
Hi, I have encounter the same problem of zerotier. It generates a new key when reboot. Would you please share the solution to this problem more detailly? How to add dependency?

Thanks.
Under Manage Catalogs -> Select TrueCharts -> Tick "dependency"
 
Joined
Nov 23, 2023
Messages
2
Hello all, has anyone found a true working method to getting zerotier working to be able to access the TNscale gui or access smb shares? I had installed ZT inside TNscale and was working fine, but it got wiped on reboot. I have tried both the official charts app and the truecharts app with all the setting shown here by others but all I get is seeing the server popup in my ZT online account to assign it an IP. I cannot access the TNscale GUI or any of the shares.

in both the official app and truecharts app I look at the logs and see this...

2023-05-21 23:17:31.658383+00:00=> Configuring networks to join
2023-05-21 23:17:31.660872+00:00=> Joining networks from command line: [mynetworkid]
2023-05-21 23:17:31.661178+00:00===> Configuring join: [mynetworkid]
2023-05-21 23:17:31.662698+00:00=> Starting ZeroTier
2023-05-21 23:17:31.665081+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:31.668765+00:00/usr/sbin/zerotier-one: WARNING: failed to drop privileges (kernel may not support required prctl features), running as root
2023-05-21 23:17:31.671703+00:00/usr/sbin/zerotier-one: fatal error: cannot bind to local control interface port 9993
2023-05-21 23:17:32.669732+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:33.675251+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:34.679762+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:35.685361+00:00===> ZeroTier hasn't started, waiting a second
2023-05-21 23:17:36.690857+00:00===> ZeroTier hasn't started, waiting a second...
This last log keeps going forever
We are same same. Anyone able to vector us to a solution?
 

Shigure

Dabbler
Joined
Sep 1, 2022
Messages
39
Mine can join the network but will then shows offline and Sleeping infinitely...?

Also it seems everytime the app got an update it will create a new MAC address so I will need auth and reassign the desired IP again?
This can be fixed by manually generate identity.secret and identity.public, but it should be done automatically.

And zerotier cannot start after I manually set the identities.
 
Last edited:
Top