Bitcoin Forum

Other => Archival => Topic started by: totohasproblem on March 06, 2016, 09:37:38 AM



Title: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 09:37:38 AM
1. I renamed the Wallet.dat file into something like wallet123.dat.
2. i startet Bitcoin COre again
3. a new wallet was created
4. i created another receiving adres and copy it and send it somebody who send me bitcoins.
5. i renamed the current wallet, where i was waiting for money
6. i renamed the old wallet back to wallet.dat to transfer my rest money to the new wallet
7. i wanted to go the new wallet again, renamed it back to wallet
8. the system did error message and renamed the file in wallet.141231243.bak
9. i did not knew what this was and i try to rename it back into wallet.dat
10, then i startet it again, the  bitcoin core but looks like a new wallet, but it has 94KB
 

So, i can not find the .bak file and also not the wallet file i think i still have this wallet file but the data inside is broken and the money that was send was not there, what ever i do, i startet it on other mac too


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 10:15:09 AM
I tried to do it again.

i renamed  another file with another computer, after 2 times it came same error
system renamed the current wallet.dat to wallet.12345678.bak
I again, renamed it back to wallet.dat what was 94KB

then start bitcoin core again
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.

TO MAKE IT CLEAR i just checked all again

i was logged in the wallet and i renamed it to walletxxx.dat
THEN i closed bitcoin core
then before i startet that wallet again, i renamed it back to wallet.dat
then came the error message
then system startet and throw this wallet file to somewhere to create a new one???
If so, where is the old one
If not, why i donīt find receiving adress in the that one and the transactions

BTW we are talking about 230 Bitcoins that i might loosing.



Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: shorena on March 06, 2016, 10:34:36 AM
-snip-
i was logged in the wallet and i renamed it to walletxxx.dat
THEN i closed bitcoin core
-snip-

You renamed a file that was used by a programm? No wonder its corrupted.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 11:01:21 AM
Yes, understand that, but how can i get this wallet recovered, where is the old one gone?

I mean, as the system renamed the one into wallet.timestamp.bak
then i renamed it back to wallet.dat and startet the client
then my fresh renamed one seems to disappeard to somewhere to free this spot for a new system created one.
right?


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: chichidori on March 06, 2016, 11:09:02 AM
Did you make a copy of your wallet.timestmap.bak before renaming it back to wallet.dat and did you know the address you used to receive the coins if your answer is no then the coins are gone. learn to use the the pywallet.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 11:24:57 AM
Surely you had taken (several) backups of your wallet (especially if it contained over 200 BTC)?

Renaming files (that are not just normal docs you have created) is really not something that you should be doing unless you really know what you're doing.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 11:27:07 AM
Did you make a copy of your wallet.timestmap.bak before renaming it back to wallet.dat and did you know the address you used to receive the coins if your answer is no then the coins are gone. learn to use the the pywallet.

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.

It was, the system saw my renamed file from bak to dat and then then instead of using it, or giving another error, it created a new wallet.dat file
but before it created it, it deleted or moved it, i can not see any reason why this program will remove it to nowhere, i guess and hope its safed somewhere.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 11:28:26 AM
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


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 11:31:04 AM
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).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 11:38:49 AM
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?


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 11:46:25 AM
So you do not have backup of a new wallet nor backup of wallet.1457257429.bak?


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: helloeverybody on March 06, 2016, 11:51:18 AM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 11:52:44 AM
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.



Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 11:58:33 AM
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)


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: helloeverybody on March 06, 2016, 12:01:13 PM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: achow101 on March 06, 2016, 12:02:09 PM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 12:03:11 PM
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).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 12:03:22 PM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: BARR_Official on March 06, 2016, 12:11:00 PM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 12:22:47 PM
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


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 12:25:06 PM
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).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 12:30:17 PM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: achow101 on March 06, 2016, 12:31:33 PM
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?


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: BARR_Official on March 06, 2016, 12:32:36 PM
i think i still have this wallet file but the data inside is broken



Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 12:34:13 PM
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.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 12:42:10 PM
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"


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 12:43:26 PM
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).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 12:51:34 PM
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).



so, if you go the steps i told you (i just a minute ago tried again after your post) then you will see.
the program starts, removes the wallet.dat ( and replaces it for a new one)
the wallet. dat is the one that is then from me renamed from the .bak file

to it happens all over again
and again


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 12:54:04 PM
So - it is not "sending your wallet somewhere"*** but renaming the corrupt wallet.dat to wallet.XXX.dat (as it can't open that wallet).

It then will create a new empty wallet and continue. Your old wallet is still there (just renamed to wallet.XXX.dat) but that file is corrupt - so if you rename it back to wallet.dat you are of course going to just go around in circles (as renaming isn't going to magically repair it).

You do get that this wallet "is corrupt" don't you?

***(perhaps you consider "renaming" to be "sending somewhere" in which case we have resolved that communication problem)

Before going any further I would recommend that you take a copy of the "wallet.XXX.dat" file.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 01:02:38 PM
So - it is not "sending your wallet somewhere"*** but renaming the corrupt wallet.dat to wallet.XXX.dat (as it can't open that wallet).

It then will create a new empty wallet and continue. Your old wallet is still there (just renamed to wallet.XXX.dat) but that file is corrupt - so if you rename it back to wallet.dat you are of course going to just go around in circles (as renaming isn't going to magically repair it).

it can only create a new wallet.dat, if there is not wallet.dat, but there was a wallet.dat, because i renamed the wallet.xxx.bak to wallet.dat
but the new fresh renamed was then removed and replaced


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:04:11 PM
No - that is not what happens (please read the code and if you can't then take my word for it or ask another programmer to read it and explain it to you).

It is failing to correctly the open the "wallet.dat" file which is (most likely) due to it being corrupt (there may be other reasons I guess of course but they are very unlikely to be relevant to this situation) so it then renames it (once it has been renamed you no longer have a file called "wallet.dat" which is why it can then create a new one).

Once it has renamed the bad "wallet.dat" file it should have no problem in creating a new "wallet.dat" (it would only not be able to do that if the rename failed but you reported that it did rename as was recorded in your log file).

I'm not sure when this behaviour was introduced (older versions of Bitcoin Core would simply fail to start if the wallet was found to be corrupt).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 01:09:58 PM
No - that is not what happens (please read the code and if you can't then take my word for it or ask another programmer to read it and explain it to you).

It is failing to correctly the open the "wallet.dat" file which is (most likely) due to it being corrupt (there may be other reasons I guess of course).


but where is my file gone than, why the receiving adress is not in there and why the money is gone what ruins me and my family?

the code may say something different, but i am sure what i saw... maybe the whole chain is stil in the wallet, but i can not see it

anybody can repeat this error easy on his mac
its always the same
i start the bitcoin core, the wallet.dat file (only if i before converted it from the generated system file back to wallet.dat) disappear
then short before bitcoin core is up it creates a new wallet.
but the old, that was gone is having the information


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:11:48 PM
As explained - the wallet *is corrupt* and can't be used (you're behaving like someone whose car is broken down who just keeps on trying to restart the engine when you've been told it is broken down).

You said you had an old backup so go and restore your old backup (and do that using a different machine as recommended by myself and others) and until you've done that I don't think you can expect any further assistance.

EDIT: Interesting timing that this suddenly has appeared: https://bitcointalk.org/index.php?topic=1382650.msg3049193;topicseen#new

(perhaps this topic is actually a marketing exercise)


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: poptok1 on March 06, 2016, 01:15:22 PM
https://bitcointalk.org/index.php?topic=1382650.0;topicseen
Hi maybe this will help. It works with windows.
Its program for recovering wallets and passwords.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 01:16:29 PM
So - it is not "sending your wallet somewhere"*** but renaming the corrupt wallet.dat to wallet.XXX.dat (as it can't open that wallet).

It then will create a new empty wallet and continue. Your old wallet is still there (just renamed to wallet.XXX.dat) but that file is corrupt - so if you rename it back to wallet.dat you are of course going to just go around in circles (as renaming isn't going to magically repair it).

You do get that this wallet "is corrupt" don't you?

***(perhaps you consider "renaming" to be "sending somewhere" in which case we have resolved that communication problem)

Before going any further I would recommend that you take a copy of the "wallet.XXX.dat" file.

That is not exactly how it goes.

1. Shutdown Bitcoin Core then move existing wallet.dat to some other directory.
2. Start Bitcoin Core, it will create a new wallet.dat file.
3. While Bitcoin Core is running, rename newly created wallet.dat to whatever else.
4. Shutdown Bitcoin Core, it will throw an error and exit.
5. Rename file back to wallet.dat and start Bitcoin Core again, it will detect corrupt wallet.dat then it will rename it to wallet.(random numbers).bak and exit.
6. Rename wallet.(random numbers).bak back to wallet.dat and start Bitcoin Core again.
7. Bitcoin Core will delete wallet.dat file and create __db.80000002.2d624f7d file (size is 512 bytes) then afterwards create a new wallet.dat file. Or wallet.dat file was not deleted but nulled (innitialized) and renamed to __db.80000002.2d624f7d can't realy tell.
8. Upon the next Bitcoin Core shutdown __db.80000002.2d624f7d file will be deleted.

Hence wallet.(random numbers).bak is gone, one way or another. And guy did not created a backup of it at step 5. nor did he created a backup of wallet.dat at step 6.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: LoyceV on March 06, 2016, 01:16:56 PM
Do what SISAR says.Every second you keep using this computer, you lower the chance of recovering files.
Turn it off. Now. Get another computer, plug in the disk, and start your search from there.

Oh, in the future: make backups!


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:18:36 PM
5. Start Bitcoin Core again, it will detect corrupt wallet.dat, rename it to wallet.(random numbers).bak and exit.

Those are not "random numbers" but instead the current time stamp (as you can see clearly in the code I posted previously).

And Bitcoin Core does not delete this file anywhere (please show me the code where it does).

So if you deleted the empty "wallet.dat" and renamed the "wallet.XXX.bak" back to "wallet.dat" and restarted you'd just end up with a new empty "wallet.dat" and now a new "wallet.YYY.bak" (because the file is still corrupted and can't work as a valid wallet).

The file "wallet.XXX.bak" and "wallet.YYY.bak" would actually be identical (as it hasn't deleted anything).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 01:27:47 PM
Behaviour might be different based on OS, I am using Win7 64-bit with Bitcoin Core v0.12 64-bit.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:28:44 PM
Behaviour might be different based on OS, I am using Win7 64-bit with Bitcoin Core v0.12 64-bit.

The code I quoted is the same code regardless of OS (there isn't separate source code for the different OS versions).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 01:28:52 PM
5. Start Bitcoin Core again, it will detect corrupt wallet.dat, rename it to wallet.(random numbers).bak and exit.

Those are not "random numbers" but instead the current time stamp (as you can see clearly in the code I posted previously).

And Bitcoin Core does not delete this file anywhere (please show me the code where it does).

So if you deleted the empty "wallet.dat" and renamed the "wallet.XXX.dat" back to "wallet.dat" and restarted you'd just end up with a new empty "wallet.dat" and now a new "wallet.YYY.dat" (because the file is still corrupted and can't work as a valid wallet).

The file "wallet.XXX.dat" and "wallet.YYY.dat" would actually be identical (as it hasn't deleted anything).


Bitcoincore is not deleting
it
of course
but as i said its removing it
from the wallet.dat folder to somewhere
and this is a bug

please read carefully, or please please please, try yourself you will see

go step by step as i told you and you will see the file will disappear even if its not in the code.
you wil get a new file from the system, a new wallet
without the money OR receive adresses that was in the first one.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 01:31:37 PM
Behaviour might be different based on OS, I am using Win7 64-bit with Bitcoin Core v0.12 64-bit.

The code I quoted is the same code regardless of OS (there isn't separate source code for the different OS versions).

Right, but there are differences at OS level when it comes to handling of files. In any case, there are no traces of .bak file on my computer.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:32:31 PM
If you want to pay me to "spend my time doing things" then you'll need to pay me up front.

You have been told to restore your old wallet and yet you don't do that and then seem to insist that others should waste their time repeating things in order to try and "point out a bug" (if I had just thought I'd lost over 200 BTC I wouldn't give a fuck about whether or not there is a bug).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:34:12 PM
Right, but there are differences at OS level when it comes to handling of files. In any case, there are no traces of .bak file on my computer.

If there are no traces of the "wallet.XXX.bak" file after being renamed to "wallet.dat" (assuming you deleted the empty "wallet.dat" first) then it is because Bitcoin Core didn't find a problem with it when it restarted (i.e. the file wasn't corrupt).

The code is not ambiguous nor is it going to behave differently on Windows or Linux in regards to this.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 01:37:25 PM
Right, but there are differences at OS level when it comes to handling of files. In any case, there are no traces of .bak file on my computer.

If there are no traces of the "wallet.XXX.bak" file after being renamed to "wallet.dat" (assuming you deleted the empty "wallet.dat" first) then it is because Bitcoin Core didn't find a problem with it when it restarted (i.e. the file wasn't corrupt).

There is no wallet.dat file at the stage when you are renaming .bak file to .dat file.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:38:46 PM
There is no wallet.dat file at the stage when you are renaming .bak file to .dat file.

Okay - so basically Bitcoin didn't actually start up properly then (or it started up without a wallet).

In either case it isn't magically deleting anything if you renamed the .bak file yourself.

Are you sure your .bak file is a corrupt wallet?


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 01:46:36 PM
Procedure is as explained at https://bitcointalk.org/index.php?topic=1389123.msg14114474#msg14114474 and because there are no traces of .bak file or any other version of wallet.dat to which guy sent bitcoins I see no alternative to https://bitcointalk.org/index.php?topic=1389123.msg14113910#msg14113910

The worst case scenario is if Bitcoin Core simply nulled (innitialized) corrupt wallet.dat (previously wallet.(timestamp).bak file) then renamed it to __db.80000002.2d624f7d which is deleted afterwards.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 01:50:27 PM
Procedure is as explained at https://bitcointalk.org/index.php?topic=1389123.msg14114474#msg14114474 and because there are no traces of .bak file or any other version of wallet.dat to which guy sent bitcoins I see no alternative to https://bitcointalk.org/index.php?topic=1389123.msg14113910#msg14113910

The worst case scenario is if Bitcoin Core simply nulled (innitialized) corrupt wallet.dat (previously wallet.(timestamp).bak file) then renamed it to __db.80000002.2d624f7d which is deleted afterwards.

Bitcoin Core itself is not doing what you suggest but it is possible that BerkleyDB is doing something strange in this situation (the __db files are below the level of what is coded in Bitcoin Core so if there is some issue with that then it is an issue with BerkleyDB).

Remember it was *you* (or *him*) that got rid of the file "wallet.XXX.bak" (by renaming it) not Bitcoin Core. What should have been done was to create a copy of this file (rather than rename it) in the very first place.

Also why on earth someone would be silly enough to rename such an important file as "wallet.dat" when Bitcoin Core is running is beyond me (it's as though the OP was trying to destroy his wallet on purpose which is hardly the approach that anyone who valued 200+ BTC would take).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 02:03:48 PM
Issue thread created at https://github.com/bitcoin/bitcoin/issues/7647 let's see what devs have to say about it.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 02:07:16 PM
Issue thread created at https://github.com/bitcoin/bitcoin/issues/7647 let's see what devs have to say about it.

Okay but I think you are going to cop it when they read this step:

Code:
6. Rename wallet.(random numbers).bak back to wallet.dat and start Bitcoin Core again.

(quite clearly it was *you* that got rid of the "wallet.XXX.bak" file by renaming it - not Bitcoin Core)

Perhaps you should clarify that the issue you are raising is why did the supposedly corrupt "wallet.dat" suddenly seem to not be identified as corrupt (but was replaced with a new one) as this is more to the crux of the issue.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 02:09:48 PM
Issue thread created at https://github.com/bitcoin/bitcoin/issues/7647 let's see what devs have to say about it.

Okay but I think you are going to cop it when they read this step:

Code:
6. Rename wallet.(random numbers).bak back to wallet.dat and start Bitcoin Core again.

(quite clearly it was *you* that got rid of the "wallet.XXX.bak" file not Bitcoin Core by renaming it)

True but in any case Bitcoin Core should keep a copy of corrupt wallet.dat file.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 02:11:20 PM
True but in any case Bitcoin Core should keep a copy of corrupt wallet.dat file.

It did (i.e. it created the "wallet.XXX.bak" file for just this reason) but then you went and renamed it (it can only do so much to predict what silliness a user might get up to).

Typically when something breaks you should stop and ask for help then (not try and fix it yourself if you've got no idea what you are actually doing).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 02:15:57 PM
Still it is unclear why and unexpected that Bitcoin Core deleted corrupt wallet.dat file. It should create a copy of it no matter what or not mess with wallet file at all if it is unreadable or whatever.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 02:19:04 PM
Still it is unclear why and unexpected that Bitcoin Core deleted corrupt wallet.dat file. It should create a copy of it no matter what or not mess with wallet file at all if it is unreadable or whatever.

The Bitcoin Core code clearly does this - but if BerkleyDB decides to open the file (after your rename) and then not report an error then Bitcoin Core is left unable to do anything (it is relying upon the 3rd party software).

The mistake was renaming rather than copying (and that was a "user error").


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 02:24:02 PM
Because original corrupted wallet.dat file was renamed to wallet.(timestamp).bak file which is then renamed back to wallet.dat file which is subsequently deleted it shows that wallet.(timestamp).bak file is not the same as original corrupted wallet.dat file or Bitcoin Core handles .dat and .bak files differently, deleting the later (after it was renamed) for no obvious reason. Put differently, original corrupted wallet.dat and wallet.dat file created by renaming wallet.(timestamp).bak files were not treated equally for some reason. Why simply not rename to .bak and exit, as previously?


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 06, 2016, 02:27:12 PM
I think the key point was renaming stuff "while Bitcoin Core was running" (and that is where the bullet entered the foot).

Clearly the final state of the DB became problematic due to what had happened - but as an end-user you should never rename things like "wallet.dat" only make copies (that is just plain commonsense).

My guess is that some other state file (at the DB level) could be the reason for this problem but it isn't a Bitcoin Core problem really.

I have batch files (for Windows versions of Bitcoin) to work with different wallets - I never "rename" files though (they always use copies and overwrite "wallet.dat" before Bitcoin Core is started or copy "wallet.dat" after Bitcoin Core has shutdown).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 06, 2016, 02:53:10 PM
What exactly happens is, in this case, secondary to the fact that file is gone. So I have nothing more to add to this thread but again point back to procedure for file recovery at the first page.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 07:53:53 PM
There is no wallet.dat file at the stage when you are renaming .bak file to .dat file.

 
Are you sure your .bak file is a corrupt wallet?



i donīt have the bak file at all. i renamed it and then it was deleted or moved by the programm


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 06, 2016, 10:23:04 PM
Hello,

thanks for all help but here a Video what happened so you can see more detailed what the problem is.
https://www.youtube.com/watch?v=H6veuKuCl2k



Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: Bitraker on March 06, 2016, 10:25:37 PM
  Hi you need to do search on your computer for the wallet.dat or bak file it could be in your temporary or junk folder. Try finding or download a program called undelete and download on your Mac and see if it finds it. Check to see if you sent wallet to dbox. If this helps please send me $2000 or btc amount to  1N6d2118Ki4bNxKjF5MbECGDLSE5SPSuLo I really need it.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: thewall on March 06, 2016, 10:30:50 PM
I can help, but I'd need to be on your machine to do it.  If all else fails, let me know.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: cakir on March 06, 2016, 11:16:28 PM
I've done what you've done on your computer. I managed to bring back the wallet.timestamp.bak file with "Ctrl+Z" command (Of course I didn't delete anything so it brought back from memory I guess)
But I don't think you're able to recover it if you closed your computer since then.


edit: Damn you don't have the .bak file either :(


Hi,
Can you try these steps please?
1- Download this Hex editor: http://www.macupdate.com/app/mac/17562/hexedit (or any other hex editor)
2- Back up your .bak file somewhere (corrupted one) and work on it.
3- Open a normal wallet.dat file with this hex editor. It should look like this:
http://i.hizliresim.com/Ykra96.png
4- Open the *.bak file (corrupted wallet)
It should look like this:
http://i.hizliresim.com/57M30L.png
if the shown bytes are different than normal wallet.dat file than copy the correct header info to *.bak file.
Then save .bak file, then rename & place it as wallet.dat to blockchain directory. Try to run core wallet with this new wallet.dat
(I'll try this a few minutes later).


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: totohasproblem on March 07, 2016, 01:24:36 AM
Right, but there are differences at OS level when it comes to handling of files. In any case, there are no traces of .bak file on my computer.

If there are no traces of the "wallet.XXX.bak" file after being renamed to "wallet.dat" (assuming you deleted the empty "wallet.dat" first) then it is because Bitcoin Core didn't find a problem with it when it restarted (i.e. the file wasn't corrupt).

There is no wallet.dat file at the stage when you are renaming .bak file to .dat file.
I was creating the new wallet.dat, i copy the receiver adress and then renamed it, i think even if i find this file, it might not contain data??? or will this file have all data then, even if the bitcoin client was open only for 1 min not even?
i checked it, if i do it with another wallet and i leave the program open for 10 min and then rename it, even if programm is running, than the wallet.dat is still OK



Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: CIYAM on March 07, 2016, 01:38:12 AM
You should *never* be renaming "wallet.dat" full stop and most especially not while the program is running.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: Ethey on March 07, 2016, 02:01:53 AM
i could have the right Solution for your Problem. just send me Pm if u interested sombody should take care about the reward

regards


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: Randian Hero on March 07, 2016, 02:13:09 AM
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


You should still do what totohasproblem suggests. If you really think you have the file somewhere, you could download a tool that searches inside files. Open a proper file in an editor and search for something that appears in the beginning of the file. If you find the right tool and configure it to read file correctly it will find any wallet file that was originally created by your bitcoin client.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: SISAR on March 08, 2016, 10:29:44 AM
@ totohasproblem and everyone new around here

You better not deal with noobs from this forum, chance is very high that people who have a new accounts here are scammers and not trustworthy. "I need access to your computer" and so on, to steal your wallets and infect machine with some malware. "I can fix it but PM me" and such bullshits. Do not buy into such schemes. Anyone who is worthy of dealing with in cryptocoin community already has some Full, Senior or higher rank member account, for everyone else just asume they are up for no good and you will be fine.


Title: Re: HEEEELP ME, 2000$ R E W A R D FOR the right solution timestamp .bak wallet away
Post by: Raja_MBZ on March 08, 2016, 12:16:22 PM
Honestly, the only thing you can do is try to remember if you have one more fine backup, other than that, I guess all is lost. Even if I carry just half of bitcoin in my wallet, I keep it's backup like at 5 different places.