Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 20100 invoked from network); 9 Sep 2009 13:45:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Sep 2009 13:45:19 -0000 Received: (qmail 68389 invoked by uid 500); 9 Sep 2009 13:45:18 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 68320 invoked by uid 500); 9 Sep 2009 13:45:18 -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 68310 invoked by uid 99); 9 Sep 2009 13:45:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 13:45:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Wed, 09 Sep 2009 13:45:05 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1B5712BA87 for ; Wed, 9 Sep 2009 09:44:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=ST7tph28A5s0akjT6qZGLo3k8lU=; b=A8tRjeq +PdxjwfkDaTaHpi06HLHWmw8ffUMFyZxzXFKCJ8DpFW+mdeGRAPGelUF0EIf5it+ EgHdz43oltOgnWx9gDD9IFLKUbP27NE962ghQOuOiZTTl58E+uAPaZePG+YXFnz9 pEuxAIhuHomcX0gOrXK54+w4E/GhDjPX3NQw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=QlApVHwGp/REOpBVU7t5L/91kcjFpZPKt 1S37f+l5cO2Y8rYPyc9hckJbVCKHyyz9ZNOeCGOJ8p6KvkYFpkAoHBrO2Ig1SIDk dPQ2S7JE90eZfUhvBMZaczbYVNwjjsDEu8cqPuuBdfSljA4D+u8uAVqp2RAnTFxp NR9qIzBLt4= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 173A42BA86 for ; Wed, 9 Sep 2009 09:44:43 -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 9AE652BA85 for ; Wed, 9 Sep 2009 09:44:42 -0400 (EDT) Received: from brian by mappit with local (Exim 4.69) (envelope-from ) id 1MlNTT-00039m-08 for dev@couchdb.apache.org; Wed, 09 Sep 2009 14:44:39 +0100 Date: Wed, 9 Sep 2009 14:44:38 +0100 From: Brian Candler To: dev@couchdb.apache.org Subject: Re: CouchDB failing to open socket 5984 ? Message-ID: <20090909134438.GA11984@uk.tiscali.com> References: <20090908133639.GA20090@uk.tiscali.com> <20090908145935.GA20302@uk.tiscali.com> <20090909074903.GA7274@uk.tiscali.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090909074903.GA7274@uk.tiscali.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: EDCE4B7A-9D46-11DE-B03C-A13518FFA523-28021239!a-pb-sasl-quonix.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org This is turning out to be very odd. I built a whole new VM using ubuntu jaunty server and couchdb from svn, and it works fine. Back to my hardy box (using erlang from jaunty), I've rebuilt again with the latest couchdb, r812951, and it's the same problem as before. I've added "set -x" to the top of /usr/local/bin/couchdb. This gives the following: $ sudo -i -u couchdb couchdb + BACKGROUND=false + DEFAULT_CONFIG_DIR=/usr/local/etc/couchdb/default.d + DEFAULT_CONFIG_FILE=/usr/local/etc/couchdb/default.ini + HEART_BEAT_TIMEOUT=11 + HEART_COMMAND='/usr/local/bin/couchdb -k' + INTERACTIVE=false + KILL=false + LOCAL_CONFIG_DIR=/usr/local/etc/couchdb/local.d + LOCAL_CONFIG_FILE=/usr/local/etc/couchdb/local.ini + PID_FILE=/usr/local/var/run/couchdb/couchdb.pid + RECURSED=false + RESET_CONFIG=true + RESPAWN_TIMEOUT=0 + SCRIPT_ERROR=1 + SCRIPT_OK=0 + SHUTDOWN=false + STDERR_FILE=couchdb.stderr + STDOUT_FILE=couchdb.stdout + print_arguments= + start_arguments= + background_start_arguments= ++ basename couchdb + basename=couchdb + parse_script_option_list + _load_config + _add_config_file /usr/local/etc/couchdb/default.ini + test -z '' + print_arguments=/usr/local/etc/couchdb/default.ini + start_arguments=' /usr/local/etc/couchdb/default.ini' + background_start_arguments=' -a /usr/local/etc/couchdb/default.ini' + _add_config_dir /usr/local/etc/couchdb/default.d ++ find /usr/local/etc/couchdb/default.d -mindepth 1 -maxdepth 1 -type f -name '*.ini' + _add_config_file /usr/local/etc/couchdb/local.ini + test -z /usr/local/etc/couchdb/default.ini ++ cat + print_arguments='/usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini' + start_arguments=' /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini' + background_start_arguments=' -a /usr/local/etc/couchdb/default.ini -a /usr/local/etc/couchdb/local.ini' + _add_config_dir /usr/local/etc/couchdb/local.d ++ find /usr/local/etc/couchdb/local.d -mindepth 1 -maxdepth 1 -type f -name '*.ini' + set +e ++ getopt hVa:A:ncibp:r:Ro:e:skd + options=' --' + test '!' 0 -eq 0 + set -e + eval set -- -- ++ set -- -- + '[' 1 -gt 0 ']' + case "$1" in + shift + break + test false = true -o false = true + start_couchdb + test '!' false = true + check_status + check_environment + test false '!=' true + return + interactive_option='+Bd -noinput' + test false = true + test false = true + command='/usr/bin/erl +Bd -noinput -sasl errlog_type error +K true -env ERL_LIBS /usr/local/lib/couchdb/erlang/lib -couch_ini /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini -s couch' + test false = true -a false = false + test false = true + eval exec /usr/bin/erl +Bd -noinput -sasl errlog_type error +K true -env ERL_LIBS /usr/local/lib/couchdb/erlang/lib -couch_ini /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini -s couch ++ exec /usr/bin/erl +Bd -noinput -sasl errlog_type error +K true -env ERL_LIBS /usr/local/lib/couchdb/erlang/lib -couch_ini /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini -s couch At this point it just stops. In another window: $ ps auxwww | grep couch couchdb 19955 0.1 0.9 9160 5060 pts/5 Sl+ 14:32 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 -s couch candlerb 22345 0.0 0.1 3008 756 pts/4 R+ 14:34 0:00 grep couch $ telnet localhost 5984 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused $ Looking at the timestamps confirms that /usr/local/bin/couchdb and /usr/local/etc/couchdb/default.ini have been updated by make install. No couchdb.stdout or couchdb.stderr is created, even if I cd to a directory owned by couchdb first. I guess I could try rm -rf'ing everything couchdb-related on this box and starting again, but I'll keep it like this for now in case anyone has any ideas for things to try. Regards, Brian.