couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

On Mac: Local.ini file location? couchdb 2.1.1

Open sensiblearts opened this issue 9 years ago • 11 comments

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

sensiblearts avatar Nov 25 '17 21:11 sensiblearts

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...?

sensiblearts avatar Nov 25 '17 22:11 sensiblearts

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

sensiblearts avatar Nov 26 '17 02:11 sensiblearts

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.

brendand avatar Dec 17 '17 08:12 brendand

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

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

aal89 avatar Dec 19 '17 14:12 aal89

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

brendand avatar Dec 21 '17 04:12 brendand

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

jhau avatar Jan 31 '18 05:01 jhau

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

intersides avatar Apr 24 '18 08:04 intersides

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 avatar Oct 17 '18 14:10 marklindsay24

@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.

wohali avatar Oct 18 '18 16:10 wohali

I installed couchDB with Homebrew Then started couchDB Experienced the error with not having a Admin user setup.

vi /usr/local/Cellar/couchdb/3.2.0/etc/local.ini

[admins]
admin = mysecretpassword

Then tried couchDB using the terminal again, and it started. I found the path by search Hombrew % brew list couchDB | grep ini

I was then able to log into the web ui, put this in browser http://127.0.0.1:5984/_utils/#

xpagesbeast avatar Feb 06 '22 00:02 xpagesbeast

@xpagesbeast Thanks heaps

brew list couchDB | grep ini
/opt/homebrew/Cellar/couchdb/3.3.2/etc/default.ini
/opt/homebrew/Cellar/couchdb/3.3.2/etc/local.ini
/opt/homebrew/Cellar/couchdb/3.3.2/erts-13.2/doc/html/init.html

tapiocaboy avatar Apr 28 '23 02:04 tapiocaboy