Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to connect on boot #728

Closed
UndarkAido opened this issue Apr 29, 2018 · 10 comments
Closed

Fails to connect on boot #728

UndarkAido opened this issue Apr 29, 2018 · 10 comments

Comments

@UndarkAido
Copy link

I get this from ZeroTier on boot:

$ sudo service zerotier-one status
● zerotier-one.service - ZeroTier One
   Loaded: loaded (/lib/systemd/system/zerotier-one.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-04-29 00:19:04 CDT; 5min ago
 Main PID: 801 (zerotier-one)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/zerotier-one.service
           └─801 /usr/sbin/zerotier-one

Apr 29 00:19:04 Yamato systemd[1]: Started ZeroTier One.
Apr 29 00:19:04 Yamato zerotier-one[801]: sendto: Network unreachable

Running zerotier-cli with sudo or restarting the service make it work. Anyone know what's up?

@adamierymenko
Copy link
Contributor

Does it work if you wait or do you have to restart? A network unreachable error may not be fatal since it keeps trying.

@UndarkAido
Copy link
Author

UndarkAido commented May 7, 2018 via email

@adamierymenko
Copy link
Contributor

Can you tell me a little more about the system? Hardware, OS/distribution, etc.?

@UndarkAido
Copy link
Author

UndarkAido commented May 8, 2018 via email

@richarke
Copy link

I have the same issue on Raspbian (Stretch) with zt 1.2.8. Seems to be some kind of systemd race. I added this to the [Service] section of /lib/systemd/system/zerotier-one:

ExecStartPre=/bin/sleep 10

It fixes the problem for me. (There's probably a better way...)

@norn93
Copy link

norn93 commented Jul 3, 2018

I tried @richarke's solution:

ExecStartPre=/bin/sleep 10

but it didn't work for me.

I fixed the same issue by adding the sleep in /etc/rc.local:

sleep 60
sudo systemctl restart zerotier-one

Very hacky, but hasn't given me any problems yet. The issue arose because I'm using a weird 3G/4G USB dongle as eth1.

@laduke
Copy link
Contributor

laduke commented Aug 29, 2018

There were some changes to the systemd units in the last couple releases.
Feel free to re-open if needed.

@laduke laduke closed this as completed Aug 29, 2018
@AurevoirXavier
Copy link

AurevoirXavier commented Oct 15, 2020

Still got this problem in 2020.

Every 5 minutes it'll restart but still got sendto: Network unreachable.

It doesn't work until I manually interact with it by restarting or running it with sudo from the command line.

I'm on Arch Linux with latest update.

@laduke
Copy link
Contributor

laduke commented Oct 15, 2020

@AurevoirXavier
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants