So, I'm trying to launch Bitcoin Core and I keep getting this error message:
A fatal error occurred. Check that settings file is writable, or try running with -nosettings.
Details: Error: Unable to open settings file /Volumes/6TB iMac/settings.json.tmp for writing
I'm on a 2015 iMac with a 1TB SSD and a 6TB internal hard drive. Everything was fine before, but now I wanted to switch the storage to the 6TB drive for the full node. I think the issue might be that the 6TB drive requires a password to access it?
I tried reinstalling Bitcoin Core and even rebooting the CPU, but that didn't help. Any tips? I'm not super tech-savvy, but I was thinking about trying to run it with -nosettings. I assume that's a Terminal command, but I'd love some help on how to do it right.
Or if anyone has advice on starting fresh, that would be awesome.
Thanks a ton!
Rename your bitcoin.conf file bitcoin.conf.old and see if that helps.
Location of the file: https://github.com/bitcoin/bitcoin/blob/master/doc/bitcoin-conf.md
You can also just try editing the file to change the path back.
-Dave
Thanks, I tried it but no luck. I had actually deleted that whole folder when I tried to reinstall Bitcoin Core, so I moved it back from trash but no joy, same error message.
It seems that it does not have the privilege to write on settings.json.tmp when trying to open Bitcoin core. You might need to run the Bitcoin core as administrator or it requires ROOT privileges.
Can you try to open Bitcoin core with the sudo command or run it as a root?
Open the terminal and try this command below
Other ways to run apps in root privilege can be found here.
OK I am able to run it this way thanks! But if I quit and try to start normally it throws same error. How can I fix this? I don't want to download whole thing and then have to do it again for some reason.
BTW I see this message in Terminal:
users-iMac:~ admin$ sudo /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
: You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain.
Please restart with -reindex or -reindex-chainstate to recover.
Bitcoin Core shouldn't need root priviledges to run properly, even on MacOS. I'd rather check if Bitcoin Core and file permissions are properly setup on OP's system than run an internet connected application with root priviledges. I consider Bitcoin Core pretty secure but anyway it's not supposed to run as root.
OP when you moved the files around from the 1TB to the 6TB how did you do it? Just a copy & paste? Some other method?
Is there a timeout on the unlock of the 6TB drive? Could it have re-locked before the files finished copying?
I don't use Macs that much but I have had at very very very rare times permissions get blown when moving files in linux to an encrypted drive. Can't duplicate it and always thought it was just my bizarre setup. This looks similar.
-Dave
This is, in general, a very bad idea! It messes up basic security, and anything that doesn't require rood privileges shouldn't be running with root privileges.
It's a much better idea to check the permissions at the desired path, and change those to match your needs.
I think I just want to start over. But reinstalling Core doesn't change the error. Maybe I'll reinstall MacOS, which seems like overkill but I don't see another way to fix this right now.
Thanks for the help.
Was that drive unlocked and can your user read and write files to it? This seems likely to be the culprit.
The error that you get is specifically related to being unable to write the settings.json file. This would be caused by filesystem permissions errors and just filesystem errors in general.