Unable to access CouchDB’s Futon remotely

I’d set up CouchDB on one of my development servers to play around with. Part of that involved messing with Futon, which is CouchDB’s web interface. For some reason however I was unable to access the interface from my local machine.

Running netstat -an | grep 5984 showed CouchDB to be bound to 127.0.0.1:5984, therefore I couldn’t access it remotely. After changing that configuration setting (in local.ini) and CouchDB I was still unable to access it.

It turns out that until you stop/kill the Erlang process that CouchDB runs on, it won’t reload the config file.

To achieve that:

Find the process number that Erlang/Beam is running on

ps ax | grep beam

Kill the process

kill PID_HERE

Restart CouchDB

/etc/init.d/couchdb restart

And it should now have reloaded your config file.

Answer initially found from this StackOverflow Question.

Advertisements

Published by:

Skyrail

Production Facilitator at Audacious Church Previously Software Developer at UKFast Ltd. and Web Applications Developer at SenseLogix Ltd. Graduate of Renewable Energy BSc from the University of Exeter. Experience with PHP, MySQL, Javascript, CSS and HTML.

Categories Databases, LinuxLeave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s