Bitcoin Forum
November 09, 2024, 12:19:23 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Warning: wallet.dat corrupt, data salvaged!  (Read 4948 times)
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 26, 2014, 06:28:03 PM
 #1

(am I in the correct subforum for this?)

I transfered a wallet from windows to linux, and there I got:

Code:
Warning: Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in /root/.c-note; if your balance or transactions are incorrect you should restore from a backup.
Warning: Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.

When I query the wallet daemon with

Code:
~/C-Note/c-noted &
~/C-Note/c-noted getinfo
ps gaux | grep c-noted

it results in

Code:
error: no response from server
Segmentation fault      ~/C-Note/c-noted

The windows wallet.dat is from the original -Qt client: https://bitcointalk.org/index.php?topic=397916.0
The linux wallet daemon I have compiled myself using these exact steps: https://bitcointalk.org/index.php?topic=460178.msg5100231#msg5100231



I need to transfer that wallet from windows to linux, because I don't have a headless CLI client in windows, and I want to script a large amount of transactions in order to funnel 1942 transactions into one.

Thanks!

no sign of a signature
p-webcorp
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
February 26, 2014, 06:35:50 PM
 #2

try: windows-blockchain-linux, perhaps not the most high tech solution, but it works.
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 26, 2014, 06:46:18 PM
 #3

try: windows-blockchain-linux, perhaps not the most high tech solution, but it works.

What do you mean by that?
windows wallet.dat export- import to blockchain.info online wallet - export - import to linux ?

I can see you point, and why it might work - if it was the bitcoin altcoin daemon.

But I am working with a descendant bitcoin --> litecoin --> quark --> C-Notes.

Still, I am almost sure, the problem is already the same even with the greatgrandmother bitcoin, that's why I am posting here.



no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 26, 2014, 06:47:22 PM
 #4

I have a hypothesis now.

The windows wallet.dat is from the original -Qt client: https://bitcointalk.org/index.php?topic=397916.0
The linux wallet daemon I have compiled myself using these exact steps: https://bitcointalk.org/index.php?topic=460178.msg5100231#msg5100231

Because of the instructions in the sourcecode \c-note1.2\C-Note\doc\build-unix.md I used db4.8 in the linux daemon.


Which db version might the windows-qt dev have used? How can I find out?


Windows c-note-qt.exe says in getinfo:

Code:
"version" : 1010000,
"protocolversion" : 70005,
"walletversion" : 60000,

Sourcecode c-notes-qt.pro also says to use db4.8 as fallback:

Code:
isEmpty(BDB_INCLUDE_PATH) {
    macx:BDB_INCLUDE_PATH = /opt/local/include/db48
}

isEmpty(BDB_LIB_PATH) {
    macx:BDB_LIB_PATH = /opt/local/lib/db48
}


no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 26, 2014, 07:09:08 PM
 #5

even easier, solution found

Code:
cd ~/.c-note
rm -R blocks chainstate database debug.log peers.dat .lock db.log wallet.dat

cp wallet.1393438556.bak wallet.dat

~/C-Note/c-noted &
~/C-Note/c-noted getinfo

After waiting a while, the thing is sync'ed, the balance is here, all good.


Note to self:
If I transfer a wallet.dat to another machine, I need to re-download the blockchain!

:-)


no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 27, 2014, 01:32:13 AM
 #6

FYI:

I solved my problem with the 2000 tiny transactions.
Here's today's logbook ... what an interesting day, problems are great:
https://bitcointalk.org/index.php?topic=488167.msg5396066#msg5396066

and below that I will publish my script that solved it.


no sign of a signature
dbwilkins
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
March 06, 2014, 07:46:13 AM
 #7

So it's not so easy to transfer the wallet from windows to linux?
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!