Bitcoin Forum
December 14, 2024, 07:49:29 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Client hangs at "Bitcoin Core is shutting down..." window  (Read 5340 times)
schnauzr (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
April 29, 2014, 11:27:37 PM
Last edit: April 30, 2014, 02:28:31 AM by schnauzr
 #1

Currently running v0.9.1.0-g026a939-beta from the bitcoin ppa repository on Ubuntu 14.04 LTS.  However, this was the exact same behavior with the standard Linux tgz bin file from bitcoin.org (which I tried first, on another installation).

Fresh installation of Ubuntu (running on VMWare Player), and fresh installation of the core client.  I let it do its massive day-long, multi GB update to sync the blockchain (twice now!) and after it's all done, and letting it rest for a few hours 'just in case', when I go to exit the client, the "Bitcoin Core is shutting down..." window appears and doesn't go away.

Has anyone else experienced this?  Any way I can get this window to go away and the client to shut down cleanly?  There is nothing in db.log and here's the last part of debug.log

2014-04-29 21:00:37 Requesting shutdown
2014-04-29 21:00:37 Running Shutdown in thread
2014-04-29 21:00:38 addcon thread interrupt
2014-04-29 21:00:38 net thread interrupt
2014-04-29 21:00:38 msghand thread interrupt
2014-04-29 21:00:38 opencon thread interrupt
2014-04-29 21:00:38 dumpaddr thread stop

Thanks

**EDIT** gave up waiting and force closed it.. an additional entry showed up in debug.log

2014-04-30 01:57:15 Stopping thread
thezerg
Legendary
*
Offline Offline

Activity: 1246
Merit: 1010


View Profile
May 01, 2014, 02:16:21 AM
 #2

yes happens to me periodically...
Gyfts
Legendary
*
Offline Offline

Activity: 2856
Merit: 1519


View Profile
May 01, 2014, 04:02:01 AM
 #3

I've had this happen to me every so often.
schnauzr (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
May 02, 2014, 01:21:12 AM
 #4

Switched from 64 to 32 bit Ubuntu 14.04 just in case (it was running a bit slow as a VM on my host) but it did the same thing.  Can I just tar up the .bitcoin folder and move it to another machine?  I want to keep testing with other Linux distros but syncing the blockchain all day is brutal.
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
May 02, 2014, 01:50:06 AM
 #5

You can copy the blockchain you already have rather than resyncing every time.  Just copy the "blocks" and "chainstate" folders.  They're in the ~/.bitcoin directory. Wink

schnauzr (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
May 02, 2014, 01:53:26 AM
 #6

You can copy the blockchain you already have rather than resyncing every time.  Just copy the "blocks" and "chainstate" folders.  They're in the ~/.bitcoin directory. Wink
Thanks much for the tip!  This literally will save days of waiting Wink
monsterbitty
Full Member
***
Offline Offline

Activity: 122
Merit: 100


View Profile
May 02, 2014, 02:02:15 AM
 #7

You can copy the blockchain you already have rather than resyncing every time.  Just copy the "blocks" and "chainstate" folders.  They're in the ~/.bitcoin directory. Wink

+1. This should solve the problem and saves a lot of time.
schnauzr (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
May 02, 2014, 09:09:04 PM
 #8

Ok this might be a dumb question, but when copying the "blocks" and "chainstate" folders to a machine that has never had bitcoin installed, should I manually create the ~/.bitcoin folder on the target, then install the bitcoin-qt client, run it, and allow it to create the rest of the files it needs?  I recall when you first launch bitcoin-qt it knows it hasn't been run before and asks if it should create a structure for you.  I just want to make sure nothing gets overwritten after launch.

**EDIT** is there any reason why I shouldn't just tar the entire ~/.bitcoin folder and plop it onto another computer?  I was thinking that way I would have a complete copy of everything (blockchain and wallet) and not have to worry.

Thanks!
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
May 02, 2014, 10:57:19 PM
 #9

Ok this might be a dumb question, but when copying the "blocks" and "chainstate" folders to a machine that has never had bitcoin installed, should I manually create the ~/.bitcoin folder on the target, then install the bitcoin-qt client, run it, and allow it to create the rest of the files it needs?  I recall when you first launch bitcoin-qt it knows it hasn't been run before and asks if it should create a structure for you.  I just want to make sure nothing gets overwritten after launch.
I'm not saying that this is the only way, but I always just install bitcoin-qt, run it once, shut it down, and then copy the "blocks" and "chainstate" folders.  When it askes to merge folders I say yes, then let it replace any duplicate files.  I'm not sure what would happen if you did it your way.

**EDIT** is there any reason why I shouldn't just tar the entire ~/.bitcoin folder and plop it onto another computer?  I was thinking that way I would have a complete copy of everything (blockchain and wallet) and not have to worry.

Thanks!
The only issue I see there is the duplicate wallet.  If you use a wallet in two places with bitcoin-qt it will eventually "split".  When you generate a new recieving address or send a transaction bitcion-qt uses a new address.  So if you create a recieving address on one instance, and then send coins to it, then only that instance of the wallet will have access to those coins.  This is partially remedied by the use of a "keypool", which is a bunch of pregenerated address stored in the wallet (default size is 100).  However, the wallets will still "split" after the 100 address in the keypool have been used.

schnauzr (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
May 03, 2014, 05:13:48 PM
 #10

Alright great, thank you for the additional info, very helpful!
Screech
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 03, 2015, 06:35:06 PM
 #11

With each new release of Bitcoin-QT, the prospect that it will leave the block list damaged has increased.  I appreciate all the recommendations for how we can manually piece together the remnants of a forced shutdown (kill) of the BitCoin-Qt process.  But perhaps what we really need is some protection so that the next execution of BitCoin-Qt will figure out what is good and what is not and reinstate itself.  Too often I've run into Bitcoin-QT going CPU crazy and having to be put down.  Can't it leave some checkpoints to save the user from having to fix it on his own?
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!