Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 24125 invoked from network); 10 Sep 2009 11:11:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 11:11:18 -0000 Received: (qmail 65979 invoked by uid 500); 10 Sep 2009 11:11:17 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 65915 invoked by uid 500); 10 Sep 2009 11:11:17 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 65905 invoked by uid 99); 10 Sep 2009 11:11:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 11:11:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of b.candler@pobox.com designates 208.72.237.25 as permitted sender) Received: from [208.72.237.25] (HELO sasl.smtp.pobox.com) (208.72.237.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 11:11:05 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id DC6182DF13; Thu, 10 Sep 2009 07:10:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=HbMsyNQrv6b3d3COf2AfUtjZKmI=; b=NcmPvbQ k2OpWMruNDiMYiXz0b58afpYsZWlQ41xSqndyZ/xUG9v8payW31SGWPcG3bND6x4 ryOiMUBgvuQOr5mdV0QmIZJw0TWVjx8MqegPl9jGmlHBsTZ1GiLM0FyHEX972fkj J3z0lZiEA3T209DYm3iqi8CMfbqe8c4QY41M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=Y+wDpEoo9H9xW5qHrWtgYZrMUeCBT/Jik R1l1lRowOr8238EcS22BNy3OvHIISgBGUNkqwwR9hc8PrGpEd7BaD1G7h/NqefFC 4GlkCZIkmh3bL3ECCoVPBstAwsvttu5NimOlJK/qg7HZ3/z9/S/5ivOM/NoLje6u DgvYhzP9pM= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id CC0E72DF12; Thu, 10 Sep 2009 07:10:41 -0400 (EDT) Received: from mappit (unknown [80.45.95.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 5DA762DF11; Thu, 10 Sep 2009 07:10:40 -0400 (EDT) Received: from brian by mappit with local (Exim 4.69) (envelope-from ) id 1MlhXy-0003pQ-Io; Thu, 10 Sep 2009 12:10:38 +0100 Date: Thu, 10 Sep 2009 12:10:38 +0100 From: Brian Candler To: Noah Slater Cc: dev@couchdb.apache.org Subject: Re: CouchDB failing to open socket 5984 ? Message-ID: <20090910111038.GA14181@uk.tiscali.com> References: <20090908153119.GA5952@tumbolia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090908153119.GA5952@tumbolia.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: 93FFF3B4-9DFA-11DE-A050-A13518FFA523-28021239!a-pb-sasl-quonix.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 08, 2009 at 04:31:19PM +0100, Noah Slater wrote: > I presumed you'd just add PREFIX to get: > > /usr/local/etc/default/couchdb > > Please check there. Oh thanks - I hadn't come across that one before. Having both etc/couchdb/default.ini and etc/default/couchdb is a bit confusing. Anyway, this is what I get. $ cat /usr/local/etc/default/couchdb # Sourced by init script for configuration. COUCHDB_USER=couchdb #COUCHDB_STDOUT_FILE=/dev/null #COUCHDB_STDERR_FILE=/dev/null COUCHDB_STDOUT_FILE=/tmp/couchdb.stdout COUCHDB_STDERR_FILE=/tmp/couchdb.stderr COUCHDB_RESPAWN_TIMEOUT=5 COUCHDB_OPTIONS= $ sudo /usr/local/etc/init.d/couchdb start * Starting database server couchdb [ OK ] $ ls -l /tmp/couchdb* -rw-r--r-- 1 couchdb couchdb 53 2009-09-10 12:01 /tmp/couchdb.stderr -rw-r--r-- 1 couchdb couchdb 1 2009-09-10 12:01 /tmp/couchdb.stdout $ cat /tmp/couchdb.stderr heart_beat_kill_pid = 16870 heart_beat_timeout = 11 $ sudo /usr/local/etc/init.d/couchdb stop * Stopping database server couchdb [ OK ] $ cat /tmp/couchdb.stderr heart_beat_kill_pid = 16870 heart_beat_timeout = 11 $ ps auxwww | grep couchdb couchdb 16857 0.0 0.1 1772 532 pts/0 S 12:01 0:00 /bin/sh -e /usr/local/bin/couchdb -a /usr/local/etc/couchdb/default.ini -a /usr/local/etc/couchdb/local.ini -b -r 5 -p /usr/local/var/run/couchdb/couchdb.pid -o /tmp/couchdb.stdout -e /tmp/couchdb.stderr -R couchdb 16869 0.0 0.0 1772 292 pts/0 S 12:01 0:00 /bin/sh -e /usr/local/bin/couchdb -a /usr/local/etc/couchdb/default.ini -a /usr/local/etc/couchdb/local.ini -b -r 5 -p /usr/local/var/run/couchdb/couchdb.pid -o /tmp/couchdb.stdout -e /tmp/couchdb.stderr -R couchdb 16870 0.1 1.0 9160 5148 pts/0 Sl 12:01 0:00 /usr/lib/erlang/erts-5.6.5/bin/beam -Bd -K true -- -root /usr/lib/erlang -progname erl -- -home /usr/local/var/lib/couchdb -noshell -noinput -sasl errlog_type error -couch_ini /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini -s couch -pidfile /usr/local/var/run/couchdb/couchdb.pid -heart couchdb 16875 0.0 0.0 1568 424 ? Ss 12:01 0:00 heart -pid 16870 -ht 11 candlerb 18383 0.0 0.1 3008 756 pts/0 R+ 12:03 0:00 grep couchdb $ sudo kill 16875 $ ls -l /tmp/couchdb* -rw-r--r-- 1 couchdb couchdb 87 2009-09-10 12:03 /tmp/couchdb.stderr -rw-r--r-- 1 couchdb couchdb 89 2009-09-10 12:03 /tmp/couchdb.stdout $ cat /tmp/couchdb.stderr heart_beat_kill_pid = 16870 heart_beat_timeout = 11 Kernel pid terminated (heart) () $ cat /tmp/couchdb.stdout {"Kernel pid terminated",heart,{port_terminated,{heart,loop,[<0.0.0>,#Port<0.6>,[]]}}} $ So... I don't think that really tells you very much, but more clues gratefully welcomed. Regards, Brian. P.S. This is the version built: $ svn info Path: . URL: http://svn.apache.org/repos/asf/couchdb/trunk Repository Root: http://svn.apache.org/repos/asf Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 Revision: 812951 Node Kind: directory Schedule: normal Last Changed Author: kocolosk Last Changed Rev: 812748 Last Changed Date: 2009-09-09 02:48:24 +0100 (Wed, 09 Sep 2009)