Hi all!
I am trying to rescue some BTCs from "wallet.dat corrupt, salvage failed"... I have tried many different things without success. Pywallet, for example, doesn't find anything at all in this wallet.dat. But it found some keys in another wallet.dat...
Anyway, now I'm trying to take a clear, unmodified copy of wallet.dat which is corrupted from the Bitcoin Core's point of view and try to -salvagewallet it.
Here is the log:
2018-04-25 05:36:49 Bitcoin Core version v0.16.0 (release build)
2018-04-25 05:36:49 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-04-25 05:36:50 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.
2018-04-25 05:36:50 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc
2018-04-25 05:36:50 WalletParameterInteraction: parameter interaction: -salvagewallet=1 -> setting -rescan=1
2018-04-25 05:36:50 Using the 'sse4' SHA256 implementation
2018-04-25 05:36:50 Using RdRand as an additional entropy source
2018-04-25 05:36:50 Default data directory /home/kazna/.bitcoin
2018-04-25 05:36:50 Using data directory /home/kazna/.bitcoindata
2018-04-25 05:36:50 Using config file /home/kazna/.bitcoindata/bitcoin.conf
2018-04-25 05:36:50 Using at most 125 automatic connections (1024 file descriptors available)
2018-04-25 05:36:50 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-04-25 05:36:50 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-04-25 05:36:50 Using 2 threads for script verification
2018-04-25 05:36:50 Using wallet directory /home/kazna/.bitcoindata
2018-04-25 05:36:50 init message: Пpoвepкa кoшeлькa(oв) ...
2018-04-25 05:36:50 scheduler thread start
2018-04-25 05:36:50 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2018-04-25 05:36:50 Using wallet wallet.dat
2018-04-25 05:36:50 CDBEnv::Open: LogDir=/home/kazna/.bitcoindata/database ErrorFile=/home/kazna/.bitcoindata/db.log
2018-04-25 05:36:50 Failed to rename wallet.dat to wallet.dat.1524634610.bak
2018-04-25 05:36:50 Shutdown: In progress...
2018-04-25 05:36:50 scheduler thread interrupt
2018-04-25 05:36:50 Shutdown: done
Why can't Bitcoin Core can't simply rename wallet.dat? Under Windows there is completely same problem...
Here are all the permissions and users:
How to make a -salvagewallet option work as it should?
p.s. even when I start bitcoind without GUI witl a -salvagewallet option, even when I start it under sudo - it still can't rename wallet.dat...