QTS系统从5.0.0更新到5.0.1后发现zerotier失效,系统内报错:
警告 System 127.0.0.1 --- App Center App Status Change [App Center] Failed to start ZeroTier. QTS does not support this ZeroTier version. Check for updates in "App Center" or on the official app website.
1、删除原来的1.8.4版本
2、在qnapclub里搜zerotier,安装 1.10.1版本
这个版本安装完后,执行zerotier-cli加入网络会报错:
zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one
3、执行以下命令修复
参考: https://rss.qnap.com/viewtopic.php?f=45&t=167752&p=828273
注意替换安装目录
cd /share/CACHEDEV2_DATA/.qpkg/
ln -s 0Tier1 ZeroTier
ln -s 0Tier1 zerotier
cd ZeroTier
ln -s usr/sbin/zerotier-one
cd /usr/sbin
ln -s /share/CACHEDEV2_DATA/.qpkg/ZeroTier/zerotier-one
cd /var/lib
ln -s /share/CACHEDEV2_DATA/.qpkg/ZeroTier zerotier-one
ln -s /share/CACHEDEV2_DATA/.qpkg/ZeroTier zerotier-one
/share/CACHEDEV2_DATA/.qpkg/0Tier1/usr/sbin/zerotier-cli join network-id
zerotier升级到1.12后又用不了了,报错一样,但是用上面的方法不行了
[admin@xxx] # /share/CACHEDEV2_DATA/.qpkg/zerotier/usr/sbin/zerotier-cli
/share/CACHEDEV2_DATA/.qpkg/zerotier/usr/sbin/zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one
这回直接找他想要的文件,然后做软链
[admin@xxx]# find /share/CACHEDEV2_DATA/.qpkg/ -name zerotier-one.port
/share/CACHEDEV2_DATA/.qpkg/zerotier/zerotier-one.port
[admin@xxx]# ln -s /share/CACHEDEV2_DATA/.qpkg/zerotier/zerotier-one.port /var/lib/zerotier-one
接着还报错:
/share/CACHEDEV2_DATA/.qpkg/zerotier/usr/sbin/zerotier-cli: authtoken.secret not found or readable in /var/lib/zerotier-one (try again as root)
接着找
[admin@xxx]# find /share/CACHEDEV2_DATA/.qpkg/ -name authtoken.secret
/share/CACHEDEV2_DATA/.qpkg/zerotier/authtoken.secret
[admin@xxx]# ln -s /share/CACHEDEV2_DATA/.qpkg/zerotier/authtoken.secret /var/lib/zerotier-one/
再执行join就可以了