Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCAEF90BA for ; Sun, 22 Jul 2012 18:53:21 +0000 (UTC) Received: (qmail 86556 invoked by uid 500); 22 Jul 2012 18:53:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 86499 invoked by uid 500); 22 Jul 2012 18:53:20 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 86491 invoked by uid 99); 22 Jul 2012 18:53:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2012 18:53:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 206.225.164.31 as permitted sender) Received: from [206.225.164.31] (HELO EXHUB020-4.exch020.serverdata.net) (206.225.164.31) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2012 18:53:12 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.9]) by EXHUB020-4.exch020.serverdata.net ([206.225.164.31]) with mapi; Sun, 22 Jul 2012 11:52:50 -0700 From: Jens Alfke To: "user@couchdb.apache.org" Date: Sun, 22 Jul 2012 11:52:50 -0700 Subject: Bug in Debian /etc/init.d/couchdb script Thread-Topic: Bug in Debian /etc/init.d/couchdb script Thread-Index: Ac1oOzECA7hNbGyfS+G5OuL3vUPQ9A== Message-ID: <21336748-1F0D-4FD0-B71D-91F1E835412F@couchbase.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I just got a Raspberry Pi, put the "Raspbian" distro of Debian on the SD ca= rd, and of course wasted no time installing CouchDB 1.2 via apt-get. Unfort= unately it fails to start up, without some manual tweaking. The problem is that the directory /var/run/couchdb gets created with root o= wnership, so couchdb (running as user 'couchdb') can't write to it. This ca= uses 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 R= aspbian somehow, or to all Debians? =97Jens=