NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 442 forks source link

Loading consensus error #3142

Open IxsCN opened 6 years ago

IxsCN commented 6 years ago

BUG REPORT

Stack Trace or error message

Sia Daemon v1.3.3
Git Revision fee522a
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
error opening consensus database: file size too small

Expected Behavior None

How to reproduce it (as minimally and precisely as possible) Nomal run

Environment

Detail of CPU

root@OpenWrt:~#  uname -a
Linux Hiwifi 3.14.77 #1 SMP PREEMPT Wed May 2 15:26:56 CST 2018 armv7l GNU/Linux
root@OpenWrt:~# cat /proc/cpuinfo 
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 96.00
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 1
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 96.00
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 2
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 96.00
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

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

Hardware        : Qualcomm (Flattened Device Tree)
Revision        : 0000
Serial          : 0000000000000000
majudev commented 5 years ago

Same happened to me also on v1.3.3. I was trying to bootstrap the consensus.

OS: Linux orangepi_sia 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l GNU/Linux CPU: Allwinner H2+ Device: Orange Pi Zero RAM: 512 MB + 8 GB of swap

Fornax96 commented 5 years ago

I think these are all 32-bit processors. Sia is not compatible with 32-bit systems. It requires 64-bit because the consesus database is memory mapped, on 32-bit systems there are not enough addresses to map the whole db.

I'll also note that the project has moved to gitlab and github issues will no longer be maintained: https://gitlab.com/NebulousLabs/Sia