401 error for any command, trying to run on Ubuntu

New to Linux and zerotier.

I’m running Ubuntu 18.04.5 LTS.

When installing zerotier, and trying to connect to an already-created network (sudo zerotier-cli join [network ID]) or run any other zerotier command in the Ubuntu terminal, I get a 401 error.

e.g. 401 join {}
or $ sudo zerotier-cli status
401 status {}

Anyone have any ideas as to what I’m doing wrong here?

I’ve tried

  • Uninstall /reinstall
  • Install different methods - install is “successful” but still 401 error
  • Rebooted machine

I’ve googled a good bit, few with the same problem, and not getting anywhere with it.

Any help appreciated.

Is there a file .zeroTierOneAuthToken In your home directory? If so delete it. If that fails or doesn’t exist, remove /var/lib/zerotier-one/authtoken.secret and restart the zerotier service and try again.

Thanks for quick response.

  1. Any idea where I would fine those files from the Terminal? (is it below output?) sorry, a novice.

  2. And how to delete them / how to restart the zerotier service from Terminal?

$ sudo ./ZeroTierOne/
artwork/ debian/ .git/ java/ rule-compiler/
attic/ doc/ .github/ macui/ service/
controller/ dockerbuild/ .gitignore node/ update_controllers.sh
cycle_controllers.sh ext/ include/ osdep/ windows/

Did you install with the script from https://www.zerotier.com/download/ ?

It looks like you’re looking at the source code which you users don’t generally need.

This topic was automatically closed after 14 days. New replies are no longer allowed.