zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.16k stars 1.65k forks source link

zerotier-cli on Ubuntu 14.04: missing port and zerotier-one.port not found in /var/lib/zerotier-one #214

Closed surfnet-niels closed 9 years ago

surfnet-niels commented 9 years ago

After installing zerotier-one_1.0.3_amd64.deb on ubuntu 14.04 LTS starting the cli client yields:

niels@M0ped:~$ zerotier-cli zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one

contents of /var/lib/zerotier show: niels@M0ped:/var/lib/zerotier-one$ ls -l total 612 -rwxr-xr-x 1 root root 2461 jun 3 02:01 uninstall.sh drwxr-xr-x 2 root root 4096 jul 22 23:26 updates.d -rwxr-xr-x 1 root root 618304 jun 4 03:02 zerotier-one

Running cli client with the port parameter return expected output: niels@M0ped:/var/lib/zerotier-one$ zerotier-cli -p auto ZeroTier One version 1.0.3 (c)2011-2015 ZeroTier, Inc. Licensed under the GNU General Public License v3

Usage: zerotier-cli [-switches] <command/path> []

Available switches: -h - Display this help -v - Show version -j - Display full raw JSON output -D - ZeroTier home path for parameter auto-detect -p - HTTP port (default: auto) -T - Authentication token (default: auto)

Available commands: info - Display status info listpeers - List all peers listnetworks - List all networks join - Join a network leave - Leave a network

adamierymenko commented 9 years ago

The service probably isn't started. The package usually won't do that by default. Type "sudo service zerotier-one start" (I think).

surfnet-niels commented 9 years ago

thx, that solved the issue. Might be good to add this to the docs somewhere.

mikebutash commented 8 years ago

Same issue here, second the mention of adding to linux startup docs (ubuntu here), or have your package start the service on install. Most packages tend to start if a service anyways, didn't expect to have to start this manually on install either, and error was cryptic to throw wtf's to start googling.

lpflhh commented 2 years ago

zerotier-one -d