Zerotierone: 1.2.4 precompiled binary incompatible with Pi Zero and other older / smaller ARM32 chips (fix inside)

Created on 23 May 2017  ·  24Comments  ·  Source: zerotier/ZeroTierOne

Hello, after cloning the repo and sudo make, I can sudo ./zerotier-one -d and so on, but I've noticed how the service doesn't run on boot.
I've looked in /lib/systemd/system and there are no zerotier services at all.

Am i missing something after just sudo make?

Here is my name os info:
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Thanks!

build problem

Most helpful comment

For me this worked nicely on a Raspberry Pi B and Raspberri Pi Zero W:

  1. curl -s https://install.zerotier.com/ | sudo bash
  2. Ctrl+C when it freezes at Waiting for identity generation
  3. wget https://github.com/zerotier/ZeroTierOne/files/1023887/zerotier-one.gz (patch from @adamierymenko above)
  4. gzip -d zerotier-one.gz
  5. chmod +x zerotier-one
  6. sudo chown root:root zerotier-one
  7. sudo mv zerotier-one /usr/sbin/zerotier-one
  8. sudo systemctl start zerotier-one

If everything went okay sudo zerotier-cli status should now say 200 info XXXXXXXXXX 1.2.5 ONLINE

All 24 comments

You would have to run,

sudo systemctl enable zerotier*
sudo systemctl start zerotier*

On May 23, 2017 12:36 AM, "Ángel" notifications@github.com wrote:

Hello, after cloning the repo and sudo make, I can sudo ./zerotier-one -d
and so on, but I've noticed how the service doesn't run on boot.
I've looked in /lib/systemd/system and there are no zerotier services at
all.

Am i missing something after just sudo make?
Thanks!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zerotier/ZeroTierOne/issues/510, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJpRN_vJZBgfVrloHeQhUNcwmvJ3fOtks5r8n5rgaJpZM4NjPF6
.

I just get
$ sudo systemctl enable zerotier* Failed to execute operation: No such file or directory

The service files are not there, am I missing a step where I gotta create them?

Do you have a Pi version 1 or other older ARM processor? The current version has a known issue with older ARM chips that will be fixed in the next. I can give you a working binary for now if you want.

I have a Pi Zero W with an ARM11.
This seems to be one of the older processors, so you might be right about this.
I'll be happy to try whatever you have, if it helps :)

Try the attached binary. Replace /usr/sbin/zerotier-one. Tell me if it works.

zerotier-one.gz

Hey @adamierymenko, I didn't even have a zerotier-one file in /usr/sbin
I've put it there and made it executable, but still get the same result when I run:
$ sudo systemctl enable zerotier* Failed to execute operation: No such file or directory
I tried $ sudo systemctl daemon-reload but nothing changes.

How was it installed originally?

I just cloned the repo and sudo make.
Running sudo ./zerotier-one -d manually works fine, so it seems to be only related to the service.

Ahh... the make install command doesn't install service files. There are three different init systems on Linux (at least), so packages do that.

&*%$#@ Linux and their init systems!
Good to know. how should I install the services then?

The file templates are in ext/installfiles/linux and debian/ and if you're using systemd can be dropped in the right place... which may differ by distribution.

That did the trick!

  1. Copy the service file: $ sudo cp /YOUR_ZERO_TIER_FOLDER/debian/zerotier-one.service /lib/systemd/system/
  2. Change permissions: $ sudo chmod 644 /lib/systemd/system/zerotier-one.service
  3. Reload services: $ sudo systemctl daemon-reload
  4. Enable the service: $ sudo systemctl enable zerotier-one.service
  5. Start the service: $ sudo systemctl start zerotier-one.service

DONE!
Thanks, @adamierymenko!

I may be running into the same issue. Trying to install on old raspberry pi gen 1. (armv6). It hangs at * Waiting for identity generation...

Going to try build and install.

Build succeeded and @Mifulapirus instructions worked like a charm!

I'm glad it worked for you, @paulrd!

One last step was to do:

 sudo systemctl enable zerotier-one.service

to have it work after reboot.

Thanks for the note, @paulrd. I added it to the instructions.

This didn’t work for me. I am using the latest version of RPi debian on Zero W.
I did the following:

$ make all
$ make install

 ....The same commends on the instruction above...

What did I miss? Is there a specific branch or tag working for the RPi?

@kbumsik, the complete solution which worked for me on Zero W was:

  • grab the working binary from @adamierymenko above and put it in /usr/sbin/
  • clone the repo (master branch) and follow @Mifulapirus instructions above

For me this worked nicely on a Raspberry Pi B and Raspberri Pi Zero W:

  1. curl -s https://install.zerotier.com/ | sudo bash
  2. Ctrl+C when it freezes at Waiting for identity generation
  3. wget https://github.com/zerotier/ZeroTierOne/files/1023887/zerotier-one.gz (patch from @adamierymenko above)
  4. gzip -d zerotier-one.gz
  5. chmod +x zerotier-one
  6. sudo chown root:root zerotier-one
  7. sudo mv zerotier-one /usr/sbin/zerotier-one
  8. sudo systemctl start zerotier-one

If everything went okay sudo zerotier-cli status should now say 200 info XXXXXXXXXX 1.2.5 ONLINE

Fixed in dev

works on Raspberry Pi 1
Thanks all!

Is this solved in the most recent release?
I have Raspberry Pi Zero W running Stretch and when I run:
curl -s https://install.zerotier.com | sudo bash
it still hangs at:
* Waiting for identity generation...

@reluctantgithubuser, can you make a new issue for 1.4.2 ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

coretemp picture coretemp  ·  3Comments

gdamore picture gdamore  ·  5Comments

lburtts picture lburtts  ·  4Comments

kbumsik picture kbumsik  ·  4Comments

tim77 picture tim77  ·  4Comments