Having to resync Windows Reddcoin wallet

I’m not sure what happened for me to have to resync, but there was some type of issue with my wallet when i awoke this morning to where it wasn’t staking, so i exited the wallet just to see if restarting it would change anything. Well, the wallet reopened with an error of some sort, so i did some googling and basically came to the conclusion that i had to redownload the blockchain, and so i’ve started that process, but this time to conserve time i decided to use the bootstrap.dat file and that seems to be going well and i can definitely tell a difference in the speed of the process, but now my only question is when will i need to add my old wallet.dat to the reddcoin folder? also, why is it necessary to redownload the entire blockchain? the blockchain was fine as recently as when i staked at 1:00 A.M. E.S.T, so why isn’t their a way to verify the most up to date block before it was corrupted and resync from that point? i apologize for my ignorance, this is all pretty new to me and i’m definitely ignorant compared to the majority of this community. I’ve been a part of the community since June of last year and have read the majority of things posted, but i haven’t made any posts except one other recently. Thanks in advance for any replies!

without knowing what the error was its hard to tell what went wrong. when the wallet has finished syncing close the wallet, replace your wallet.dat in the reddcoin folder and continue your staking :slight_smile:

1 Like

Okay, thanks.

So after the blockchain fully synced, I moved the new wallet.dat to the recycle bin and moved my old wallet.dat to the reddcoin folder, and yes, i made sure i closed and exited from the wallet first, and now these logs appeared in the db.log and i’m still having trouble with the wallet. it’s taking a lot of time to even open and it freezes when opening. Any help would be appreciated.

PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
File handles still open at environment close
Open file handle: C:\Documents and Settings\Colby\Application Data\Reddcoin\database\log.0000000001
PANIC: fatal region error detected; run recovery
file wallet.dat has LSN 1/8526, past end of log at 1/2357
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
file wallet.dat has LSN 1/8526, past end of log at 1/2357
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
DB_ENV->log_flush: LSN of 1/8526 past current end-of-log of 1/2357
Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
wallet.dat: unable to flush page: 10
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
File handles still open at environment close
Open file handle: C:\Documents and Settings\Colby\Application Data\Reddcoin\database\log.0000000001
PANIC: fatal region error detected; run recovery
file wallet.dat has LSN 1/8526, past end of log at 1/2984
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment

this is in the debug log

EXCEPTION: St13runtime_error
CDB() : can’t open database file wallet.dat, error -30974
C:\Program Files\Reddcoin\reddcoin-qt.exe in Runaway exception

2015-04-05 16:59:23 EnvShutdown exception: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)

did it work with the new wallet it created before you replaced yours?
Colby said:

CDB() : can’t open database file wallet.dat, error -30974

sound like your wallet maybe corrupt
try starting the wallet with the -salvagewallet command

1 Like

i don’t think the wallet.dat had any issues before my wallet messed up before i resynced with the bockchain. i kept the debug log from before i restarted the synchronization and this is what came up. the part at the bottom of the log that says “ACCEPTED” etc, that happens probably a thousand times in a row, so i’m not sure what was happening or why. then after it tried a thousand + times t accept it, it says…
2015-04-03 19:13:40 ProcessBlock: ACCEPTED
2015-04-03 19:13:40 CheckSync: accepted? b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc
2015-04-03 19:13:40 opencon thread interrupt
2015-04-03 19:13:40 addcon thread interrupt
2015-04-03 19:13:40 dumpaddr thread stop
2015-04-03 19:13:40 net thread interrupt
2015-04-03 19:13:40 ComputeNextStakeModifier: new modifier=0x1cfdfd62aac9066d time=2014-02-04 18:48:50 UTC nHeight=3150
2015-04-03 19:13:40 msghand thread interrupt
2015-04-03 19:13:40 Shutdown : In progress…
2015-04-03 19:13:40 Flush(false)
2015-04-03 19:13:40 wallet.dat refcount=0
2015-04-03 19:13:40 wallet.dat checkpoint
2015-04-03 19:13:40 wallet.dat detach
2015-04-03 19:13:40 wallet.dat closed
2015-04-03 19:13:40 DBFlush(false) ended 141ms
2015-04-03 19:13:40 StopNode()
2015-04-03 19:13:40 StakeMiner terminated
2015-04-03 19:13:40 UPNP_DeletePortMapping() returned : 0
2015-04-03 19:13:40 upnp thread interrupt
2015-04-03 19:13:40 Flushed 8755 addresses to peers.dat 172ms
2015-04-03 19:13:40 Committing 4042 changed transactions to coin database…
2015-04-03 19:13:41 Flush(true)
2015-04-03 19:13:41 wallet.dat refcount=0
2015-04-03 19:13:41 wallet.dat checkpoint
2015-04-03 19:13:41 wallet.dat detach
2015-04-03 19:13:41 wallet.dat closed
2015-04-03 19:13:41 DBFlush(true) ended 157ms
2015-04-03 19:13:41 Shutdown : done

so these logs are basically in reverse order. there was no mention of the wallet.dat being messed up at that point, but the only thing i could think of was not adding the wallet.dat to the reddcoin folder BEFORE starting it up for the fresh sync, so i’m currently in the process of trying that. does anyone else get stuck on block 369000? i got stuck on it the second and third time i’ve resynced my wallet.

2015-04-03 19:12:36 Reddcoin version v1.4.1.0-gecb564a-beta ()
2015-04-03 19:12:36 Using OpenSSL version OpenSSL 1.0.1h 5 Jun 2014
2015-04-03 19:12:36 Default data directory C:\Documents and Settings\Colby\Application Data\Reddcoin
2015-04-03 19:12:36 Using data directory C:\Documents and Settings\Colby\Application Data\Reddcoin
2015-04-03 19:12:36 Using at most 125 connections (2048 file descriptors available)
2015-04-03 19:12:36 Using 2 threads for script verification
2015-04-03 19:12:36 scrypt: using scrypt-sse2 as detected.
2015-04-03 19:12:37 init message: Verifying wallet…
2015-04-03 19:12:37 dbenv.open LogDir=C:\Documents and Settings\Colby\Application Data\Reddcoin\database ErrorFile=C:\Documents and Settings\Colby\Application Data\Reddcoin\db.log
2015-04-03 19:12:37 Error: Couldn’t open socket for incoming connections (socket returned error 10047)
2015-04-03 19:12:37 Bound to 0.0.0.0:45444
2015-04-03 19:12:37 init message: Loading block index…
2015-04-03 19:12:37 Opening LevelDB in C:\Documents and Settings\Colby\Application Data\Reddcoin\blocks\index
2015-04-03 19:12:37 Opened LevelDB successfully
2015-04-03 19:12:37 Opening LevelDB in C:\Documents and Settings\Colby\Application Data\Reddcoin\chainstate
2015-04-03 19:12:37 Opened LevelDB successfully
2015-04-03 19:12:37 LoadBlockIndexDB(): last block file = 0
2015-04-03 19:12:37 LoadBlockIndexDB(): transaction index enabled
2015-04-03 19:12:37 Opening LevelDB in C:\Documents and Settings\Colby\Application Data\Reddcoin\txleveldb
2015-04-03 19:12:37 Opened LevelDB successfully
2015-04-03 19:12:37 ResetSyncCheckpoint: pending for sync-checkpoint 0b7bb56edfae2f2f1e71ac39daab16614fccf1a1e02c58d4169521d76d880b42
2015-04-03 19:12:37 ResetSyncCheckpoint: sync-checkpoint reset to hashGenesisBlock
2015-04-03 19:12:37 LoadBlockIndex() : synchronized checkpoint b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc
2015-04-03 19:12:37 Initializing databases…
2015-04-03 19:12:37 b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc
2015-04-03 19:12:37 b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc
2015-04-03 19:12:37 b502bc1dc42b07092b9187e92f70e32f9a53247feae16d821bebffa916af79ff
2015-04-03 19:12:37 CBlock(hash=b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc, input=010000000000000000000000000000000000000000000000000000000000000000000000ff79af16a9ffeb1b826de1ea7f24539a2fe3702fe987912b09072bc41dbc02b5d0fedd52f0ff0f1eb35a440d, PoW=e33d5655141f69c9349b0ca071ade1bc31afb27230df1c84770464843ff19d46, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=b502bc1dc42b07092b9187e92f70e32f9a53247feae16d821bebffa916af79ff, nTime=1390280400, nBits=1e0ffff0, nNonce=222583475, vtx=1, vchBlockSig=)
2015-04-03 19:12:37 Coinbase(hash=b502bc1dc42b07092b9187e92f70e32f9a53247feae16d821bebffa916af79ff, nTime=1390280400, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d0104284a616e75617279203231737420323031342077617320737563682061206e696365206461792e2e2e)
CTxOut(nValue=10000.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: b502bc1dc42b07092b9187e92f70e32f9a53247feae16d821bebffa916af79ff
2015-04-03 19:12:37 Pre-allocating up to position 0x1000000 in blk00000.dat
2015-04-03 19:12:37 SetBestChain: new best=b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc height=0 log2_work=20.000022 tx=1 date=2014-01-21 05:00:00 progress=0.000000
2015-04-03 19:12:37 init message: Verifying blocks…
2015-04-03 19:12:37 block index 141ms
2015-04-03 19:12:37 init message: Loading wallet…
2015-04-03 19:12:38 nFileVersion = 1040100
2015-04-03 19:12:38 wallet 1125ms
2015-04-03 19:12:38 init message: Loading addresses…
2015-04-03 19:12:38 ERROR: CAddrman::Read() : open failed
2015-04-03 19:12:38 Invalid or missing peers.dat; recreating
2015-04-03 19:12:38 Loaded 0 addresses from peers.dat 0ms
2015-04-03 19:12:39 RandAddSeed() 163004 bytes
2015-04-03 19:12:39 mapBlockIndex.size() = 1
2015-04-03 19:12:39 nBestHeight = 0
2015-04-03 19:12:39 setKeyPool.size() = 101
2015-04-03 19:12:39 mapWallet.size() = 7
2015-04-03 19:12:39 mapAddressBook.size() = 4
2015-04-03 19:12:39 addcon thread start
2015-04-03 19:12:39 upnp thread start
2015-04-03 19:12:39 StakeMiner started
2015-04-03 19:12:39 opencon thread start
2015-04-03 19:12:39 net thread start
2015-04-03 19:12:39 dnsseed thread start
2015-04-03 19:12:39 Loading addresses from DNS seeds (could take a while)
2015-04-03 19:12:39 dumpaddr thread start
2015-04-03 19:12:39 init message: Done loading
2015-04-03 19:12:39 msghand thread start
2015-04-03 19:12:39 AddToWallet 304397d8344d7d8d59b24057286a6c2f602cb35674398084dedc3e4913c46302
2015-04-03 19:12:39 AddToWallet d18c06871a0ee403d07915a8ebc8430da4a4accc91d9936c30a14dcfe83edbf0
2015-04-03 19:12:39 AddToWallet fad8815e47a0101944c566744a56eb083189f886f17c09f50c20471d297e3bb4
2015-04-03 19:12:39 AddToWallet fefceb51c960a0013bf3a64526b41b9cce72ebc31038f92e5f8ae77fd9a79554
2015-04-03 19:12:39 refreshWallet
2015-04-03 19:12:39 UPnP: ExternalIPAddress = 50.142.3.11
2015-04-03 19:12:39 AddLocal(50.142.3.11:45444,3)
2015-04-03 19:12:39 UPnP Port Mapping successful.
2015-04-03 19:12:39 Added 27 addresses from 73.132.27.252: 0 tried, 27 new
2015-04-03 19:12:39 27 addresses found from DNS seeds
2015-04-03 19:12:39 dnsseed thread exit
2015-04-03 19:12:39 GetMyExternalIP() received [50.142.3.11] 50.142.3.11:0
2015-04-03 19:12:39 GetMyExternalIP() returned 50.142.3.11
2015-04-03 19:12:39 AddLocal(50.142.3.11:45444,4)
2015-04-03 19:12:39 connected 128.199.137.187:45444
2015-04-03 19:12:39 send version message: version 80000, blocks=0, us=50.142.3.11:45444, them=128.199.137.187:45444, peer=128.199.137.187:45444
2015-04-03 19:12:40 Added time data, samples 2, offset -1 (+0 minutes)
2015-04-03 19:12:40 Moving 128.199.137.187:45444 to tried
2015-04-03 19:12:40 receive version message: /Reddcoin:1.4.1/: version 80000, blocks=611556, us=50.142.3.11:1553, them=128.199.137.187:45444, peer=128.199.137.187:45444
2015-04-03 19:12:40 checkpoint message received
2015-04-03 19:12:40 CSyncCheckpoint::CheckSignature() : successfully verified signature
2015-04-03 19:12:40 ProcessSyncCheckpoint: pending for sync-checkpoint 576ecb2a540e3fd931d0a0aac64eccab766c6f4d92f55fa4e4a15d5bb6cbfa3c
2015-04-03 19:12:41 connected 176.9.65.41:45444
2015-04-03 19:12:41 send version message: version 80000, blocks=0, us=50.142.3.11:45444, them=176.9.65.41:45444, peer=176.9.65.41:45444
2015-04-03 19:12:41 Added time data, samples 3, offset -1 (+0 minutes)
2015-04-03 19:12:41 Moving 176.9.65.41:45444 to tried
2015-04-03 19:12:41 receive version message: /Reddcoin:1.4.0/: version 80000, blocks=611556, us=50.142.3.11:1554, them=176.9.65.41:45444, peer=176.9.65.41:45444
2015-04-03 19:12:41 Added 999 addresses from 128.199.137.187: 2 tried, 1024 new
2015-04-03 19:12:41 checkpoint message received
2015-04-03 19:12:41 CSyncCheckpoint::CheckSignature() : successfully verified signature
2015-04-03 19:12:41 ProcessSyncCheckpoint: pending for sync-checkpoint 576ecb2a540e3fd931d0a0aac64eccab766c6f4d92f55fa4e4a15d5bb6cbfa3c
2015-04-03 19:12:41 Added 995 addresses from 128.199.137.187: 2 tried, 1875 new
2015-04-03 19:12:41 connected 217.79.89.167:45444
2015-04-03 19:12:41 send version message: version 80000, blocks=0, us=50.142.3.11:45444, them=217.79.89.167:45444, peer=217.79.89.167:45444
2015-04-03 19:12:41 Added 497 addresses from 128.199.137.187: 2 tried, 1989 new
2015-04-03 19:12:41 CheckSync: accepted? b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc
2015-04-03 19:12:41 Pre-allocating up to position 0x100000 in rev00000.dat
2015-04-03 19:12:41 SetBestChain: new best=9f1f5a21034ef45bf096da7a1ede1d9cc2f6d2e80013781969fc01d8acdcb0e2 height=1 log2_work=21.000012 tx=2 date=2014-01-26 21:31:34 progress=0.000000
2015-04-03 19:12:41 ProcessBlock: ACCEPTED
2015-04-03 19:12:41 CheckSync: accepted? b868e0d95a3c3c0e0dadc67ee587aaf9dc8acbf99e3b4b3110fad4eb74c1decc
2015-04-03 19:12:41 ComputeNextStakeModifier: new modifier=0x0000000000000000 time=2014-01-26 21:31:34 UTC nHeight=2
2015-04-03 19:12:41 SetBestChain: new best=d73a2d7c65225db1b982ea25d8be5bd43281b2a7b407af768fa42d7663134593 height=2 log2_work=21.584971 tx=3 date=2014-01-26 21:43:38 progress=0.000000
2015-04-03 19:12:41 ProcessBlock: ACCEPTED

so the blockchain is now resynced and i’ve since staked a few times and everything seems to be working well. Thank you for your replies!

1 Like