I've managed to install CouchDB onto a remote instance running Ubuntu, and can see that the DB is responding to my calls using curl (via the command line). Now, if I wish to access futon, I have to make calls by typing the command:
ssh -i i_am_a_key.pem -L 5984:localhost:5984 ubuntu@1<the IP address of the remote instance>
Following which, I open my web browser and type:
http://127.0.0.1:5984/_utils/
to access the web interface. In this process, I am able to access Futon, if and only if, I ssh into the instance, which is highly inconvenient. I tried looking up ways to allow me to gain access to my instance via the IP address of the instance and found the following methods:
- Edit the local.ini and default.ini file in /etc/init.d/ where I set the bind_address from 127.0.0.1 to 0.0.0.0
Following which, I go to /etc/couchdb/ and type:
sudo couchdb stop
and
sudo couchdb restart
in hopes of restarting couchdb and ensuring that the changes are retained. Following this, I open a browser and type:
http://<IP address of my remote instance>:5984/_utils/
This did not work.
- Access Futon using http://127.0.0.1:5984/_utils/
and go to the Configuration tab on the right hand side.
Go to the bind address row and set it manually to 0.0.0.0 and then stop and restart the couchdb setup as stated in the previous point. This did not work.
- I've tried to set the bind address to the IP address of the instance as well and it did not work.
Notes:
I have unblocked port 5984 (both ingress and egress) in my firewall.
I am able to get a Welcome response from CouchDB when I type:
curl http://127.0.0.1:5984/
and also for:
curl http://<the IP address of my instance>:5984/
It would be highly appreciated if someone can provide clear step-by-step details as to how to go about solving this issue. Or jus refer to some resource which states this process in as detailed a manner as possible... I've been scouring the net for a few days now and its weird that not a single solution is working out.