Bitcoin Forum
May 02, 2024, 06:35:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Settings file could not be written (Mac)  (Read 101 times)
kittyhodl (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
November 25, 2023, 09:09:37 PM
Last edit: November 25, 2023, 10:07:17 PM by kittyhodl
Merited by ABCbits (1)
 #1

When I try to open Bitcoin Core I get the following error:

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 using an 2015ish iMac with 1TB SSD and 6TB internal HD. Had Bitcoin Core running OK but wanted to change storage location to the 6TB drive so I could load full node, but I think maybe the fact that the 6TB drive needs a password to open messed things up?

I tried to reinstall Bitcoin Core (including cpu reboot) but no joy. Any advice? I'm not super technical but maybe I can run with -nosettings? I'm assuming that is a Terminal command, but would need some guidance on doing that properly.

Or just advice on how to start again from scratch would be good.

Thanks in advance!
1714674951
Hero Member
*
Offline Offline

Posts: 1714674951

View Profile Personal Message (Offline)

Ignore
1714674951
Reply with quote  #2

1714674951
Report to moderator
1714674951
Hero Member
*
Offline Offline

Posts: 1714674951

View Profile Personal Message (Offline)

Ignore
1714674951
Reply with quote  #2

1714674951
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714674951
Hero Member
*
Offline Offline

Posts: 1714674951

View Profile Personal Message (Offline)

Ignore
1714674951
Reply with quote  #2

1714674951
Report to moderator
1714674951
Hero Member
*
Offline Offline

Posts: 1714674951

View Profile Personal Message (Offline)

Ignore
1714674951
Reply with quote  #2

1714674951
Report to moderator
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6259


Crypto Swap Exchange


View Profile WWW
November 25, 2023, 10:24:00 PM
Merited by EFS (2)
 #2

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
kittyhodl (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
November 25, 2023, 10:44:34 PM
 #3

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.
BitMaxz
Legendary
*
Online Online

Activity: 3248
Merit: 2955


Block halving is coming.


View Profile WWW
November 25, 2023, 11:52:16 PM
Merited by EFS (2)
 #4

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

Code:
sudo "\file path from hard drive to application. app/Contents/MacOS/application name"

Other ways to run apps in root privilege can be found here.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
kittyhodl (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
November 26, 2023, 01:43:32 AM
 #5

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

Code:
sudo "\file path from hard drive to application. app/Contents/MacOS/application name"

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

Activity: 756
Merit: 1110


Crypto Swap Exchange


View Profile
November 26, 2023, 07:50:04 AM
Merited by LoyceV (4), DaveF (2), ABCbits (1)
 #6

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6259


Crypto Swap Exchange


View Profile WWW
November 26, 2023, 12:57:17 PM
 #7

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Online Online

Activity: 3304
Merit: 16583


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 26, 2023, 03:46:47 PM
 #8

Code:
sudo "\file path from hard drive to application. app/Contents/MacOS/application name"
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.

kittyhodl (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
November 26, 2023, 09:24:25 PM
 #9

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

Activity: 3388
Merit: 6577


Just writing some code


View Profile WWW
November 27, 2023, 01:18:18 AM
Merited by ABCbits (1)
 #10

but I think maybe the fact that the 6TB drive needs a password to open messed things up?
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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!