5

I downloaded zero tier from their website using the following command:

curl -s https://install.zerotier.com | sudo bash

Whenever I try to use the zerotier cli it's giving the following error: "zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one"

screenshot

I am using Ubuntu 20.04. How to resolve this error?

Tahlil
  • 1,031
  • 1
  • 14
  • 26

2 Answers2

11

try

zerotier-one -d

start the service before you use zerotier-cli

admingyu
  • 421
  • 4
  • 6
  • this one worked for me combined with https://github.com/zerotier/ZeroTierOne/issues/1050 – Rogol Nov 15 '21 at 12:58
4

First, review the whole service log with:

journalctl -u zerotier-one.service

Good chances you'll see that the 9993 port is already allocated by some other service (e.g. docker, etc.), which might look like that:

/usr/sbin/zerotier-one: fatal error: cannot bind to local control interface port 9993

If so, then simply change the default port, e.g. to 9994, by generating /var/lib/zerotier-one/local.conf with the following content:

{
  "settings": {
    "primaryPort": 9994
  }
}
Shahar Gino
  • 155
  • 3
  • 11
  • 1
    For me worked after changing the port number ( executed command `zerotier-one -d` too after port modification ) – Arun Feb 28 '23 at 11:55