incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: CouchDB failing to open socket 5984 ?
Date Thu, 10 Sep 2009 11:10:38 GMT
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)

Mime
View raw message