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

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

Closed
Mifulapirus opened this Issue May 23, 2017 · 22 comments

Comments

Projects
None yet
8 participants
@Mifulapirus
Copy link

Mifulapirus commented May 23, 2017

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!

@nate8199

This comment has been minimized.

Copy link

nate8199 commented May 23, 2017

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented May 23, 2017

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?

@adamierymenko

This comment has been minimized.

Copy link
Contributor

adamierymenko commented May 23, 2017

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.

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented May 23, 2017

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 :)

@adamierymenko

This comment has been minimized.

Copy link
Contributor

adamierymenko commented May 23, 2017

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

zerotier-one.gz

@adamierymenko adamierymenko changed the title service not installed on Raspbian 8 1.2.4 precompiled binary incompatible with Pi Zero and other older / smaller ARM32 chips (fix inside) May 23, 2017

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented May 23, 2017

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.

@adamierymenko

This comment has been minimized.

Copy link
Contributor

adamierymenko commented May 23, 2017

How was it installed originally?

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented May 23, 2017

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.

@adamierymenko

This comment has been minimized.

Copy link
Contributor

adamierymenko commented May 23, 2017

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

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented May 23, 2017

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

@adamierymenko

This comment has been minimized.

Copy link
Contributor

adamierymenko commented May 23, 2017

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.

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented May 24, 2017

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!

@paulrd

This comment has been minimized.

Copy link

paulrd commented Jul 27, 2017

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.

@paulrd

This comment has been minimized.

Copy link

paulrd commented Jul 27, 2017

Build succeeded and @Mifulapirus instructions worked like a charm!

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented Jul 27, 2017

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

@paulrd

This comment has been minimized.

Copy link

paulrd commented Jul 27, 2017

One last step was to do:

 sudo systemctl enable zerotier-one.service

to have it work after reboot.

@Mifulapirus

This comment has been minimized.

Copy link

Mifulapirus commented Jul 27, 2017

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

@kbumsik

This comment has been minimized.

Copy link

kbumsik commented Aug 4, 2017

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?

@timothy-gibson

This comment has been minimized.

Copy link

timothy-gibson commented Sep 16, 2017

@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
@mrexodia

This comment has been minimized.

Copy link

mrexodia commented Dec 12, 2017

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

@adamierymenko

This comment has been minimized.

Copy link
Contributor

adamierymenko commented Jan 9, 2018

Fixed in dev

@unpluggedcoder

This comment has been minimized.

Copy link

unpluggedcoder commented Feb 16, 2018

works on Raspberry Pi 1
Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment