Bitcoin Forum
May 17, 2024, 04:24:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Did I just lose my coins because I restarted my mac while Qt v0.8.4 was syncing?  (Read 2316 times)
MstrMynd (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 12, 2015, 08:29:34 AM
 #1

So I forced a shutdown on my mac running 10.10.4 Yosemite, and when I restarted Bitcoin-Qt v0.8.4 I get:

"System Error: Database Corrupted". I then click OK, and the program "quits unexpectedly"

After googling a bit, I find what seems to be a simple fix.  I goto /library/application support/bitcoin/blocks
renamed the "index" folder to "index1", and restarted bitcoin-qt.

This seems to help.  The program opens without the error message and begins reindexing.  It shows a balance of 0 BTC, but an unconfirmed balance equal to my original balance.

However, now I see the message "Warning displayed transactions may not be correct, you may need to upgrade or other nodes may need to upgrade".  I let it sit for 5 days straight and nothing changes.  It still reads "synchronizing with network" across the bottom, but the status bar hasn't moved.

Now I'm getting worried.

I quit the program, copy my wallet.dat file to the desktop and run this code in terminal:

open /Applications/Bitcoin-Qt.app --args -salvagewallet

Now everything is the same, but even my UNCONFIRMED balance shows as zero!

Any help would be appreciated.  I never thought bitcoin was this fragile.
altcoinhosting2
Member
**
Offline Offline

Activity: 109
Merit: 10


View Profile
August 12, 2015, 08:36:14 AM
 #2

So I forced a shutdown on my mac running 10.10.4 Yosemite, and when I restarted Bitcoin-Qt v0.8.4 I get:

"System Error: Database Corrupted". I then click OK, and the program "quits unexpectedly"

After googling a bit, I find what seems to be a simple fix.  I goto /library/application support/bitcoin/blocks
renamed the "index" folder to "index1", and restarted bitcoin-qt.

This seems to help.  The program opens without the error message and begins reindexing.  It shows a balance of 0 BTC, but an unconfirmed balance equal to my original balance.

However, now I see the message "Warning displayed transactions may not be correct, you may need to upgrade or other nodes may need to upgrade".  I let it sit for 5 days straight and nothing changes.  It still reads "synchronizing with network" across the bottom, but the status bar hasn't moved.

Now I'm getting worried.

I quit the program, copy my wallet.dat file to the desktop and run this code in terminal:

open /Applications/Bitcoin-Qt.app --args -salvagewallet

Now everything is the same, but even my UNCONFIRMED balance shows as zero!

Any help would be appreciated.  I never thought bitcoin was this fragile.

It isn't that fragile... I would suggest to save your wallet.dat, and start all over again...
Install the wallet from scratch, import your old wallet.dat, make sure you have peers (getpeerinfo). If not, wait or add some nodes (addnode).
Wait untill everything syncs (can take several days), and you should be allright...

The wallet.dat is the only really important file. It holds your keys... The only thing you can lose by starting over (BUT WITH YOUR OLD WALLET.DAT) are the comments, labels or the addresses in your adress book you made

██████████████████████▔|▔▔|      LEDGER WALLETSecond factorMalware Proof
████████████████████▔|▔▔|
██████████████████████|▔▔| ◀◀ Smartcard based Hardware Wallet - Worldwide Shipping
MstrMynd (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 12, 2015, 12:51:28 PM
 #3

Can you expand on your instructions a bit?  I don't know how to import a wallet and I'm not familiar with getpeerinfo or addnode?  Thanks so much.  I'm missing a significant number of coins at this point.
OnkelPaul
Legendary
*
Offline Offline

Activity: 1039
Merit: 1004



View Profile
August 12, 2015, 01:03:28 PM
 #4

Whatever you will try, backup your wallet.dat first!

Your client is pretty old, upgrading the client to a current version is strongly recommended (consider it mandatory). That should fix the "you may need to upgrade or other nodes may need to upgrade" warning and allow the client to catch up with the blockchain relatively quickly.
After upgrading the client and syncing it your balance should be visible again. If it does not, you should stop the client, copy the wallet.dat from your backup to the right place, and restart the client.

Onkel Paul

MstrMynd (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 12, 2015, 02:20:10 PM
 #5

I just upgraded the client to the current version, but I'm stuck with "No block source available..." for about the last hour.
OnkelPaul
Legendary
*
Offline Offline

Activity: 1039
Merit: 1004



View Profile
August 12, 2015, 02:26:55 PM
 #6

Firewall issues maybe?
I don't use Macs, so I don't know how likely it is that there are default rules that might prevent proper blockchain sync.
Have you had a look at the debug console of Bitcoin-QT? Does it provide any sort of meaningful info?

Onkel Paul

MstrMynd (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 12, 2015, 04:12:05 PM
 #7

I don't see how it could be a firewall issue.  I've been running Bitcoin-Qt for years with no problem from this same iMac.

How do I navigate to the "debug console"?  I don't see it.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
August 12, 2015, 04:23:54 PM
 #8

I don't see how it could be a firewall issue.  I've been running Bitcoin-Qt for years with no problem from this same iMac.

How do I navigate to the "debug console"?  I don't see it.
The firewall could be blocking connections to and from the program.

To get to the debug console, go to Help > Debug Console. It should tell you how many connections you have. If it has some connections, click on the Peers tab and see if the peers are actually connected. If they are connected the ping time should NOT be N/A. If it is N/A, then something is wrong.

MstrMynd (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 12, 2015, 05:43:14 PM
 #9

There are multiple nodes showing with ping times all between 101 and 135 ms
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
August 12, 2015, 07:52:24 PM
 #10

I quit the program, copy my wallet.dat file to the desktop

Did you COPY the wallet.dat to the desktop, or did you MOVE it?

If you moved it, then QT created a brand new empty wallet for you in the /library/application support/bitcoin folder and is now using that new empty wallet instead of your original wallet.  As long as you don't delete or overwrite the wallet on your desktop, you should still be able to recover the bitcoins.
philipma1957
Legendary
*
Online Online

Activity: 4130
Merit: 7886


'The right to privacy matters'


View Profile WWW
August 12, 2015, 08:36:06 PM
 #11

 @ op  how many coins are in question?


I ask because  it matters quite a bit for backups.


Mac allows  a 'perfect' clone of your  os disk on an external drive.

The mac mini I am typing from has 2 clones of its os drive thus giving real backups to everything on the mac.

would you consider doing this in the future to prevent a coin loss?


I think I will do a thread on how to do this.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
ajareselde
Legendary
*
Offline Offline

Activity: 1722
Merit: 1000

Satoshi is rolling in his grave. #bitcoin


View Profile
August 12, 2015, 10:36:43 PM
 #12

There's a similar situation and quite a bit of potentially helpful answers here http://bitcoin.stackexchange.com/questions/12952/how-to-resolve-no-block-source-available-and
I don't use mac, but personally, when i had the same problem, it was resolved by restarting both router and core client (on win tho)

cheers
unholycactus
Legendary
*
Offline Offline

Activity: 1078
Merit: 1024



View Profile WWW
August 12, 2015, 10:48:07 PM
 #13

Your coins are fine if you have a backup or your wallet file. Bitcoin isn't fragile unless you don't know what you're doing.
jdebunt
Legendary
*
Offline Offline

Activity: 1596
Merit: 1010


View Profile WWW
August 13, 2015, 05:18:54 AM
 #14

Your coins are fine if you have a backup or your wallet file. Bitcoin isn't fragile unless you don't know what you're doing.

This is about the most solid answer in the whole thread; As long as there is  copy of the original wallet.dat, you'll be fine.
MstrMynd (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 13, 2015, 06:47:03 PM
 #15

I believe what you guys are saying, and I'm maintaining my cautiously optimistic outlook, but the reality is that I've done everything suggested and I still show "no block source available" and show a zero balance.  It's been a week since the problem first occurred.

I'm thinking I'd like to reinstall.  What's the best way to uninstall before a reinstall?
altcoinhosting2
Member
**
Offline Offline

Activity: 109
Merit: 10


View Profile
August 17, 2015, 08:58:04 AM
 #16

I believe what you guys are saying, and I'm maintaining my cautiously optimistic outlook, but the reality is that I've done everything suggested and I still show "no block source available" and show a zero balance.  It's been a week since the problem first occurred.

I'm thinking I'd like to reinstall.  What's the best way to uninstall before a reinstall?


It doesn't really matter how you uninstall... AS LONG AS YOU SAVED YOUR WALLET.DAT (sorry for the caps, but this is really important)...

██████████████████████▔|▔▔|      LEDGER WALLETSecond factorMalware Proof
████████████████████▔|▔▔|
██████████████████████|▔▔| ◀◀ Smartcard based Hardware Wallet - Worldwide Shipping
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1023


Mine at Jonny's Pool


View Profile WWW
August 18, 2015, 10:12:22 PM
 #17

First, backup your wallet.dat file.  You can place it on your desktop.

Second, make sure you really did make a copy of your wallet.dat file and that it's in a location you can retrieve it later.  This is very important.  You lose this, and your coins truly are lost.

If your user name is MstrMynd, you'll find your wallet (and all other related files) here:
Code:
/Users/MstrMynd/Library/Application Support/Bitcoin

Open a terminal window and type this:
Code:
cp /Users/MstrMynd/Library/Application\ Support/Bitcoin/wallet.dat /Users/MstrMynd/Desktop

That copies your existing wallet to your desktop.

Now, to completely uninstall the application, drag it into the trash.  Then, delete the contents of the folder above.  You DID save your wallet.dat file, right?  If you didn't now you've truly lost your coins.  In the same terminal window, type this:
Code:
rm -rf /Users/MstrMynd/Library/Application\ Support/Bitcoin

Now, download the latest Bitcoin Core client (v 0.11.0).  Drag it into your Applications folder as usual.  Start up the application.  It should connect and start downloading the blockchain again.  Yeah, it's going to take a while.  Once you actually have some connections, stop the client.  Copy your old wallet.dat file back into the folder:
Code:
cp /Users/MstrMynd/Desktop/wallet.dat /Users/MstrMynd/Library/Application\ Support/Bitcoin

Launch the Bitcoin application again.  It'll continue downloading blocks, and when everything is caught back up, you'll have your coins.

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
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!