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 Fri, 11 Sep 2009 13:43:57 GMT
On Fri, Sep 11, 2009 at 09:47:09AM +0100, Brian Candler wrote:
> Yes, I found the same as you for a fresh Jaunty install. I will try again
> with a fresh Hardy install and let you know.

OK, I've now done a fresh vmware install of Ubuntu Hardy (8.04.3 server)
- details below - and annoyingly, it starts just fine.

So, there must be some environmental difference between my old workstation
box and this new VM. e.g.

- ubuntu desktop vs ubuntu server

- my desktop was originally Dapper, upgraded to Hardy (rather than
  a fresh Hardy install)

- my ubuntu desktop has a history of repeated make installs of newer
  versions of couchdb on top of old ones

- some package installed which is affecting startup

Well, I suppose I now have two machines to compare side by side for
differences... but right now I'm stumped.

Regards,

Brian.

---- 8< ----
Fresh vmware install of ubuntu-8.04.3-server-i386.iso. After basic
install, I did the following:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -y subversion openssh-server
sudo apt-get install -y automake autoconf libtool help2man
sudo apt-get install -y build-essential erlang libicu-dev libmozjs-dev libcurl4-openssl-dev
# Then I realised I had the wrong version of erlang
sudo bash
apt-get remove -y erlang erlang-base erlang-dev erlang-nox erlang-x11
vi /etc/apt/sources.list 
# Update this line:
# deb http://gb.archive.ubuntu.com/ubuntu/ jaunty universe
apt-cache update
apt-get install -y erlang
vi /etc/apt/sources.list
# put it back
apt-get update
exit

svn checkout http://svn.apache.org/repos/asf/couchdb/trunk couchdb
cd couchdb
./bootstrap && ./configure && make && sudo make install
sudo bash
adduser --system --home /usr/local/var/lib/couchdb --no-create-home \
        --shell /bin/bash --group --gecos "CouchDB Administrator" couchdb
chown -R couchdb:couchdb /usr/local/etc/couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chown -R couchdb:couchdb /usr/local/var/run/couchdb
chmod -R 0770 /usr/local/etc/couchdb
chmod -R 0770 /usr/local/var/lib/couchdb
chmod -R 0770 /usr/local/var/log/couchdb
chmod -R 0770 /usr/local/var/run/couchdb
/usr/local/etc/init.d/couchdb start

- all works fine

Just checking versions: the fresh VM has

$ dpkg-query -l | grep erlang
ii  erlang                                1:12.b.5-dfsg-2                                
           Concurrent, real-time, distributed functiona
ii  erlang-base                           1:12.b.5-dfsg-2                                
           Concurrent, real-time, distributed functiona
ii  erlang-dev                            1:12.b.5-dfsg-2                                
           Concurrent, real-time, distributed functiona
ii  erlang-nox                            1:12.b.5-dfsg-2                                
           Concurrent, real-time, distributed functiona
ii  erlang-x11                            1:12.b.5-dfsg-2                                
           Concurrent, real-time, distributed functiona
$ ps auxwww | grep couchdb
couchdb  15814  0.0  0.1   1772   536 pts/1    S    14:02   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  15825  0.0  0.0   1772   292 pts/1    S    14:02   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  15826 16.0  1.4  26336  7528 pts/1    Sl   14:02   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  15831  0.3  0.0   1568   428 ?        Ss   14:02   0:00 heart -pid 15826 -ht 11

whereas the old desktop has

$ dpkg-query -l | grep erlang
ii  erlang                                 1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
ii  erlang-base                            1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
ii  erlang-dev                             1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
ii  erlang-examples                        1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
ii  erlang-manpages                        1:12.b.3-1                                    
            Erlang man pages
ii  erlang-nox                             1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
ii  erlang-src                             1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
ii  erlang-x11                             1:12.b.5-dfsg-2                               
            Concurrent, real-time, distributed functiona
$ ps auxwww | grep couch
couchdb   3725  0.0  0.1   1772   532 pts/1    S    14:02   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   3737  0.0  0.0   1772   292 pts/1    S    14:02   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   3738  6.0  1.0   9160  5112 pts/1    Sl   14:02   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   3743  0.0  0.0   1568   424 ?        Ss   14:02   0:00 heart -pid 3738 -ht 11

It seems unlikely that the presence of the erlang src/examples/manpages
packages would make any difference, but just to be sure I fiddled with
sources.list again on the new VM so as to be able to:

  apt-get install erlang-examples erlang-manpages erlang-src

and then make clean/bootstrap/configure/make/make install. No difference:
the new VM still works just fine.

Mime
View raw message