Couchdb: On Mac: Local.ini file location? couchdb 2.1.1

Created on 25 Nov 2017  路  9Comments  路  Source: apache/couchdb

UPDATE: Ignore this, see comment questions below.

I broke Fauxton by I tried to config bind to 192.168.1.6 (instead of 127.0.0.1) in the config.

Aside: I tried to do this because another (windows) computer was getting "connection refused" from the Mac (with an open Mac firewall), _but connection was not refused when I had it bind to 192.168.1.6._

But that broke Fauxton -- which is auto-launching repeatedly and looking for 127.0.0.1.

So where is local.ini hiding? Or, how/where is Fauxton saving config state?

The local.ini file in the Application pkg folder seems to be a template -- it is not being changed, even though Fauxton is saving state. I looked all over.

OS X 10.11.6

Most helpful comment

For everyone who is still figuring this out. It should be in your users Library folder under Preferences.

# cd ~/Library/Preferences/couchdb2-local.ini

All 9 comments

Well, it seems to have fixed itself in the 30 minutes I spent looking for local.ini.

BUT I still cannot figure out where Fauxton is saving its config state? File path...?

I still don't know where the ini file is on Mac, but I finally got it working on Windows/WSL.

I'd also like to know this. I looked in ~/Library/Application Support/CouchDB2/etc/couchdb, but there was no local.ini file there, even though the changes saved in the Fauxton configuration UI are being saved somewhere.

For everyone who is still figuring this out. It should be in your users Library folder under Preferences.

# cd ~/Library/Preferences/couchdb2-local.ini

Oh yes! It's there. Weird. Thanks!

I tried setting config option in ~/Library/Preferences/couchdb2-local.ini and ~/Library/Application\ Support/CouchDB2/etc/couchdb/local.ini but neither file has any effect, the only config file that seems to work is /Applications/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/etc/default.ini

Under MacOS, For some reason ~/Library/Preferences/couchdb2-local.ini did not had any effects (Usually it does).
I had to manually change /Applications/Apache CouchDB.app/Contents/Info.plist ip address and restart couchdb

I have tried for two days trying to figure out how to override DB location when running the Mac App.

Done of following works:
~/Library/Preferences/couchdb2-local.ini
/Applications/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/etc/default.ini

Please HELP!

@marklindsay24 the repository containing the script used to build the Mac app is here: https://github.com/janl/build-couchdb-mac

My guess is that you have to edit that Info.plist file as previously mentioned in this thread - I don't use a Mac so I'm at the limits of my ability to help you here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

mtabb13 picture mtabb13  路  5Comments

wohali picture wohali  路  5Comments

maciozo picture maciozo  路  5Comments

ondra-novak picture ondra-novak  路  4Comments