In Windows, bitcoin-qt fails when the "blocks" directory (or any other directories, for that matter) is a junction to a directory. It fails to detect that it exists, tries to create it, and the create fails.
Block directory cannot be a "junction" on windows #6495
issue rebroad opened this issue on July 30, 2015-
rebroad commented at 9:00 PM on July 30, 2015: contributor
-
dcousens commented at 5:23 AM on July 31, 2015: contributor
On Linux I also saw odd behaviour, if the
datadirdoesn't exist, it dumps all files in the directory above (chainstate, etc) then exits. - laanwj added the label Windows on Jul 31, 2015
-
laanwj commented at 2:21 PM on July 31, 2015: member
Non-support for junctions on windows is a known issue. For some reason one cannot just treat them as directories like Unix symlinks.
-
casey commented at 3:07 PM on July 31, 2015: contributor
@dcousens I couldn't reproduce the behavior that you mentioned. I created /tmp/foo, and then ran 'bitcoin-qt -datadir=/tmp/foo/bar', afterwards /tmp/foo was still empty. Can you come up with steps to reproduce, and then open another issue? (since this one seems to be unrelated)
- laanwj renamed this:
boost::filesystem::create_directory: Cannot create a file when that file already exists
Block directory cannot be a "junction" on windows
on Feb 9, 2016 - laanwj added the label Block storage on Feb 16, 2016
-
MarcoFalke commented at 12:27 AM on April 27, 2020: member
The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.
Closing due to lack of interest. Pull requests with improvements are always welcome.
- MarcoFalke closed this on Apr 27, 2020
- DrahtBot locked this on Feb 15, 2022