Missing ZeroTier identity file / Service cant locate executables

My YunoHost server

Hardware: Raspberry Pi 4 (4gb) at home
YunoHost version: 11.1.21.4 (stable)
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain: n.a
If your request is related to an app, specify its name and version: ZeroTier 1.10.6~ynh1

Description of my issue

Hello all,

I wanted to make use of ZeroTier to get access to my nextcloud subdomain on my newly set up yunohost on a Raspberry Pi 4 (4gb).

The thing is:

  • I have installed ZeroTier successfully and added my RPi and my phone on the same ZeroTier Network yesterday. But I did not figure out how to port to nextcloud and therefore I dismissed ZeroTier in the evening and removed it from my Yunohost. In the hope that I am going to start fresh the next day.
    But in the next day the service did not start and I found out that it misses executable files. (see attached log!)

  • I reinstalled again and noticed that there is already a warning during installation which says:

Info: Installing zerotier...
Info: [+...................] > Validating installation parameters...
Info: [#++.................] > Storing installation settings...
Info: [###++...............] > Finding an available port...
Info: [#####+++++..........] > Installing dependencies...
Info: [##########++++......] > Starting a systemd service...
Warning: Synchronizing state of zerotier-one.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: Executing: /lib/systemd/systemd-sysv-install enable zerotier-one
Info: [##############++++..] > Waiting for identity generation...
Warning: Identity generation timed out.
Warning: Identity file is missing. Please report to YunoHost Support if your ZeroTier instance does not work.
Info: [####################] > Installation of zerotier completed
Success! Installation completed
  • I removed ZeroTier again and used find to search for any installation artefacts but without success (which I believed to be a good sign as it means that there is nothing left from the failed installation). However the issue persisted after a new installation.

  • In addition, using zerotier-cli reports me: zerotier-cli: command not found however it is installed as yunohost app install ... gives me: Error: zerotier is already installed.

I did not find anything usable about the identity files in the ZeroTier documentation and the warning redirected me to you guys.

Thanks for any help and guidance,

J.S.

Welcome!

Can you share the logs of all the installation attempts?
Can you share the output of which zerotier-one after the app is installed?

Hello, thanks for your help.

Can you share the logs of all the installation attempts?

As you can see I have tried both installation via web interface and via cli.

Can you share the output of which zerotier-one after the app is installed?

reports nothing.

as new users are only allowed to post max 5 links:

Thanks!

So the reinstalls have indeed consistently failed to generate the identity file.

  1. Install the app.
  2. Share the output of systemctl status zerotier-one.service
  3. Share the output of ls -la /var/lib/zerotier-one
  • Share the output of systemctl status zerotier-one.service
$ systemctl status zerotier-one.service
● zerotier-one.service - ZeroTier One
     Loaded: loaded (/lib/systemd/system/zerotier-one.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-06-26 12:33:51 CEST; 3min 15s ago
    Process: 7034 ExecStart=/usr/sbin/zerotier-one (code=exited, status=203/EXEC)
   Main PID: 7034 (code=exited, status=203/EXEC)
        CPU: 1ms
  • Share the output of ls -la /var/lib/zerotier-one
total 12
drwxr-xr-x  2 root root 4096 Jun 26 12:33 .
drwxr-xr-x 46 root root 4096 Jun 26 12:33 ..
-rw-r--r--  1 root root   44 Jun 26 12:33 local.conf

Service fails to restart. Log: hastebin

edit: + log of installation: hastebin

OK, it looks like Zerotier is not being removed while removing the app.

  1. Delete the app.
  2. sudo apt purge zerotier-ynh-deps zerotier-one -y
  3. Try installing the app again :crossed_fingers:
  1. sudo apt purge zerotier-ynh-deps zerotier-one -y

zerotier-ynh-deps was not installed. Should it have been?

Returns: E: Unable to locate package zerotier-ynh-deps

edit: installation log ( https://paste.yunohost.org/raw/awuvepofor ) looks good!

Thank you very much for your fast help!

No it’s OK :slight_smile:

I am glad that we could fix the issue. :slight_smile: Enjoy YunoHost with ZeroTier! :rocket:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.