Specified data directory does not exist - but it does...

1

anyone ever had a similar issue where the directory exists but bitcoin-cli isn't recognizing it? Perhaps this is related to me setting the folder up as a symlink to my external HDD?

Thank you! aaronson

-Mac-mini:~ $ bitcoin-cli -regtest generate 1
Error reading configuration file: specified data directory "/Users/---/Library/Application\ Support/Bitcoin" does not exist.
-Mac-mini:~ $ cd /Users/---/Library/Application\ Support/Bitcoin
-Mac-mini:Bitcoin $ ls
banlist.dat bitcoind.pid    chainstate  db.log      peers.dat
bitcoin.conf    blocks      database    debug.log   wallet.dat

aaronson

Posted 2018-11-30T18:32:33.553

Reputation: 11

Do not use backslash and space symbols in folder nameamaclin 2018-11-30T19:12:46.260

@aaronson If that was the solution, can either of you turn it into an answer so it can be marked accepted?Pieter Wuille 2018-12-01T18:02:16.670

Answers

0

Do not use backslash and space symbols in folder name

amaclin

Posted 2018-11-30T18:32:33.553

Reputation: 5 763

0

I just encountered this issue, too, and removing spaces (escaped or otherwise) appears to have solved the issue.

Like the OP, I was using a path containing Application\ Support.

$HOME/Library/Application\ Support/Bitcoin is the MacOS default, though, so hopefully most people won't need to set that explicitly.

Brian Sipple

Posted 2018-11-30T18:32:33.553

Reputation: 1

Curiously, though, datadir seems to be autogenerated in my bitcoin.conf file every time I run bitcoind.

That leads to issues on future runs whenever I'm using the default path, which contains Application SupportBrian Sipple 2018-12-20T05:17:45.250