couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Bug in Debian /etc/init.d/couchdb script
Date Sun, 22 Jul 2012 18:52:50 GMT
I just got a Raspberry Pi, put the "Raspbian" distro of Debian on the SD card, and of course
wasted no time installing CouchDB 1.2 via apt-get. Unfortunately it fails to start up, without
some manual tweaking.

The problem is that the directory /var/run/couchdb gets created with root ownership, so couchdb
(running as user 'couchdb') can't write to it. This causes startup to abort.

The fix is very simple: just edit /etc/init.d/couchdb and add the following line immediately
after 'mkdir -p "$RUN_DIR"' (line 86):
	chown couchdb:couchdb "$RUN_DIR"

This seems like kind of a glaring issue :/ Is it known? Is it specific to Raspbian somehow,
or to all Debians?

View raw message