Pages:
Author

Topic: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away - page 3. (Read 3720 times)

legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
Okay - so here is the relevant code to what is actually going on:

Code:
bool CWallet::Verify(const string& walletFile, string& warningString, string& errorString)
{
    if (!bitdb.Open(GetDataDir()))
    {
        // try moving the database env out of the way
        boost::filesystem::path pathDatabase = GetDataDir() / "database";
        boost::filesystem::path pathDatabaseBak = GetDataDir() / strprintf("database.%d.bak", GetTime());
        try {
            boost::filesystem::rename(pathDatabase, pathDatabaseBak);
            LogPrintf("Moved old %s to %s. Retrying.\n", pathDatabase.string(), pathDatabaseBak.string());
        } catch (const boost::filesystem::filesystem_error&) {
            // failure is ok (well, not really, but it's not worse than what we started with)
        }

        // try again
        if (!bitdb.Open(GetDataDir())) {
            // if it still fails, it probably means we can't even create the database env
            string msg = strprintf(_("Error initializing wallet database environment %s!"), GetDataDir());
            errorString += msg;
            return true;
        }
    }

    if (GetBoolArg("-salvagewallet", false))
    {
        // Recover readable keypairs:
        if (!CWalletDB::Recover(bitdb, walletFile, true))
            return false;
    }

    if (boost::filesystem::exists(GetDataDir() / walletFile))
    {
        CDBEnv::VerifyResult r = bitdb.Verify(walletFile, CWalletDB::Recover);
        if (r == CDBEnv::RECOVER_OK)
        {
            warningString += strprintf(_("Warning: wallet.dat corrupt, data salvaged!"
                                     " Original wallet.dat saved as wallet.{timestamp}.bak in %s; if"
                                     " your balance or transactions are incorrect you should"
                                     " restore from a backup."), GetDataDir());
        }
        if (r == CDBEnv::RECOVER_FAIL)
            errorString += _("wallet.dat corrupt, salvage failed");
    }

    return true;
}

That would seemingly indicate to me it had already found an invalid "wallet.dat" and so had renamed it (to allow you to try and recover it later) and started again with a new wallet.

It never "sent" your wallet anywhere but the corrupt "wallet.dat" became the new file "wallet.XXX.dat" (where XXX was the time stamp when this occurred).
newbie
Activity: 14
Merit: 0
but the system, send the file to somewhere and put a new wallet.dat in there.

It doesn't do that so I think you aren't going to find any help here whilst you keep on insisting that Bitcoin Core does things that it simply doesn't do.


It is doing that, did you try it?

i mean with send not send by mail or what ever

so, if you change the file name from wallet.123123123.bak to wallet.dat
then if you start the software again, the software will let your fresh renamed file disappear and will create a new, useless one.
with sending i mean in what folder that put it, because if they create a new one, they should put it somewhere right?
if you, yourself add another file, than your filemanage will ask you, replace, keep both or cancel.
but here not, the botcoin core just add a new one after it deletes the one that is possibly broken"
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
but the system, send the file to somewhere and put a new wallet.dat in there.

It doesn't do that so I think you aren't going to find any help here whilst you keep on insisting that Bitcoin Core does things that it simply doesn't do.
hero member
Activity: 686
Merit: 500
i think i still have this wallet file but the data inside is broken

staff
Activity: 3458
Merit: 6793
Just writing some code
Hi, thank you

but the file is not really deleted, the bitcoin core system send it somewhere, i dont think they delete it.
if you follow the steps you can see it in your wallet happen, its a Bug maybe

the bitcoin core app creates a new wallet.dat file and there is not my money, the bitcoin core program send 1. the wallet.dat (what was renamed to wallet.dat from the wallet-4343.dat) to nirvana, and i don´t know where it is

Why do you keep assuming that it renamed the file and moved it somewhere? Bitcoin core saw the file, tried a salvage and then deleted the file when it was done because it didn't need it anymore. That file is gone.

Since you said you have a backup of the old wallet, restore that and you will get some bitcoin back.

If the receiving addresses in your current wallet look familiar to you, then you probably have the private keys to your addresses so your can get your bitcoin back. You just need to initiate a rescan so it can find the transactions in the blockchain.

Can you please provide the entirety of your Debug.log file?
newbie
Activity: 14
Merit: 0
As Bitcoin Core does not "send wallets" anywhere either the OP is being purposely dense (or worse) or this whole topic is actually a joke (the fact that he doesn't even bother trying to restore his old backup suggests the latter to me).



It is not a joke,

my old file are restored, the backup that i have is only for the old wallet, and this is empty since i tranfered it over+
the focus is on the new one

If you read the steps and follow them you will see what i mean
i did it 20 times to really be sure that the system is sending or deleting or replacing the wallet.dat that one that is freshly renamed

mates, this problem is really serious for me and i really are f.... in trouble without solution. so please, take a careful look at it, go a bit deeper, if i would have the file or backups i would have no problem,
but the system, send the file to somewhere and put a new wallet.dat in there.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
As Bitcoin Core does not "send wallets" anywhere either the OP is being purposely dense (or worse) or this whole topic is actually a joke (the fact that he doesn't even bother trying to restore his old backup suggests the latter to me).
newbie
Activity: 14
Merit: 0
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?

NO,

i renamed the bak file to wallet file
so it is normally not lost
but the system replaced it with a new wallet file
the normal procedere is that the system will only replace if in the folder is no wallet.dat available
in my case the system see a wallet.dat, but knowing that this was a wallet.2314234.bak before and then removes it
(not really replace, because it goes away a second after start the app, and the new one is coing after all the checks.)

so, where the system send the file, is htere any backup or so,
i think here we need experts in the software itself right, is there any support for bitcoin core that is highly advanced, i even will pay them 500$ per hour for that. i need it to be solved.

First of all, do not mess with partition and HDD where you have Bitcoin wallet.dat files! Second, download Recuva https://www.piriform.com/recuva or some other file recovery software to different computer, install it there then shutdown your computer with Bitcoin wallet.dat files. Remove HDD from it, attach it to computer with file recovery software and do a full deep scan of HDD. All found deleted files must be copied to different HDD, not the one that have Bitcoin wallet.dat files! Unless you are perfectly aware of what you are doing better just take HDD to file recovery specialist or service.

Bitcoin Core simply deleted your new wallet.dat (wallet.2314234.bak) file but possibly there is a chance it is not unrecoverably overwritten.


Hi, thank you

but the file is not really deleted, the bitcoin core system send it somewhere, i dont think they delete it.
if you follow the steps you can see it in your wallet happen, its a Bug maybe

the bitcoin core app creates a new wallet.dat file and there is not my money, the bitcoin core program send 1. the wallet.dat (what was renamed to wallet.dat from the wallet-4343.dat) to nirvana, and i don´t know where it is
hero member
Activity: 686
Merit: 500
In the future instead of renaming wallet.dat, move it to another folder.  (only after you've backed it up)

You should copy both files now to a USB stick, then use your good wallet.dat and rescan.

Then you can try salvagewallet on the bad wallet.

If that does not work, try a Windows System Restore.  Hopefully there is a restore point after you created the wallet but before it was corrupted.
hero member
Activity: 651
Merit: 518
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?

NO,

i renamed the bak file to wallet file
so it is normally not lost
but the system replaced it with a new wallet file
the normal procedere is that the system will only replace if in the folder is no wallet.dat available
in my case the system see a wallet.dat, but knowing that this was a wallet.2314234.bak before and then removes it
(not really replace, because it goes away a second after start the app, and the new one is coing after all the checks.)

so, where the system send the file, is htere any backup or so,
i think here we need experts in the software itself right, is there any support for bitcoin core that is highly advanced, i even will pay them 500$ per hour for that. i need it to be solved.

First of all, do not mess with partition and HDD where you have Bitcoin wallet.dat files! Second, download Recuva https://www.piriform.com/recuva or some other file recovery software to different computer, install it there then shutdown your computer with Bitcoin wallet.dat files. Remove HDD from it, attach it to computer with file recovery software and do a full deep scan of HDD. All found deleted files must be copied to different HDD, not the one that have Bitcoin wallet.dat files! Unless you are perfectly aware of what you are doing better just take HDD to file recovery specialist or service.

Bitcoin Core simply deleted your new wallet.dat (wallet.2314234.bak) file but possibly there is a chance it is not unrecoverably overwritten.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
Unless you made a backup, there is probably a low chance of recovering the coins.

He stated that he did have a backup (which even if old will probably have all the necessary keys assuming he doesn't do many txs).
staff
Activity: 3458
Merit: 6793
Just writing some code
Unless you made a backup, there is probably a low chance of recovering the coins.

However the data might still be in the wallet.dat file since bitcoin core won't just delete it even if the data is corrupted. What you should try doing is starting button core with the salvagewallet option and see if that can salvage anything from the corrupted file.
legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?

NO,

i renamed the bak file to wallet file
so it is normally not lost
but the system replaced it with a new wallet file
the normal procedere is that the system will only replace if in the folder is no wallet.dat available
in my case the system see a wallet.dat, but knowing that this was a wallet.2314234.bak before and then removes it
(not really replace, because it goes away a second after start the app, and the new one is coing after all the checks.)

so, where the system send the file, is htere any backup or so,
i think here we need experts in the software itself right, is there any support for bitcoin core that is highly advanced, i even will pay them 500$ per hour for that. i need it to be solved.



No i had a similar problem with core replacing my backup wallet, I did manage to fix it i think by just dragging the old wallet into the folder to replace the newly created one and then let blockchain update.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
Surely whatever possible bug there might (or might not) be (as renaming wallet files is a very bad idea in general) what matters is that you recover your coins isn't it?

(so restore your backup wallet into a fresh installation on a separate computer and get your coins back first before worrying about other things or paying big bucks for help which you may not even need)
newbie
Activity: 14
Merit: 0
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?

NO,

i renamed the bak file to wallet file
so it is normally not lost
but the system replaced it with a new wallet file
the normal procedere is that the system will only replace if in the folder is no wallet.dat available
in my case the system see a wallet.dat, but knowing that this was a wallet.2314234.bak before and then removes it
(not really replace, because it goes away a second after start the app, and the new one is coing after all the checks.)

so, where the system send the file, is htere any backup or so,
i think here we need experts in the software itself right, is there any support for bitcoin core that is highly advanced, i even will pay them 500$ per hour for that. i need it to be solved.

legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?

Im also confused here, If you have another backup of your wallet just use that? You could try opening the corrupt one in a hex editor to try and repair depending on how messed up it is.
hero member
Activity: 651
Merit: 518
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?
newbie
Activity: 14
Merit: 0
quote author=SISAR link=topic=1389123.msg14113632#msg14113632 date=1457263706]
and the programm created a new wallet and send the old 94kb wallet, what was renamed back to wallet.dat to SOMEWHERE.
Where can it be?

2016-03-06 09:43:49 Renamed wallet.dat to wallet.1457257429.bak
2016-03-06 09:43:49 Salvage(aggressive) found no records in wallet.1457257429.bak.

Clearly, wallet did not send old wallet.dat anywhere but renamed it to wallet.1457257429.bak
[/quote]

YEs, but then i renamed it to wallet.dat
then starting again and system removed it to "nowhere" or to a safe place i don´t know
and created a new wallet, where my money not is.

----------------

everybody can easy do the same to test ist.
I will increase my reward to 5000$ if somebody finds solution for it

just bring all your wallets to safe place
then let sytem create a new one.
then rename it
then close program
then rename it back to wallet.dat
then start system
it will rename it to wallet.timestamp.bak and put out error message
then you rename it from that again to wallet.dat
then you start the system (bitcoin core)
then the bitcoin core will delete it or this is the question send it to somewhere
and then it takes a while until the sytem is up and then it creates a new one.
where is the one gone?
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
No, i did not safed the bak file before, i did not expect that the system will remove the renamed wallet.dat
and yes, i know the adress, i have a backup of the old wallet.

If you have a backup of the old wallet then you should be able to recover your BTC.

Perhaps to avoid confusion use a new Bitcoin installation (on a different computer so you don't risk making anything worse) and then copy your backup wallet.dat into the app data directory before you start Bitcoin.

It will of course need to catch up the blockchain before it will show any balance so don't be alarmed when it shows a zero balance when you first start it (and of course it might take a day or two to catch up to the point where your BTC will suddenly reappear).
hero member
Activity: 651
Merit: 518
and the programm created a new wallet and send the old 94kb wallet, what was renamed back to wallet.dat to SOMEWHERE.
Where can it be?

2016-03-06 09:43:49 Renamed wallet.dat to wallet.1457257429.bak
2016-03-06 09:43:49 Salvage(aggressive) found no records in wallet.1457257429.bak.

Clearly, wallet did not send old wallet.dat anywhere but renamed it to wallet.1457257429.bak
Pages:
Jump to: