Bitcoin Forum
May 25, 2024, 04:50:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin wallet suddenly stopped working  (Read 1269 times)
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 14, 2013, 01:04:23 PM
 #1

My Bitcoin "wallet" application has suddenly stopped working. I get an error that reads:

Quote
EXCEPTION: 11DbException
DB::put: Cannot allocate memory
bitcoin in ProcessMessages()

This program uses Qt version 4.7.4.

Operating system is Ubuntu 11.10
Eternity
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile
November 14, 2013, 01:56:26 PM
 #2

You might be running out of memory
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 14, 2013, 02:54:41 PM
 #3

I don't see how that could be. I have 275 GB of free space. But if that is the problem, how can I fix it?
lepirate
Hero Member
*****
Offline Offline

Activity: 541
Merit: 500


Garbochock


View Profile
November 14, 2013, 04:13:13 PM
 #4

I'd say hardware failure or the process leaking memory!
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 14, 2013, 06:10:24 PM
 #5

"Leaking" memory? What does that even mean?
What I really need to know is: how do I get my Bitcoins out of there?
lepirate
Hero Member
*****
Offline Offline

Activity: 541
Merit: 500


Garbochock


View Profile
November 14, 2013, 06:41:12 PM
 #6

http://en.wikipedia.org/wiki/Memory_leak

You could copy your wallet to another computer and move them from there. You can also try to fix the problem by telling Bitcoin-QT to re-download the blockchain.
If it's a hardware problem you have to replace the memory card(s).
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
November 14, 2013, 07:26:43 PM
 #7

Probably one of the berkeley db files is messed up, a likely culprit is ~/.bitcoin/peers.dat. Delete it and the .lock file, and restart.

If that doesn't do it, you should make a backup of your wallet.dat, and start with the -salvagewallet option.

You may also need to rename (instead of delete) the "database" subdirectory which also contains berkeleydb logs.

That's of course if you've checked disk space with df, done an fsck, etc.

Also, you should be using the latest client, v0.8.5, if you got that "uses qt version" from the about qt, its probably an old version.
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 14, 2013, 07:43:34 PM
 #8

You can also try to fix the problem by telling Bitcoin-QT to re-download the blockchain.

How do I do that?

Also, I've tried downloading a newer version, but it doesn't seem to work (or I don't know how to make it work).
lepirate
Hero Member
*****
Offline Offline

Activity: 541
Merit: 500


Garbochock


View Profile
November 14, 2013, 09:07:51 PM
 #9

You can also try to fix the problem by telling Bitcoin-QT to re-download the blockchain.

How do I do that?

Also, I've tried downloading a newer version, but it doesn't seem to work (or I don't know how to make it work).
You can just delete the blockchain from wherever it's located on ubuntu machines!
You should also backup your wallet as deepceleron said (and try his advices), cannot be stressed enough!

Btw, have you seen this thread? Might help! https://bitcointalk.org/index.php?topic=89639.0


And this might be off-topic, but you know that 11.10 is unsupported, right?
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 14, 2013, 09:46:05 PM
 #10

I will definitely try all these options.

I did attempt to back up the wallet under File>Backup Wallet. All I got was a text file full of gibberish.

I don't know where the blockchain is located in Ubuntu. Not a clue.

I didn't know that 11.10 ever was supported. It sucks and I hate it, but it's the best I can get in my price range.

I also cannot find the peers.dat or .lock files.

I'm just an operator, and I don't know anything about what's under the hood. Most of these suggestions, while very much appreciated, are way over my head. :0/
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 14, 2013, 10:29:16 PM
 #11

I also cannot find the peers.dat or .lock files.

I did find them and deleted them. The problem persists.
lepirate
Hero Member
*****
Offline Offline

Activity: 541
Merit: 500


Garbochock


View Profile
November 15, 2013, 09:07:15 AM
 #12

I did attempt to back up the wallet under File>Backup Wallet. All I got was a text file full of gibberish.

It should be a .dat file named to whatever you want like "BTC-wallet.dat" or something. If it wasn't then something is wrong.
If that is you could just copy the wallet.dat file to another directory.

I don't know where the blockchain is located in Ubuntu. Not a clue.
It's located in the same directory as the peers.dat file. The blkxxxx.dat (replace xxxx with the files names, like blkindex.dat, blk0001.dat) files contains the blockchain. Move them and then it will redownload the blockchain.

I didn't know that 11.10 ever was supported. It sucks and I hate it, but it's the best I can get in my price range.
It became unsupported in May this year. I however liked that distro! But you should really upgrade to at least 12.04 LTS!


Did you try everything in the thread I linked? The last thing posted especially:
I moved my db to a new drive and did a symbolic link and at first it worked then I stopped the bitcoind then started it again and it failed with...

Code:
ubuntu@cs3:~/.bitcoin$ bitcoin server starting


************************
EXCEPTION: 11DbException
Db::open: Invalid argument
bitcoin in AppInit()

terminate called after throwing an instance of 'DbException'
  what():  Db::open: Invalid argument

Not sure whats going on.

I hit this exact same error running on an instance of Ubuntu 12.04. I then checked the debug.log file created in the .bitcoin/ directory and found:

Code:
LoadBlockIndex(): hashBestChain=00000000000001b38e93  height=197280
Verifying last 2500 blocks at level 1
ERROR: CheckBlock() : block timestamp too far in the future
LoadBlockIndex() : *** found bad block at 197280, hash=00000000000001b38e93f02be1f00ae3f39c4ab32dfb989154d38cfce2b29a4a
ERROR: CheckBlock() : block timestamp too far in the future
LoadBlockIndex() : *** found bad block at 197279, hash=0000000000000088246a0a90732f7fca77d0b0087c1997a91311e70a54b33da8
ERROR: CheckBlock() : block timestamp too far in the future

This further led me to discover that my server time was far off the correct time (by several hours!). So I then explicitly set the time via "date -s".

Example: sudo date -s "Tue Sep  4 22:37:51"

Rerunning the bitcoin server after doing that worked great (fixed the problem!).
Try that if you haven't already!
Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 15, 2013, 04:51:42 PM
 #13

All right, got it backed up and deleting the "blk..." files seemed to get it going. It should only take a week or two to download the whole quarter of a million blocks again. Hopefully, it will work.

Thanks.
Undefeatable
Sr. Member
****
Offline Offline

Activity: 286
Merit: 250


View Profile
November 16, 2013, 01:52:23 PM
 #14

All right, got it backed up and deleting the "blk..." files seemed to get it going. It should only take a week or two to download the whole quarter of a million blocks again. Hopefully, it will work.

Thanks.

You reinstalled the Bitcoin-qt program?

Donnie Love (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 16, 2013, 02:35:51 PM
 #15

You reinstalled the Bitcoin-qt program?

No. I did not uninstall it. Should I have?
tremptek
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
November 16, 2013, 07:47:48 PM
 #16

Hey Donnie Love,

I'm experiencing the same exact problem with my Bitcoin-qt wallet here, but on a Mac


I've located the ~/Library/Application Support/Bitcoin directory and have come across the folders "blocks," "chainstate," & "database" along with my db.log, debug.log, peers.dat, & wallet.dat

Which of these do i need to change somehow to get it up and running again? DOn't mean to add any clutter, just looking for a simplification of the problem o_0
lepirate
Hero Member
*****
Offline Offline

Activity: 541
Merit: 500


Garbochock


View Profile
November 17, 2013, 12:12:00 AM
 #17

Hey Donnie Love,

I'm experiencing the same exact problem with my Bitcoin-qt wallet here, but on a Mac


I've located the ~/Library/Application Support/Bitcoin directory and have come across the folders "blocks," "chainstate," & "database" along with my db.log, debug.log, peers.dat, & wallet.dat

Which of these do i need to change somehow to get it up and running again? DOn't mean to add any clutter, just looking for a simplification of the problem o_0
You can try to delete/move all blkxxx.dat files in the folder "blocks", then it should redownload!
tremptek
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
November 17, 2013, 11:55:20 PM
 #18

Hey Donnie Love,

I'm experiencing the same exact problem with my Bitcoin-qt wallet here, but on a Mac


I've located the ~/Library/Application Support/Bitcoin directory and have come across the folders "blocks," "chainstate," & "database" along with my db.log, debug.log, peers.dat, & wallet.dat

Which of these do i need to change somehow to get it up and running again? DOn't mean to add any clutter, just looking for a simplification of the problem o_0
You can try to delete/move all blkxxx.dat files in the folder "blocks", then it should redownload!

Worked! re syncing as we speak Smiley

thank you!
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!