incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Hilmer ...@widetrail.dk>
Subject Re: CouchDB failing to open socket 5984 ?
Date Wed, 09 Sep 2009 20:33:03 GMT
Just to chime in, so Brian doesn't feel alone.

I have the exact same experience. 
  Running KUbuntu Jaunty 
  Erlang R13B01
  CouchDB svn revision 813103.

--Søren

On Tuesday 08 September 2009 15:36:39 Brian Candler wrote:
> I have just updated a workstation to the latest couchdb HEAD. This is an
> Ubuntu Hardy box with erlang 12.b.5 from Intrepid.
>
> It was working with couchdb before, but now although I get a set of couchdb
> processes running, nothing is listening on port 5984, and nothing logged
> (not even the usual startup message).
>
> $ 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: 812498
> Node Kind: directory
> Schedule: normal
> Last Changed Author: davisp
> Last Changed Rev: 811910
> Last Changed Date: 2009-09-06 22:55:49 +0100 (Sun, 06 Sep 2009)
>
> I compiled it the usual way:
> $ ./bootstrap && ./configure && make && sudo make install
> $ sudo /usr/local/etc/init.d/couchdb start
>  * Starting database server couchdb                                      [
> OK ] $ telnet localhost 5984
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused
>
> Absolutely nothing is logged into couch.log - even the timestamp is
> unchanged from when I last ran it.
>
> $ ls -l /usr/local/var/log/couchdb/couch.log
> -rw-r--r-- 1 couchdb couchdb 4055819 2009-08-18 16:30
> /usr/local/var/log/couchdb/couch.log
>
> Processes:
>
> $ ps auxwww | grep couchdb
> couchdb   6326  0.0  0.1   1772   532 pts/6    S    14:24   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 /dev/null -e /dev/null -R couchdb
>   6339  0.0  0.0   1772   292 pts/6    S    14:24   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 /dev/null -e /dev/null -R couchdb
>   6340  0.2  1.0   9160  5144 pts/6    Sl   14:24   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   6345  0.0  0.0  
> 1568   420 ?        Ss   14:24   0:00 heart -pid 6340 -ht 11 candlerb  7350
>  0.0  0.1   3008   756 pts/6    R+   14:25   0:00 grep couchdb $ sudo
> netstat -natp | grep 5984
> $
>
> (and a full netstat -natp doesn't show any erlang or couchdb process, so I
> don't think it's listening on a random port)
>
> If I do "sudo /usr/local/etc/init.d/couchdb stop" then these processes
> continue to run. I need to kill the heart process by hand.
>
> My local.ini did have one change (enabled erlang under
> [native_query_servers]) but I have now replaced this with a stock
> local.ini, to no effect.
>
> If I "sudo su - couchdb" followed by "couchdb", I see nothing.
>
> If I "strace couchdb", it ends like this:
>
> --------
> stat64("/usr/lib/erlang/lib/stdlib-1.15.5/ebin/erl_scan.beam",
> {st_mode=S_IFREG|0644, st_size=26284, ...}) = 0
> open("/usr/lib/erlang/lib/stdlib-1.15.5/ebin/erl_scan.beam",
> O_RDONLY|O_LARGEFILE) = 8 read(8,
> "FOR1\0\0f\244BEAMAtom\0\0\5\300\0\0\0\222\10erl_sca"..., 26284) = 26284
> close(8)                                = 0
> getcwd("/usr/local/var/lib/couchdb", 8191) = 27
> epoll_wait(3, {}, 256, 0)               = 0
> clock_gettime(CLOCK_MONOTONIC, {107858, 568746432}) = 0
> getcwd("/usr/local/var/lib/couchdb", 8191) = 27
> stat64("/usr/local/var/lib/couchdb/./erl_parse.beam", 0xbf858a64) = -1
> ENOENT (No such file or directory)
> open("/usr/local/var/lib/couchdb/./erl_parse.beam", O_RDONLY|O_LARGEFILE) =
> -1 ENOENT (No such file or directory)
> stat64("/usr/lib/erlang/lib/kernel-2.12.5/ebin/erl_parse.beam", 0xbf858a64)
> = -1 ENOENT (No such file or directory)
> open("/usr/lib/erlang/lib/kernel-2.12.5/ebin/erl_parse.beam",
> O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
> stat64("/usr/lib/erlang/lib/stdlib-1.15.5/ebin/erl_parse.beam",
> {st_mode=S_IFREG|0644, st_size=271036, ...}) = 0
> open("/usr/lib/erlang/lib/stdlib-1.15.5/ebin/erl_parse.beam",
> O_RDONLY|O_LARGEFILE) = 8 read(8,
> "FOR1\0\4\"\264BEAMAtom\0\0\"\237\0\0\2\261\terl_par"..., 271036) = 271036
> close(8)                                = 0
> getcwd("/usr/local/var/lib/couchdb", 8191) = 27
> epoll_wait(3, {}, 256, 0)               = 0
> clock_gettime(CLOCK_MONOTONIC, {107858, 578870862}) = 0
> clock_gettime(CLOCK_MONOTONIC, {107858, 579213955}) = 0
> epoll_wait(3,
> --------
>
> Any suggestions what to do next?
>
> Thanks,
>
> Brian.
>
> P.S. I see in the top-level README file it says:
>
>  * Erlang OTP (>=R12B)     (http://erlang.org/)
>
> I believe the minimum is at least R12B5, so I think that should be
> corrected. If the minimum is now higher than that, then I missed it,
> but it could explain my problem.


-- 
Søren Hilmer, M.Sc., M.Crypt.
wideTrail                       Phone:  +45 25481225
Pilevænget 41           Email:  sh@widetrail.dk
DK-8961  Allingåbro     Web:    www.widetrail.dk

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message