Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Mebits3 on August 05, 2023, 12:33:29 PM



Title: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: Mebits3 on August 05, 2023, 12:33:29 PM
Hi There,

I've accidentally set these conflicting commands through the config button within the Bitcoin core GUI.

There is no botcoin.conf file I can find.

Now I cannot run the node as it freezes on this message.

I've tried reinstalling Bitoincore but it STILL comes up with the error.

Does anyone know where these commands are being kept, and how to restore/edit?

Thanks

Running on macbook


Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: LoyceV on August 05, 2023, 12:40:18 PM
On Linux I have those 2 files:
.bitcoin/bitcoin.conf (this one is empty)
.config/Bitcoin/Bitcoin-Qt.conf (this one is used)
See Bitcoin Wiki (https://en.bitcoin.it/wiki/Data_directory#Default_Location) for other systems.


Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: Mebits3 on August 05, 2023, 12:54:42 PM
Thanks,

I don't have either of these on my computer.

I don't even have the the folder location ~/Library/Application Support/Bitcoin/ that Bitcoin wiki suggests (how ever it is installed)

I have started using the latest version 25.0, wonder if that's anything to do with it.


Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: nc50lc on August 05, 2023, 12:58:54 PM
I've accidentally set these conflicting commands through the config button within the Bitcoin core GUI.
If you mean the "Open configuration file" button that opens a "bitcoin.conf" file in the GUI, it is saved in the data directory.
So, the bitcoin.conf file where you set those conflicting config should be in the root of your custom bitcoin datadir if you're not using the default.


Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: DaveF on August 05, 2023, 02:19:38 PM
If you do not have the ~/Library/Application Support/Bitcoin/ folder you would have had to have either removed it by accident or specified a different location.
Did you try using spotlight to find it?
https://support.apple.com/guide/mac-help/if-you-cant-find-a-file-on-mac-mchlp2305/mac

Do you remember setting a different location, even if it was a while ago.

The other option is you have some drive corruption causing issues. Probably not this since it should pop up other errors, but you never know.

-Dave


Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: Mebits3 on August 05, 2023, 03:06:36 PM
Thanks,

I didn't change the location of anything when installing.

I just can't find any of the locations/files discussed, or that are on any of the guides! I've even checked hidden files and folders.

I am new to mac so there may be something obvious I'm missing. But as far as I am aware just use the search bar in finder.

I cant even find the data file, yet my drive shows that there is roughly 500Gb data floating around somewhere!





Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: DaveF on August 05, 2023, 03:30:34 PM
I cant even find the data file, yet my drive shows that there is roughly 500Gb data floating around somewhere!

Try following the section in here on how to find large folders:

https://mackeeper.com/blog/find-delete-large-files-on-mac/

Once you locate that then the conf file should be in a folder near there.
Keep in mind Apple / MacOS likes to hide as much as possible from the user since 'they know better' so you might have to jump through a few hoops to find things.

Obligatory also, make sure the machine is fully updated and running the latest version of the OS there have been a couple of very severe vulnerabilities patched this year, and yet I still see people running older builds of the OS even as it's popping up the 'update now' warning.

-Dave


Title: Re: Locked out! Error: Cannot set -listen=0 together with -listenonion=1
Post by: Mebits3 on August 05, 2023, 03:51:08 PM
Eureeka!

Jesus that was hard work!

Thanks Dave, not only have I chosen to learn something as complex as running a bitcoin node+wallet+mining+Tor. But hey why not change from a life of Dos/windows to a mac for good measure!!  :D

cheers

Steve