zerotier-ztncui问题记录

打开控制器,进入网络,出现错误如下:

ERROR getting ZT status: Error: EACCES: permission denied, open '/var/lib/zerotier-one/authtoken.secret'

解决:

参考链接:After Upgrading ZeroTierOne to 1.10.4 - ERROR getting ZT status: Error: EACCES: permission denied, open '/var/lib/zerotier-one/authtoken.secret' · Issue #107 · key-networks/ztncui · GitHub

解决如下:

需要将ZT_TOKEN配置到ztncui的环境上

sudo -i
echo ZT_TOKEN=`cat /var/lib/zerotier-one/authtoken.secret` >> /opt/key-networks/ztncui/.env
chmod 400 /opt/key-networks/ztncui/.env
chown ztncui.ztncui /opt/key-networks/ztncui/.env
systemctl restart ztncui

你可能感兴趣的:(其它,linux,运维,服务器)