Closed dawiepoolman closed 6 years ago
You seem to be out of memory. Or something is trying to allocate a whole lot. Use more memory, add swap, etc. Do you have a stack trace for the crash ?
Hi moneromoo I am struggling to figure out how to produce/analyse the stack trace with gdb (I have no idea how this works tbh)
When I ran ''' gdb ./bin/monero-v0.12.3.0/monerod run --rpc-bind-ip=192.168.1.10 --rpc-bind-port=4008 --confirm-external-bind --max-concurrency 1 --block-sync-size 20 --log-level 1 ''' I got this
I have tried increasing the swap file in the manual from 1000 to 5000 but when I ran '''sudo dphys-swapfile setup ''' it appeared to have capped it to a max default of 2048MB Would that be sufficient for --block-sync-size 20? I tried with --block-sync-size 1 as well but I get the same issue
That should be enough, and sync size should not really matter a whole lot here.
But the db is probably corrupt indeed if you get a SIGSEGV there. You can type "bt" to get the stack trace at the crash point (you have just the tip here).
Cool, I was close :P Here is the stack trace
ync_protocol_handler<nodetool::p2p_connection_context_t
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
rm data.mdb and start again with 2048MB RAM instead of 1000MB?
I now think the memory's ok, the DB being shot probably causes it to request silly amounts based on bad data. Maybe hyc can help more here.
so I deleted the mdb and restarted. after a few hours ... should i run fsck?
Hi guys, FYI, I cross posted this issue to the r/pinode subreddit to ask for help there w.r.t. what could also be Pi setup related errors u/shermand100 has been very helpful too
Hi guys
I failed again:
2018-10-07 19:50:20.452 [P2P2] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [185.152.64.176:18080 OUT] Synced 96116/1677909 2018-10-07 19:50:28.878 [P2P2] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [185.152.64.176:18080 OUT] Synced 96121/1677909 2018-10-07 19:50:31.267 [P2P2] ERROR cn src/cryptonote_basic/cryptonote_format_utils.cpp:987 Failed to parse block from blob Error in `./bin/monero-v0.12.3.0/monerod': munmap_chunk(): invalid pointer: 0x4accc3c8 Aborted pi@xmrpi:~ $
update I ran: ./bin/monero-v0.12.3.0/monero-blockchain-import --pop-blocks 10
when I resumed monerod it went past the block.
Why would it be so unstable?
failed again
2018-10-07 20:09:01.940 [P2P4] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [148.251.89.12:18080 OUT] Synced 96816/1677923 2018-10-07 20:09:02.633 [P2P4] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [148.251.89.12:18080 OUT] Synced 96821/1677923 2018-10-07 20:09:08.860 [P2P4] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to add output pubkey to db transaction: MDB_KEYEXIST: Key/data pair already exists 2018-10-07 20:09:11.931 [P2P4] ERROR blockchain src/cryptonote_core/blockchain.cpp:3585 Error adding block with hash: <14f1cc8df986d22a2c9016dd8f5aecc9a7db3a429e724ab0eba392e91732f3e2> to blockchain, what = Failed to add output pubkey to db transaction: MDB_KEYEXIST: Key/data pair already exists 2018-10-07 20:09:11.952 [P2P4] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [148.251.89.12:18080 OUT] Synced 96825/1677923 2018-10-07 20:10:08.620 [P2P1] ERROR blockchain src/cryptonote_core/blockchain.cpp:3449 Block with id: <14f1cc8df986d22a2c9016dd8f5aecc9a7db3a429e724ab0eba392e91732f3e2> attempting to add transaction already in blockchain with id: <74366d0cb8736eb4368bb663938d705b40d58620038ee404bde971dc39e0ca6f> 2018-10-07 20:10:16.191 [P2P1] ERROR blockchain src/cryptonote_core/blockchain.cpp:3449 Block with id: <14f1cc8df986d22a2c9016dd8f5aecc9a7db3a429e724ab0eba392e91732f3e2> attempting to add transaction already in blockchain with id: <74366d0cb8736eb4368bb663938d705b40d58620038ee404bde971dc39e0ca6f> 2018-10-07 20:10:26.976 [P2P6] ERROR blockchain src/cryptonote_core/blockchain.cpp:3449 Block with id: <14f1cc8df986d22a2c9016dd8f5aecc9a7db3a429e724ab0eba392e91732f3e2> attempting to add transaction already in blockchain with id: <74366d0cb8736eb4368bb663938d705b40d58620038ee404bde971dc39e0ca6f>
2018-10-07 20:17:07.080 76f12210 INFO global src/cryptonote_core/cryptonote_core.cpp:427 Loading blockchain from folder /home/pi/.bitmonero/lmdb ... Bus error
gdb ./bin/monero-v0.12.3.0/monerod GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabihf". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./bin/monero-v0.12.3.0/monerod...(no debugging symbols found)...done. (gdb) run --rpc-bind-ip=192.168.1.10 --rpc-bind-port=4008 --confirm-external-bind --max-concurrency 1 --block-sync-size 5 --log-level 1 Starting program: /home/pi/bin/monero-v0.12.3.0/monerod --rpc-bind-ip=192.168.1.10 --rpc-bind-port=4008 --confirm-external-bind --max-concurrency 1 --block-sync-size 5 --log-level 1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". 2018-10-07 20:22:13.616 76ff6210 INFO global src/daemon/main.cpp:282 Monero 'Lithium Luna' (v0.12.3.0-release) 2018-10-07 20:22:13.616 76ff6210 INFO daemon src/daemon/main.cpp:284 Moving from main() into the daemonize now. 2018-10-07 20:22:13.617 76ff6210 INFO global src/daemon/protocol.h:53 Initializing cryptonote protocol... 2018-10-07 20:22:13.617 76ff6210 INFO global src/daemon/protocol.h:58 Cryptonote protocol initialized OK [New Thread 0x76db3450 (LWP 604)] 2018-10-07 20:22:13.619 76ff6210 INFO global src/daemon/p2p.h:63 Initializing p2p server... 2018-10-07 20:22:13.620 76ff6210 INFO net.throttle contrib/epee/src/network_throttle-detail.cpp:162 Setting LIMIT: 2048 kbps 2018-10-07 20:22:13.620 76ff6210 INFO net.p2p src/p2p/net_node.inl:1875 Set limit-up to 2048 kB/s 2018-10-07 20:22:13.620 76ff6210 INFO net.throttle contrib/epee/src/network_throttle-detail.cpp:162 Setting LIMIT: 8192 kbps 2018-10-07 20:22:13.620 76ff6210 INFO net.throttle contrib/epee/src/network_throttle-detail.cpp:162 Setting LIMIT: 8192 kbps 2018-10-07 20:22:13.620 76ff6210 INFO net.p2p src/p2p/net_node.inl:1888 Set limit-down to 8192 kB/s 2018-10-07 20:22:13.620 76ff6210 INFO net.throttle contrib/epee/src/network_throttle-detail.cpp:162 Setting LIMIT: 2048 kbps 2018-10-07 20:22:13.620 76ff6210 INFO net.p2p src/p2p/net_node.inl:1910 Set limit-up to 2048 kB/s 2018-10-07 20:22:13.621 76ff6210 INFO net.throttle contrib/epee/src/network_throttle-detail.cpp:162 Setting LIMIT: 8192 kbps 2018-10-07 20:22:13.621 76ff6210 INFO net.throttle contrib/epee/src/network_throttle-detail.cpp:162 Setting LIMIT: 8192 kbps 2018-10-07 20:22:13.621 76ff6210 INFO net.p2p src/p2p/net_node.inl:1914 Set limit-down to 8192 kB/s [New Thread 0x768b3450 (LWP 605)] [New Thread 0x760b3450 (LWP 606)] [New Thread 0x756ff450 (LWP 607)] [New Thread 0x74cff450 (LWP 608)] 2018-10-07 20:22:13.790 768b3450 INFO net.p2p src/p2p/net_node.inl:457 dns_threads[0] addr_str: seeds.moneroseeds.se number of results: 0 [Thread 0x768b3450 (LWP 605) exited] 2018-10-07 20:22:13.814 756ff450 INFO net.p2p src/p2p/net_node.inl:457 dns_threads[2] addr_str: seeds.moneroseeds.ch number of results: 0 [Thread 0x756ff450 (LWP 607) exited] 2018-10-07 20:22:13.817 74cff450 INFO net.p2p src/p2p/net_node.inl:457 dns_threads[3] addr_str: seeds.moneroseeds.li number of results: 0 [Thread 0x74cff450 (LWP 608) exited] 2018-10-07 20:22:16.091 760b3450 INFO net.p2p src/p2p/net_node.inl:457 dns_threads[1] addr_str: seeds.moneroseeds.ae.org number of results: 0 2018-10-07 20:22:16.092 76ff6210 INFO net.p2p src/p2p/net_node.inl:495 DNS seed node lookup either timed out or failed, falling back to defaults [Thread 0x760b3450 (LWP 606) exited] 2018-10-07 20:22:16.099 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 107.152.130.98:18080 2018-10-07 20:22:16.099 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 161.67.132.39:18080 2018-10-07 20:22:16.100 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 163.172.182.165:18080 2018-10-07 20:22:16.100 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 195.154.123.123:18080 2018-10-07 20:22:16.100 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 198.74.231.92:18080 2018-10-07 20:22:16.100 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 212.83.172.165:18080 2018-10-07 20:22:16.100 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 212.83.175.67:18080 2018-10-07 20:22:16.101 76ff6210 INFO net.p2p src/p2p/net_node.inl:357 Added seed node: 5.9.100.248:18080 2018-10-07 20:22:16.147 76ff6210 INFO net contrib/epee/include/net/abstract_tcp_server2.inl:910 Set server type to: 2 from name: P2P, prefix_name = P2P 2018-10-07 20:22:16.147 76ff6210 INFO net.p2p src/p2p/net_node.inl:546 Binding on 0.0.0.0:18080 2018-10-07 20:22:16.148 76ff6210 INFO net.p2p src/p2p/net_node.inl:551 Net service bound to 0.0.0.0:18080 2018-10-07 20:22:17.756 76ff6210 INFO net.p2p src/p2p/net_node.inl:2004 Added IGD port mapping. 2018-10-07 20:22:17.756 76ff6210 INFO global src/daemon/p2p.h:68 p2p server initialized OK 2018-10-07 20:22:17.758 76ff6210 INFO global src/daemon/rpc.h:63 Initializing core RPC server... 2018-10-07 20:22:17.758 76ff6210 INFO net contrib/epee/include/net/abstract_tcp_server2.inl:910 Set server type to: 1 from name: RPC, prefix_name = RPC 2018-10-07 20:22:17.758 76ff6210 INFO global contrib/epee/include/net/http_server_impl_base.h:76 Binding on 192.168.1.10:4008 2018-10-07 20:22:17.759 76ff6210 INFO global src/daemon/rpc.h:69 core RPC server initialized OK on port: 4008 2018-10-07 20:22:17.759 76ff6210 INFO global src/daemon/core.h:86 Initializing core... 2018-10-07 20:22:17.762 76ff6210 INFO global src/cryptonote_core/cryptonote_core.cpp:427 Loading blockchain from folder /home/pi/.bitmonero/lmdb ... 2018-10-07 20:22:17.763 76ff6210 INFO blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:528 DB map size: 3074644480 2018-10-07 20:22:17.764 76ff6210 INFO blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:529 Space used: 1632563200 2018-10-07 20:22:17.764 76ff6210 INFO blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:530 Space remaining: 1442081280 2018-10-07 20:22:17.764 76ff6210 INFO blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:531 Size threshold: 0 2018-10-07 20:22:17.764 76ff6210 INFO blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:533 Percent used: 0.5310 Percent threshold: 0.8000
Thread 1 "monerod" received signal SIGBUS, Bus error. 0x009368b0 in mdb_rpage_get () (gdb)
stuff it. restarting from zero for the 4th and last time...
(gdb) bt
(gdb)
running for the 4th time from block 0 with:
./bin/monero-v0.12.3.0/monerod --rpc-bind-ip=192.168.1.10 --rpc-bind-port=4008 --confirm-external-bind --max-concurrency 1 --block-sync-size 20
If you see the problem again, you should try the dmesg
command to check if the kernel detected hardware errors that could explain database corruptions.
Next error
2018-10-08 00:15:24.542 [P2P8] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [107.10.255.62:18080 OUT] Synced 92332/1678034
2018-10-08 00:16:10.535 [P2P8] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1171 [107.10.255.62:18080 OUT] Synced 92352/1678035
2018-10-08 00:16:11.194 [P2P8] ERROR blockchain src/cryptonote_core/blockchain.cpp:3585 Error adding block with hash:
pi@xmrpi:~ $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.70-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1144 SMP Tue Sep 18 17:34:46 BST 2018 [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 8 MiB at 0x3ac00000 [ 0.000000] On node 0 totalpages: 242688 [ 0.000000] free_area_init_node: node 0, pgdat 80c84f80, node_mem_map ba39f000 [ 0.000000] Normal zone: 2133 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 242688 pages, LIFO batch:31 [ 0.000000] percpu: Embedded 17 pages/cpu @ba348000 s38720 r8192 d22720 u69632 [ 0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 240555 [ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=d82c22c1-b686-43fe-9749-68ea4720ac83 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 940228K/970752K available (7168K kernel code, 575K rwdata, 2076K rodata, 1024K init, 706K bss, 22332K reserved, 8192K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xbb800000 - 0xff800000 (1088 MB) lowmem : 0x80000000 - 0xbb400000 ( 948 MB) modules : 0x7f000000 - 0x80000000 ( 16 MB) .text : 0x80008000 - 0x80800000 (8160 kB) .init : 0x80b00000 - 0x80c00000 (1024 kB) .data : 0x80c00000 - 0x80c8fe8c ( 576 kB) .bss : 0x80c96f10 - 0x80d478b0 ( 707 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 25276 entries in 75 pages [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns [ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns [ 0.000022] Switching to timer-based delay loop, resolution 52ns [ 0.000274] Console: colour dummy device 80x30 [ 0.000814] console [tty1] enabled [ 0.000850] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000) [ 0.000890] pid_max: default: 32768 minimum: 301 [ 0.001218] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001251] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.002207] Disabling memory control group subsystem [ 0.002301] CPU: Testing write buffer coherency: ok [ 0.002728] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.003145] Setting up static identity map for 0x100000 - 0x10003c [ 0.003284] Hierarchical SRCU implementation. [ 0.003982] smp: Bringing up secondary CPUs ... [ 0.004779] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.005624] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.006448] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.006552] smp: Brought up 1 node, 4 CPUs [ 0.006624] SMP: Total of 4 processors activated (153.60 BogoMIPS). [ 0.006645] CPU: All CPU(s) started in HYP mode. [ 0.006663] CPU: Virtualization extensions available. [ 0.007557] devtmpfs: initialized [ 0.017715] random: get_random_u32 called from bucket_table_alloc+0xfc/0x24c with crng_init=0 [ 0.018387] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4 [ 0.018630] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.018674] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.019248] pinctrl core: initialized pinctrl subsystem [ 0.020044] NET: Registered protocol family 16 [ 0.022650] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.027375] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.027407] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.027619] Serial: AMBA PL011 UART driver [ 0.029274] bcm2835-mbox 3f00b880.mailbox: mailbox enabled [ 0.029744] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe [ 0.061002] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb813000, dmachans=0x1 [ 0.062437] SCSI subsystem initialized [ 0.062676] usbcore: registered new interface driver usbfs [ 0.062746] usbcore: registered new interface driver hub [ 0.062848] usbcore: registered new device driver usb [ 0.070085] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-09-10 17:26 [ 0.071388] clocksource: Switched to clocksource arch_sys_counter [ 0.148670] VFS: Disk quotas dquot_6.6.0 [ 0.148782] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.148985] FS-Cache: Loaded [ 0.149196] CacheFiles: Loaded [ 0.158046] NET: Registered protocol family 2 [ 0.158783] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.158912] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.159115] TCP: Hash tables configured (established 8192 bind 8192) [ 0.159259] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.159321] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.159564] NET: Registered protocol family 1 [ 0.160037] RPC: Registered named UNIX socket transport module. [ 0.160061] RPC: Registered udp transport module. [ 0.160080] RPC: Registered tcp transport module. [ 0.160099] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.161405] NOHZ: local_softirq_pending 80 [ 0.161645] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available [ 0.164347] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.172250] FS-Cache: Netfs 'nfs' registered for caching [ 0.172866] NFS: Registering the id_resolver key type [ 0.172914] Key type id_resolver registered [ 0.172934] Key type id_legacy registered [ 0.172963] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.174895] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.175051] io scheduler noop registered [ 0.175073] io scheduler deadline registered (default) [ 0.175361] io scheduler cfq registered [ 0.175383] io scheduler mq-deadline registered [ 0.175403] io scheduler kyber registered [ 0.177671] BCM2708FB: allocated DMA memory fad00000 [ 0.177715] BCM2708FB: allocated DMA channel 0 @ bb813000 [ 0.186248] Console: switching to colour frame buffer device 82x26 [ 0.194607] bcm2835-rng 3f104000.rng: hwrng registered [ 0.197065] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 0.202217] vc-sm: Videocore shared memory driver [ 0.204804] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000 [ 0.218927] brd: module loaded [ 0.229745] loop: module loaded [ 0.232072] Loading iSCSI transport class v2.0-870. [ 0.235039] libphy: Fixed MDIO Bus: probed [ 0.237410] usbcore: registered new interface driver lan78xx [ 0.239741] usbcore: registered new interface driver smsc95xx [ 0.241933] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.271990] dwc_otg 3f980000.usb: base=0xf0980000 [ 0.401386] NOHZ: local_softirq_pending 80 [ 0.421386] NOHZ: local_softirq_pending 80 [ 0.441385] NOHZ: local_softirq_pending 80 [ 0.461386] NOHZ: local_softirq_pending 80 [ 0.474396] Core Release: 2.80a [ 0.476410] Setting default values for core params [ 0.478445] Finished setting default values for core params [ 0.680698] Using Buffer DMA mode [ 0.682639] Periodic Transfer Interrupt Enhancement - disabled [ 0.684567] Multiprocessor Interrupt Enhancement - disabled [ 0.686497] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 0.688358] Dedicated Tx FIFOs mode [ 0.690446] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xbad14000 dma = 0xfad14000 len=9024 [ 0.694318] FIQ FSM acceleration enabled for : Non-periodic Split Transactions Periodic Split Transactions High-Speed Isochronous Endpoints Interrupt/Control Split Transaction hack enabled [ 0.704010] dwc_otg: Microframe scheduler enabled [ 0.704066] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805e96c0 [ 0.706082] WARN::hcd_init_fiq:460: FIQ ASM at 0x805e9a28 length 36 [ 0.708076] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000 [ 0.710178] dwc_otg 3f980000.usb: DWC OTG Controller [ 0.712368] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1 [ 0.714686] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000 [ 0.717003] Init: Port Power? op_state=1 [ 0.719254] Init: Power Port (0) [ 0.721650] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 0.723959] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.726256] usb usb1: Product: DWC OTG Controller [ 0.728499] usb usb1: Manufacturer: Linux 4.14.70-v7+ dwc_otg_hcd [ 0.730772] usb usb1: SerialNumber: 3f980000.usb [ 0.733644] hub 1-0:1.0: USB hub found [ 0.735851] hub 1-0:1.0: 1 port detected [ 0.738429] dwc_otg: FIQ enabled [ 0.738434] dwc_otg: NAK holdoff enabled [ 0.738439] dwc_otg: FIQ split-transaction FSM enabled [ 0.738449] Module dwc_common_port init [ 0.738695] usbcore: registered new interface driver usb-storage [ 0.740978] mousedev: PS/2 mouse device common for all mice [ 0.743216] IR NEC protocol handler initialized [ 0.745385] IR RC5(x/sz) protocol handler initialized [ 0.747588] IR RC6 protocol handler initialized [ 0.749761] IR JVC protocol handler initialized [ 0.751853] IR Sony protocol handler initialized [ 0.753944] IR SANYO protocol handler initialized [ 0.756036] IR Sharp protocol handler initialized [ 0.758026] IR MCE Keyboard/mouse protocol handler initialized [ 0.760052] IR XMP protocol handler initialized [ 0.762728] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer [ 0.765073] bcm2835-cpufreq: min=600000 max=1400000 [ 0.767523] sdhci: Secure Digital Host Controller Interface driver [ 0.769650] sdhci: Copyright(c) Pierre Ossman [ 0.772108] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe [ 0.774585] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe [ 0.776876] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.780480] ledtrig-cpu: registered to indicate activity on CPUs [ 0.782898] hidraw: raw HID events driver (C) Jiri Kosina [ 0.785363] usbcore: registered new interface driver usbhid [ 0.787671] usbhid: USB HID core driver [ 0.790511] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
[ 0.803017] [vc_sm_connected_init]: end - returning 0
[ 0.805943] Initializing XFRM netlink socket
[ 0.808325] NET: Registered protocol family 17
[ 0.810779] Key type dns_resolver registered
[ 0.813582] Registering SWP/SWPB emulation handler
[ 0.816614] registered taskstats version 1
[ 0.824955] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 0.827519] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 0.834276] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 0.836816] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ 0.892013] sdhost: log_buf @ bad13000 (fad13000)
[ 0.933043] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 0.937029] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.940892] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.945878] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 0.951513] Indeed it is in host mode hprt0 = 00021501
[ 1.027731] random: fast init done
[ 1.041434] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.044528] of_cfs_init
[ 1.046615] of_cfs_init: OK
[ 1.049049] Waiting for root device PARTUUID=d82c22c1-b686-43fe-9749-68ea4720ac83...
[ 1.071387] NOHZ: local_softirq_pending 80
[ 1.098297] mmc1: new high speed SDIO card at address 0001
[ 1.138400] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.145568] mmc0: new high speed SDHC card at address 1388
[ 1.148276] mmcblk0: mmc0:1388 USD00 29.5 GiB
[ 1.151857] mmcblk0: p1 p2
[ 1.161436] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.163773] Indeed it is in host mode hprt0 = 00001101
[ 1.401653] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[ 1.403937] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.406832] hub 1-1:1.0: USB hub found
[ 1.409294] hub 1-1:1.0: 4 ports detected
[ 1.521406] NOHZ: local_softirq_pending 82
[ 1.523812] NOHZ: local_softirq_pending 82
[ 1.526125] NOHZ: local_softirq_pending 82
[ 1.528343] NOHZ: local_softirq_pending 82
[ 1.731422] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.861609] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[ 1.863889] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.866557] hub 1-1.1:1.0: USB hub found
[ 1.868797] hub 1-1.1:1.0: 3 ports detected
[ 2.071470] Under-voltage detected! (0x00050005)
[ 2.183703] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[ 2.571412] usb 1-1.1: reset high-speed USB device number 3 using dwc_otg
[ 2.821613] usb 1-1.1: USB disconnect, device number 3
[ 2.921413] usb 1-1.1: new high-speed USB device number 4 using dwc_otg
[ 3.051619] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[ 3.053742] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.056293] hub 1-1.1:1.0: USB hub found
[ 3.058365] hub 1-1.1:1.0: 3 ports detected
[ 3.151420] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[ 3.362279] usb 1-1.2: New USB device found, idVendor=1058, idProduct=25a2
[ 3.364376] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.366494] usb 1-1.2: Product: Elements 25A2
[ 3.368652] usb 1-1.2: Manufacturer: Western Digital
[ 3.370884] usb 1-1.2: SerialNumber: 57585631413538304A4C3558
[ 3.373774] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 3.376594] scsi host0: usb-storage 1-1.2:1.0
[ 3.931414] usb 1-1.1.1: new high-speed USB device number 6 using dwc_otg
[ 4.061761] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800
[ 4.064152] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.336884] libphy: lan78xx-mdiobus: probed
[ 4.391984] scsi 0:0:0:0: Direct-Access WD Elements 25A2 1021 PQ: 0 ANSI: 6
[ 4.398672] sd 0:0:0:0: [sda] Spinning up disk...
[ 5.431408] .
[ 6.471408] .
[ 7.511406] .
[ 7.513791] ready
[ 7.518228] sd 0:0:0:0: [sda] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 7.522986] sd 0:0:0:0: [sda] Write Protect is off
[ 7.525279] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[ 7.525603] sd 0:0:0:0: [sda] No Caching mode page found
[ 7.527835] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 7.563766] sda: sda1
[ 7.567598] sd 0:0:0:0: [sda] Attached SCSI disk
[ 7.805899] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[ 7.808235] EXT4-fs (sda1): write access will be enabled during recovery
[ 8.311464] Voltage normalised (0x00000000)
[ 9.376310] random: crng init done
[ 12.471465] Under-voltage detected! (0x00050005)
[ 20.791468] Voltage normalised (0x00000000)
[ 22.819313] EXT4-fs (sda1): recovery complete
[ 22.829391] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 22.833632] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[ 22.901122] devtmpfs: mounted
[ 22.906358] Freeing unused kernel memory: 1024K
[ 23.850413] systemd[1]: System time before build time, advancing clock.
[ 24.197935] NET: Registered protocol family 10
[ 24.201823] Segment Routing with IPv6
[ 24.247749] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 24.340583] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 24.349004] systemd[1]: Detected architecture arm.
[ 24.398398] systemd[1]: Set hostname to
Maybe the RPi is too weak to power the 2TB ext hdd?
I have an output of 5V 3A Power supply
Should I consider getting a SSD HD instead? They are probably more power efficient
Ok, so I ordered a powered USB hub after checking out some Raspberry Pi forums. Lets see if some more external power solves the reliability issue of the HDD.
I will keep this issue updated on my progress so that other Pi node operators can learn from my potholes.
So I think we cracked this one on reddit.. seemed like we should set max_usb_current=1 in boot config file to ensure enough current gets supplied to the HDD
Still syncing stable now..
Very good find :)
Kudos to reddit user u/shermand100 for amazing perseverance and patience with an unusual symptoms and to @glv2 for the dmesg suggestion.
It all culminated into a very good learning.
And to you @moneromooo-monero for always being involved and helping out too. My learning curve has exploded since I started following your work.
Can you give a command that adds that setting to the boot file (ie, echo "max_usb_current=1" >> /etc/someconfig") which I can add to the README ?
I never even knew that was possible. Can't imagine it's good for the longevity of the Pi. Simple low-tech solution is just to get a USB Y-cable, and plug an external USB power supply in to give the drive enough juice.
@moneromooo-monero I ran command:
sudo nano /boot/config.txt
and then I added the setting to the config file:
max_usb_current=1
@hyc we discussed the Y splitter cable and powered usb hub alternatives as well on r/pinode TL;DR; the Y cable is not ideal and now not even the extra powered usb hub is really needed anymore it seems.
The pi is now running stable for a day already at temp=68.8'C which is below the max threshold of 80'C even without an extra cooling fan which I think is badass :P
Thanks, it's now in https://github.com/monero-project/monero/pull/4553
Relying on the Pi to supply enough power by itself is a mistake. If there's extra CPU or network activity, it won't have enough juice for your HDD.
Since my last post I received the powered usb hub. I will plug that into the Pi for at least the period of catching up the initial sync. It can only help carry the load indeed.
Hi guys
After having deleted and re-started downloading the blockchain a week ago I started seeing errors again:
I have been following this guide for the setup.
I have used this refined command to launch monerod with more manageable block-sync-size:
It was running very stable up to this point. I have a 2Tb external hdd connected to the pi. Is the mapping correc?
produces:
Is the database corrupted again?