I\'ve installed CouchDB on my vagrant 0.9.0
box that is running CentOS 6.2
.
In Vagrantfile I\'ve added config.vm.forward_por
It's quite likely that your CouchDB is listening on address 127.0.0.1
of the virtual machine (not of the physical machine). This is the default for CouchDB. Do you have the following in local.ini
?
[httpd]
bind_address = 0.0.0.0
After restarting CouchDB check with netstat
, on the virtual machine, if the change took effect:
sudo netstat -tlnp |grep :5984
Then check that CouchDB is running fine from the virtual machine:
curl http://127.0.0.1:5984/
If you don't see {"couchdb":"Welcome","version":"1.1.1"}
, check the logs for error messages. It may be some permissions problem.
How have you installed CouchDB?
in my case, the solution to a very similar problem was much more obvious: coming from ubuntu, I didn't expect a firewall to be running on the centos box
this will disable it:
sudo service iptables stop
thanks to this blog!