Bitcoin Forum
December 05, 2016, 12:38:59 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Problems with Bitcoin 0.4 and truecrypt  (Read 633 times)
stoechi
Jr. Member
*
Offline Offline

Activity: 57


View Profile
October 15, 2011, 03:34:00 AM
 #1

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

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480941539
Hero Member
*
Offline Offline

Posts: 1480941539

View Profile Personal Message (Offline)

Ignore
1480941539
Reply with quote  #2

1480941539
Report to moderator
payb.tc
Hero Member
*****
Offline Offline

Activity: 812



View Profile
October 15, 2011, 04:41:28 AM
 #2

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.
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700


View Profile
October 15, 2011, 08:56:10 AM
 #3

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.
JoelKatz
Legendary
*
Offline Offline

Activity: 1386


Democracy is vulnerable to a 51% attack.


View Profile WWW
October 15, 2011, 09:07:41 AM
 #4

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.

I am an employee of Ripple.
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252


View Profile
October 15, 2011, 10:08:22 AM
 #5

And why is not the correct approach to try to see if directory exists? And only after that to try to create it?
stoechi
Jr. Member
*
Offline Offline

Activity: 57


View Profile
October 15, 2011, 04:13:54 PM
 #6

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
stoechi
Jr. Member
*
Offline Offline

Activity: 57


View Profile
October 15, 2011, 05:36:45 PM
 #7

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
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!