Bitcoin Forum

Other => Beginners & Help => Topic started by: stoechi on October 15, 2011, 03:34:00 AM



Title: Problems with Bitcoin 0.4 and truecrypt
Post by: stoechi on October 15, 2011, 03:34:00 AM
Hi,

does anyone know, why i cant use my truecrypt-container anymore with the new BTC-Client?

Pointing to it via "-datadir" option everything worked fine with the old client. I always get the error from BTC-Client:

EXCEPTION: N5boost11filesystem316filesystem_errorEboost::filesystem::create_directory: Access rejected: "N:\" C:\Program Files (x86)\Bitcoin\bitcoin.exe in AppInit()

Has anybody encountered similar problems?

Thx



Title: Re: Problems with Bitcoin 0.4 and truecrypt
Post by: payb.tc on October 15, 2011, 04:41:28 AM
i don't know if this is the issue or not, but i seem to recall not being able to have a root folder as the data dir.

try creating n:\data\ and pointing it there.


Title: Re: Problems with Bitcoin 0.4 and truecrypt
Post by: SomeoneWeird on October 15, 2011, 08:56:10 AM
i don't know if this is the issue or not, but i seem to recall not being able to have a root folder as the data dir.

try creating n:\data\ and pointing it there.


+1.


Title: Re: Problems with Bitcoin 0.4 and truecrypt
Post by: JoelKatz on October 15, 2011, 09:07:41 AM
i don't know if this is the issue or not, but i seem to recall not being able to have a root folder as the data dir.

try creating n:\data\ and pointing it there.

Yep. It's a reported bug in the Bitcoin client. The workaround is to use a subdirectory.

Essentially, the client tries to create its data directory to make sure it exists. If it fails with any error other than "directory already exists", it barfs. Trying to create 'n:\' will fail, obviously, and not because the directory already exists, because there is no parent directory in which to create it. So the client sees the unusual error and assumes something is wrong with its data directory.

The correct approach is to attempt to create the directory, ignoring any errors generated. Then it should attempt to access the directory, and fail if it cannot.


Title: Re: Problems with Bitcoin 0.4 and truecrypt
Post by: ovidiusoft on October 15, 2011, 10:08:22 AM
And why is not the correct approach to try to see if directory exists? And only after that to try to create it?


Title: Re: Problems with Bitcoin 0.4 and truecrypt
Post by: stoechi on October 15, 2011, 04:13:54 PM
Hi,

thx for the reply, but i tried this already before posting the issue, as so many other things. It doesnt work, but it did with the old client.

Any other guesses?

Thx


Title: Re: Problems with Bitcoin 0.4 and truecrypt
Post by: stoechi on October 15, 2011, 05:36:45 PM
ROLLBACK! Everything fine, you guys were right, it works. The problem was, that i copied the whole stuff from the old working directory to the truecrypt container. Bitcoin doesnt want this, it wants to create the whole thing itself after the installation, and then you replace the wallet.dat and voilá!

Thx 4 quick help