Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank-you for the thorough guide! SSH tunnel is a nice technique, seems more secure than editing local.ini to open up Futon to the world.
Hi, Thanks for your article. I tried to insert new document but getting errors,
Hera is my insert code:
curl -X POST -d ‘{“todo”:“task 1”, “done”:false}’ http://localhost:5984/rbp -H “Content-Type:application/json”
Output: {“error”:“not_found”,“reason”:“no_db_file”}
Hi! I’m trying to follow your guide, but it seems to be a problem with the server. When I click in Fix this, and send an admin and a password it just returns a 500 Internal Server Error and in console: “An error occurred retrieving/updating the server configuration: eacces”.
Do you know what it might be causing this issue?
UPDATE - I figured this out but left the notes for other people…
Hi Kulshekhar - thanks for this, it got me further than I had been but I’m still seeing problems. After removing and then installing it looks ok on the localhost (on an AWS ec2 Ubuntu instance):
ubuntu@ip-172-31-43-177:/etc/apache2$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1106/sshd
tcp 0 0 127.0.0.1:5984 0.0.0.0:* LISTEN 2110/beam
tcp6 0 0 :::80 :::* LISTEN 1558/apache2
tcp6 0 0 :::22 :::* LISTEN 1106/sshd
and curl works as expected:
ubuntu@ip-172-31-43-177:/etc/apache2$ curl localhost:5984
{"couchdb":"Welcome","uuid":"3c6b2abe495d389b7e8ef7312731b9c5","version":"1.5.0","vendor":{"name":"Ubuntu","version":"14.04"}}
but my problem is that I can’t see the db when I use a web browser to try to view it from my own machine I get connection refused, basically no web interface.
My EC2 instance is open for outbound connections to anywhere and for inbound connections on port 5984 (for both tcp and udp, fwiw). I temporarily changed apache to bind to port 5984 and it served pages fine - so it seems there’s nothing specific about the port of my own ISP that is blocking connections.
Other info:
ubuntu@ip-172-31-43-177:/etc/apache2$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
ubuntu@ip-172-31-43-177:/etc/apache2$ couchdb -V
couchdb - Apache CouchDB 1.5.0
The suspicious thing is this:
ubuntu@ip-172-31-43-177:/etc/apache2$ couchdb -s
Apache CouchDB is not running.
UPDATE: I saw on a different link here that couchdb binds to the localhost ip address and I didn’t notice, hence it serves pages to curl localhost no problems but won’t serve via remote connections.
Solution was to stop couchdb with sudo stop couchdb, then change /etc/couchdb/ default.ini and local.ini to replace bind_address = 127.0.0.1 with 0.0.0.0. Then start couchdb with sudo start couchdb:
It now binds to all addresses and you should be good to go:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1106/sshd
tcp 0 0 0.0.0.0:5984 0.0.0.0:* LISTEN 3281/beam
tcp6 0 0 :::80 :::* LISTEN 1558/apache2
tcp6 0 0 :::22 :::* LISTEN 1106/sshd
NOTE: I still get this, no idea why:
ubuntu@ip-172-31-43-177:/etc/couchdb$ sudo couchdb -s
Apache CouchDB is not running.
Thanks for this. I have been meaning to upgrade from 1.5 to 1.6.1 for ages - these steps were the clearest and simplest I found and worked right first time. Really appreciate it.
Hi,
I can’t add the ppa on my droplet. I got the following message :
Cannot add PPA: 'ppa:couchdb/stable'.
Please check that the PPA name or format is correct.
I tried that on a other ubuntu servers and it’s working. But it looks like my droplet can’ t resolve the PPA. I’ve tried several solutions already but the only thing left is the setup the proxy settings on the droplet, but I can’t find anything on DigitalOcean about a default proxy. Could you help me out ?
Great guide! Any update for Couchdb 2.0? Some information on Ubuntu and the required daemon scripts would be helpful.