Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Problem with Arm V8 #1873

Open
ehrenmann1977 opened this issue Feb 12, 2023 · 7 comments
Open

Start Problem with Arm V8 #1873

ehrenmann1977 opened this issue Feb 12, 2023 · 7 comments

Comments

@ehrenmann1977
Copy link

I am triying to run zerotier-one on arm v8 after installing it, but i get can not start issues


admin@yomn:/volume1/@entware-ng/opt/bin$ sudo ./zerotier-one
zerotier-one: malloc.c:2395: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted

@joseph-henry
Copy link
Contributor

We'll need more information about your setup. The issue ticket template shows you what we need.

OS / Exact CPU arch: uname -a
Version of ZeroTier
What commands you issued to install ZeroTier, etc

@paldier
Copy link

paldier commented Mar 1, 2023

/jffs/softcenter/bin$ ./zerotier-one --help
ZeroTier One version 1.10.2
Copyright (c) 2020 ZeroTier, Inc.
Licensed under the ZeroTier BSL 1.1 (see LICENSE.txt)
Usage: ./zerotier-one [-switches] [home directory]

Available switches:
  -h                - Display this help
  -v                - Show version
  -U                - Skip privilege check and do not attempt to drop privileges
  -p<port>          - Port for UDP and TCP/HTTP (default: 9993, 0 for random)
  -d                - Fork and run as daemon (Unix-ish OSes)
  -i                - Generate and manage identities (zerotier-idtool)
  -q                - Query API (zerotier-cli)
/jffs/softcenter/bin$ uname -a
Linux RM-AX6000-D68E 5.4.179 #1 SMP Tue Feb 28 20:39:38 CST 2023 aarch64 ASUSWRT

entware uses entware's libc to run applications instead of your os's libc, so you can not run it via ./zerotier-one, you can try run /volume1/@entware-ng/opt/init.d/zerotier start.

@ehrenmann1977
Copy link
Author

ehrenmann1977 commented Mar 1, 2023

I dont have an init.d service file.
admin@yomn:/volume1/@entware-ng/opt$ ls bin etc home lib libexec opt root sbin share tmp usr var admin@yomn:/volume1/@entware-ng/opt$ cd bin admin@yomn:/volume1/@entware-ng/opt/bin$ ls ash find localedef.new locale.new netstat opkg sh xargs zerotier-cli zerotier-idtool zerotier-one admin@yomn:/volume1/@entware-ng/opt/bin$

I can call zerotier-one --help

`admin@yomn:/volume1/@entware-ng/opt/bin$ ./zerotier-one --help
ZeroTier One version 1.10.2
Copyright (c) 2020 ZeroTier, Inc.
Licensed under the ZeroTier BSL 1.1 (see LICENSE.txt)
Usage: ./zerotier-one [-switches] [home directory]

Available switches:
-h - Display this help
-v - Show version
-U - Skip privilege check and do not attempt to drop privileges
-p - Port for UDP and TCP/HTTP (default: 9993, 0 for random)
-d - Fork and run as daemon (Unix-ish OSes)
-i - Generate and manage identities (zerotier-idtool)
-q - Query API (zerotier-cli)
admin@yomn:/volume1/@entware-ng/opt/bin$`

@ehrenmann1977
Copy link
Author

root@yomn:/volume1/@entware-ng/opt/bin# uname -a
Linux yomn 4.4.180+ #42962 SMP Tue Jan 31 23:16:54 CST 2023 aarch64 GNU/Linux synology_rtd1296_ds220j

root@yomn:/volume1/@entware-ng/opt/bin# cat /proc/cpuinfo
processor       : 0
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

@ehrenmann1977
Copy link
Author

ehrenmann1977 commented Mar 1, 2023

I dont have zerotier service on the device.

root@yomn:/volume1/@entware-ng/opt/bin# ./zerotier-cli dump
Error connecting to the ZeroTier service: connection failed

Please check that the service is running and that TCP port 9993 can be contacted via 127.0.0.1.

@ehrenmann1977
Copy link
Author

root@yomn:/volume1/@entware-ng/opt/bin# ./zerotier-one
zerotier-one: malloc.c:2395: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)

@ehrenmann1977
Copy link
Author

ehrenmann1977 commented Mar 1, 2023

is there a way to recompile zerotier-one on this device? unfortunately, my device is carrying traffic and real data .. this needs a new device to reach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants