I keep getting this error:

EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15
the options configuration file contains an invalid line 'XXXXXXXXXXX'

Where can I find the bitcoin.conf file?


The location of bitcoin.conf depends on your operating system:

Windows XP             C:\Documents and Settings\<username>\Application Data\Bitcoin\bitcoin.conf
Windows Vista, 7, 10C:\Users\<username>\AppData\Roaming\Bitcoin                                             
Linux                         /home/<username>/.bitcoin/bitcoin.conf                                                           
Mac OSX                  /Users/<username>/Library/Application Support/Bitcoin/bitcoin.conf               


|improve this answer|||||
  • OSX -> OS X (e.g. ref. en.wikipedia.org/wiki/Mac_OS_X) – Peter Mortensen Mar 31 '14 at 18:05
  • 2
    On my mac the bitcoin.conf file doesn't exist. I'm not sure if simply creating it will cause it to be used by bitcoin-qt – portforwardpodcast Mar 6 '15 at 1:46
  • 3
    @portforwardpodcast: Bitcoin Core will check for the existence of the file on startup, so yes, simply creating it is sufficient. – Murch Nov 1 '16 at 21:05
  • I use Linux Ubuntu(16.04 LTS) and i've found file /root/.config/Bitcoin/bitcoin.conf but it's content was not like a normal bitcoin.conf – Андрей Аршинов Apr 10 '17 at 11:31
  • @PeterMortensen macOS, not OS X. – MCCCS Apr 28 '17 at 12:33

I would guess that that refers to your bitcoin.conf. There's platform-specific information on where to find it at: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

|improve this answer|||||

Note that for Windows the location of the configuration folder where bitcoin.conf is located is saved in the registry.

Its default path is indeed C:\Users\<username>\AppData\Roaming\Bitcoin but if that location was changed then in order to find the current folder you will have to look in HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt at the REG_SZ strDataDir.

|improve this answer|||||

In bitcoin-core version 0.14.2, it looks for it in the data-dir folder https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

The bitcoin.conf file is not created by default, you will need to create it yourself. And also, I never had a c:\users\[username]\appdata\roaming\bitcoin folder as many online answers will suggest, this is because when I installed the bitcoin core program, I chose to put my data directory in a different place than default.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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