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 D1D0E9206 for ; Thu, 10 May 2012 18:46:50 +0000 (UTC) Received: (qmail 45177 invoked by uid 500); 10 May 2012 18:46:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 45130 invoked by uid 500); 10 May 2012 18:46:49 -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 45122 invoked by uid 99); 10 May 2012 18:46:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 18:46:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tisdall@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 18:46:43 +0000 Received: by eaai12 with SMTP id i12so334120eaa.11 for ; Thu, 10 May 2012 11:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=X8Mll7lxOhQDN2NQ4f2KOGfJKATyFbk0lYIprSdnAkY=; b=fr3l/oTA2YRr6CgomQsyHgOODWVdxpQmzPhcrpRF8YI1lhUTt3cKfwnsy8PcaIG9aD JaVuG7cOklSmeUUEAnSH2NE9kwzQvftyQjFalHULmN5gqsQF9+yMWk2RWBZ/tUXx8q8j RvR1cVlRHVtdqfJywOIq2ItdwUXgOT4rRnUKQA6c2W7ewcVRvUYEFSsZB1UKnE3r1QQT IDPu/F/IxYrLh4dCCRilwTH4VZ81xNhm/EjDZLpWELy9uZP+SdjAGNZ/4cTi724GgNYi genBIoO5wNNQPDPNbleb+Ags2QeP7PQZzZjeYgXlWw6drFXAR0UXZaae7uMxIMxaQp/e A8rg== MIME-Version: 1.0 Received: by 10.213.13.197 with SMTP id d5mr1700379eba.21.1336675581705; Thu, 10 May 2012 11:46:21 -0700 (PDT) Received: by 10.14.99.207 with HTTP; Thu, 10 May 2012 11:46:21 -0700 (PDT) Date: Thu, 10 May 2012 14:46:21 -0400 Message-ID: Subject: problems with etc/init.d/couchdb script From: Tim Tisdall To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015174be63c3a3cd004bfb30906 X-Virus-Checked: Checked by ClamAV on apache.org --0015174be63c3a3cd004bfb30906 Content-Type: text/plain; charset=ISO-8859-1 I've tried doing lots of Google searches for an answer to this, but I haven't been successful... I've installed Couchdb 1.2 from source on Debian 6. I configured it with *--localstatedir=/var --sysconfdir=/etc . Everything seems to be installed correctly.* * * *If I run couchdb from the command prompt it seems to run correctly and I'm able to hit the port with curl and get *{"couchdb":"Welcome","version":"1.2.0"} successfully. If I run it as "couchdb -b" it also works properly. Now, the problem... if I try to run things using /etc/init.d/couchdb it doesn't seem to work properly. I don't get any error messages but the curl request returns "couldn't connect to host". Also, there seems to be a process running under the couchdb user id, but it's not the same process number as what's found in /var/run/couchdb/couchdb.pid. ps reports it as "/bin/sh -e /usr/local/bin/couchdb -a /etc/couchdb/default.ini -a /etc/couchdb/local.ini -b -r 5 -p /var/run/couchdb/couchdb.pid -o /dev/null -e /dev/null -R" but there's no response using curl. Anyone have any ideas how to track down the problem? I don't see any errors in the logs. I've tried redirecting the STDERR to /dev/log/couchdb/stderr.log but get the error "Starting database server: couchdbApache CouchDB needs write permission on the STDERR file: /dev/log/couchdb/stderr.log" despite giving it full write permissions. --0015174be63c3a3cd004bfb30906--