Bitcoin Forum
May 28, 2024, 10:01:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind crashing on raspberry  (Read 1423 times)
tcpdump (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
August 14, 2015, 01:08:38 PM
 #1

Hi all, i am trying to run bitcoin fullnode in RaspberryPi 2 model B. But when I run bitcoind to syncronize blockchain  it fails after 200K downloaded blocks every time. In db.log:
Quote
__db_meta_setup: /home/storage/chain/wallet.dat: unexpected file type or format
when I try "getinfo" command, and
Quote
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
__db_meta_setup: /home/storage/chain/wallet.dat: unexpected file type or format
when I try to stop&start daemon
last lines in debug.log is :
Quote
2015-08-14 12:40:11 UpdateTip: new best=0000000000000036287f1d1a4db901076eb338a343c9b6f587e42d02                                                                                                     eb08c1ac  height=193743  log2_work=68.532392  tx=5928891  date=2012-08-13 19:57:49 progress=0.03                                                                                                     2217  cache=41.4MiB(119230tx)
2015-08-14 12:40:11 msghand thread interrupt
2015-08-14 12:40:11 Shutdown: In progress...
2015-08-14 12:40:11 StopNode()
when it works and
Quote
2015-08-14 12:41:58 Using wallet wallet.dat
2015-08-14 12:41:58 init message: Verifying wallet...
2015-08-14 12:41:58 CDBEnv::Open: LogDir=/home/storage/chain/database ErrorFile=/home/storage/ch                                                                                                     ain/db.log
2015-08-14 12:41:58 Failed to rename wallet.dat to wallet.1439556118.bak
2015-08-14 12:41:58 Error:
2015-08-14 12:41:58 Shutdown: In progress...
2015-08-14 12:41:58 scheduler thread interrupt
2015-08-14 12:41:58 StopNode()
2015-08-14 12:41:58 Shutdown: done
when I try to restart.
Can somebody help me with this problem?

achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
August 14, 2015, 06:52:43 PM
 #2

Looks like you have a problem with the wallet file. If you don't have any bitcoin one it yet and haven't given out any addresses from it, then just delete the file and you will get a new wallet. Otherwise, you will need to use the salvagewallet command.

unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1009


View Profile
August 15, 2015, 12:24:35 PM
 #3

If the issue is indeed in the wallet file and if you are simply running a full node, you can disable wallet support altogether, using the -disablewallet command
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
August 20, 2015, 12:42:15 AM
 #4

silly question if it keeps failing at the same point.... is there enough room? dont forget most images for PI are based on 1 or 2 GB sd cards and partitions need to be changed

Xialla
Legendary
*
Offline Offline

Activity: 1036
Merit: 1000


/dev/null


View Profile
August 22, 2015, 12:57:17 PM
 #5

where is location of blockchain folder? somewhere on SD card or on some external USB storage/remote location.

I stopped using RPi because of frequent filesystem corruptions and it seems that this is the case. if you are running some applications require lot of writes, I bet that corruption is the issue.

try:

tune2fs -c 3 /dev/mmcblkp** (some number for your card) - triggers FS check after each 3 reboots.

open /etc/default/rcS and add/edit line "FSCKFIX=yes" for auto correction.

but anyway, FS corruption on RPi is not anything new or rare...sadly.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!