I am running bitcoind in Windows (interactively) and pressed "control c". The following error was displayed:

EnvShutdown exception: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)
  • Is this a bogus error, or could it lead to serious issues?

  • Did this delay my restart time?

This is the output after I restarted bitcoind:

Bitcoin version v0.7.1-beta (2012-10-09 13:22:09 -0400)
Using OpenSSL version OpenSSL 1.0.1c 10 May 2012
Startup time: 12/09/12 02:35:45
Default data directory C:\Users\Administrator\AppData\Roaming\Bitcoin
Used data directory C:\Users\Administrator\AppData\Roaming\Bitcoin
dbenv.open LogDir=C:\Users\Administrator\AppData\Roaming\Bitcoin\database 

Bound to [::]:8333
Bound to
Loading block index...
LoadBlockIndex(): hashBestChain=0000000000000451ad20  height=193797  date=08/14/12 03:38:39
Verifying last 2500 blocks at level 1
 block index          158518ms
Loading wallet...
nFileVersion = 70100
 wallet                  858ms
Rescanning last 3 blocks (from block 193794)...
 rescan                   47ms
Loading addresses...
Loaded 12371 addresses from peers.dat  78ms
RandAddSeed() 164540 bytes
mapBlockIndex.size() = 193799
nBestHeight = 193797
setKeyPool.size() = 100
mapWallet.size() = 0
mapAddressBook.size() = 1
Done loading
send version message: version 60002, blocks=193797, us=, them=, peer=
sending: version (100 bytes)
ThreadRPCServer started

1 Answer 1


Send the RPC Stop command:

cd "C:\Program Files (x86)\Bitcoin\daemon"
bitcoind stop


ThreadRPCServer method=stop
blkindex.dat refcount=0
blkindex.dat checkpoint
ThreadSocketHandler exited
blkindex.dat detach
ThreadMessageHandler exited
connection timeout
ThreadOpenConnections exited
ThreadDumpAddress exited

blkindex.dat closed
DBFlush(false) ended          219780ms
Flushed 12513 addresses to peers.dat  280ms
DBFlush(true) ended               0ms
Bitcoin exited

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.