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?
—Jens
|