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
2
  • Do not use backslash and space symbols in folder name
    – amaclin
    Commented Nov 30, 2018 at 19:12
  • @aaronson If that was the solution, can either of you turn it into an answer so it can be marked accepted? Commented Dec 1, 2018 at 18:02

2 Answers 2

1

Do not use backslash and space symbols in folder name

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.

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 Support
    – CypherPoet
    Commented Dec 20, 2018 at 5:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.