packages icon indicating copy to clipboard operation
packages copied to clipboard

Snapshot Zerotier (1.2.4-2) package is broken.

Open Seohol opened this issue 8 years ago • 5 comments

  • Device: TP-Link Archer C2600 v1.0 [arm_cortex-a15_neon-vfpv4]
  • LEDE: LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.290.79498-d3f0685)
  • Steps to reproduce:
wget http://downloads.lede-project.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/zerotier_1.2.4-2_arm_cortex-a15_neon-vfpv4.ipk

opkg install zerotier_1.2.4-2_arm_cortex-a15_neon-vfpv4.ipk

Configuring zerotier.

Generate secret - please wait...
Segmentation fault
cat: can't open '/tmp/zt.sample_config.secret': No such file or directory
rm: can't remove '/tmp/zt.sample_config.secret': No such file or directory

zerotier cli also couldn’t start due to libstdcpp dependency.

Report on reddit

1.1.4 version from LEDE official repo works fine

@mwarning

Seohol avatar Jan 15 '18 08:01 Seohol

The dependencies of the ZeroTier (ZT) OpenWrt package changed from ZT version 1.1.14 to 1.2.4. The OpenWrt package for ZT 1.2.2 started to depend on libstdcpp.

The problem is that the image/libstdcpp and ZT package are probably incompatible, since they are from different releases/snapshots.

Solutions:

  1. Use a compatible image and ZT package combination, e.g.:
  • http://downloads.lede-project.org/snapshots/targets/ipq806x/generic/openwrt-ipq806x-tplink_c2600-squashfs-sysupgrade.bin
  • http://downloads.lede-project.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/zerotier_1.2.4-2_arm_cortex-a15_neon-vfpv4.ipk ('opkg update' and 'opkg install zerotier' should suffice)
  1. install the libstdcpp package from snapshot as the ZT package. This might break other programs that depend on libstdcpp instead!

(Please don't be confused, LEDE and OpenWrt are more or less the same from a users perspective. LEDE is merging with OpenWrt as OpenWrt in the near future.)

mwarning avatar Jan 15 '18 12:01 mwarning

The only real solution is to have a new OpenWrt release. Updating the ZT package in the feed of the latest release might be an option, but this might not be accepted due to the package having changed dependencies..

mwarning avatar Jan 15 '18 12:01 mwarning

@Seohol The ticket can be closed, as the problem is a incompatible firmware/package version. Please update the thread on reddit if you can.

mwarning avatar Jan 17 '18 13:01 mwarning

The error has been found (ARM specific) and fixed: https://github.com/openwrt/packages/pull/5908 :-)

mwarning avatar Apr 13 '18 18:04 mwarning

Fixed with #5908

dibdot avatar Apr 16 '18 12:04 dibdot