More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

Asic-hub fails with panicUnaligned INVALIDARGUMENT

I’m trying to run asic-hub on a raspberry-pi. It used to run great, but after installing the latest version, it fails after startup with the following log. Any ideas?

Oct 27 21:30:44 foreman systemd[1]: Started ASIC Hub monitoring daemon..
Oct 27 21:30:44 foreman hub[2094]: panic: unaligned 64-bit atomic operation                                                                     Oct 27 21:30:44 foreman hub[2094]: goroutine 51 [running]:
Oct 27 21:30:44 foreman hub[2094]: runtime/internal/atomic.panicUnaligned()
Oct 27 21:30:44 foreman hub[2094]:         /usr/local/go/src/runtime/internal/atomic/unaligned.go:8 +0x24                                       Oct 27 21:30:44 foreman hub[2094]: runtime/internal/atomic.Store64(0x2c00674, 0x0)
Oct 27 21:30:44 foreman hub[2094]:         /usr/local/go/src/runtime/internal/atomic/atomic_arm.s:291 +0x14
Oct 27 21:30:44 foreman hub[2094]: gitlab.com/hiveon/asic/hub/pkg/utils/collections.(*IntSyncSet).Clear(0x2c00660)
Oct 27 21:30:44 foreman hub[2094]:         /tmp/build/pkg/utils/collections/intmap.go:64 +0x64
Oct 27 21:30:44 foreman hub[2094]: gitlab.com/hiveon/asic/hub/internal/services/monitor.(*DevicesMonitorService).Start(0x310c0c0, {0xda4a40, 0x2Oct 27 21:30:44 foreman hub[2094]:         /tmp/build/internal/services/monitor/service.go:124 +0x394
Oct 27 21:30:44 foreman hub[2094]: gitlab.com/hiveon/asic/hub/internal/hub.(*App).Run.func3({0xda4a40, 0x2c0e020})
Oct 27 21:30:44 foreman hub[2094]:         /tmp/build/internal/hub/app.go:89 +0xe4
Oct 27 21:30:44 foreman hub[2094]: gitlab.com/hiveon/asic/hub/internal/hub.runWithWaitGroup.func1()
Oct 27 21:30:44 foreman hub[2094]:         /tmp/build/internal/hub/util.go:12 +0x70
Oct 27 21:30:44 foreman hub[2094]: created by gitlab.com/hiveon/asic/hub/internal/hub.runWithWaitGroup
Oct 27 21:30:44 foreman hub[2094]:         /tmp/build/internal/hub/util.go:10 +0xb0
Oct 27 21:30:44 foreman systemd[1]: asic-hub.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 27 21:30:44 foreman systemd[1]: asic-hub.service: Failed with result 'exit-code'.

Are you on a 64bit os?

I don’t think so. Here is the specs on my raspberry pi:

model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 270.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

Please try installing a 64-bit OS

I can’t install a 64-bit OS on a device with a 32-bit processor.
If HiveOS dropped support for armv7, that’s very unfortunate as it takes my raspberry pi out as an option for hosting what is really a low-powered monitoring service. Do you have an archive of old versions that I could use to reinstall the older one?
And your automated installer certainly should check the CPU architecture before install to ensure it’s supported.

I dont believe support was dropped for 32bit, but seems that it may be a bug thats only present on 32bit os. Here is a link to the older versions, let me know what version ends up working and which one breaks it.
https://download.hiveos.farm/hub/

Sure, the error might be due to 64-bit operations on a 32-bit OS. Try older versions to resolve the issue.