You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by bl...@wolke7.net on 2009/12/15 00:29:52 UTC

CouchDB not listening on Port 5984

I have problems to get couchdb work. 

I installed it from svn on a ubuntu 8.04.3 LTS system. 

When i start /usr/local/etc/init.d/couchdb start it says "Starting database server couchdb    [ OK ]", the process is running but not listening on port 5984, there is unfortunately not log output and when i stop it, it says "Stopping database server couchdb  [ OK ]", but the processes are still running. 

I also installed erlang from source (Erlang R13B03 (erts-5.7.4)). I read that this problem occurs when couchdb 0.9.x and 0.10.x is installed on the same system, because of an erlang error, but i have only the current version of couchdb installed.

Any ideas?

Many Thanks,

Thomas
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Re: CouchDB not listening on Port 5984

Posted by bl...@wolke7.net.
-------- Original-Nachricht --------
> Datum: Mon, 14 Dec 2009 23:07:33 -0500
> Von: Paul Davis <pa...@gmail.com>
> An: user@couchdb.apache.org
> Betreff: Re: CouchDB not listening on Port 5984

> 2009/12/14 "Thomas Mühlichen" <bl...@wolke7.net>:
> >
> >>
> >> Did you change permissions on the $PREFIX/var/run/couchdb
> >> $PREFIX/var/lib/couchdb directories as well? Can you run couchdb as
> >> root? Can you change the log level in $PREFIX/etc/couchdb/local.ini to
> >> debug and try again?
> >
> > yes, changing log level didn't change anything...
> >
> >>
> >> Can you try these commands in the erl console:
> >>
> >> $ erl
> >> # Stuff...
> >>
> >> 1> application:start(crypto).
> >> ok
> >> 2> application:start(couch).
> >> ok
> >>
> >> And see if either of those doesn't return ok.
> >>
> >
> > ok, that's interesting :)
> >
> > 1> application:start(crypto).
> > {error,{"no such file or directory","crypto.app"}}
> > 2> application:start(couch).
> > {error,{"no such file or directory","couch.app"}}
> >
> > hmm but obviously these files are available:
> >
> > $ find /usr -name crypto.app
> > /usr/lib/erlang/lib/crypto-1.5.2/ebin/crypto.app
> > $ find /usr -name couch.app
> > /usr/local/lib/couchdb/erlang/lib/couch-0.11.0b889868/ebin/couch.app
> >
> > if it matters, i ran erl as root.
> >
> > Thomas
> >
> > --
> > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
> 3.5 -
> > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
> >
> 
> It looks like you've either built the wrong version of Erlang and
> installed it under user, or you have an old version and forgot to sudo
> make install the newer version. A crypto lib version 1.5.2 suggests
> you have an older version installed, most likely from apt. Can you
> sudo apt-get remove erlang and then make sure and run sudo make
> install in your Erlang build directory? Those files should most likely
> show up under /usr/local/lib/erlang/lib/crypto* unless you specified
> --prefix on your configure run.
> 
> Also, my bad for the couchdb side, you'd need to do something like:
> 
> $ ERL_LIBS=/usr/local/lib/couchdb/erlang erl
> 
> when running the shell so that it picks up the proper search path.
> 
> HTH,
> Paul Davis

Paul,
thank you very much, that did it! Port 5984 is now available...

Thomas.
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

Re: CouchDB not listening on Port 5984

Posted by Paul Davis <pa...@gmail.com>.
2009/12/14 "Thomas Mühlichen" <bl...@wolke7.net>:
>
>>
>> Did you change permissions on the $PREFIX/var/run/couchdb
>> $PREFIX/var/lib/couchdb directories as well? Can you run couchdb as
>> root? Can you change the log level in $PREFIX/etc/couchdb/local.ini to
>> debug and try again?
>
> yes, changing log level didn't change anything...
>
>>
>> Can you try these commands in the erl console:
>>
>> $ erl
>> # Stuff...
>>
>> 1> application:start(crypto).
>> ok
>> 2> application:start(couch).
>> ok
>>
>> And see if either of those doesn't return ok.
>>
>
> ok, that's interesting :)
>
> 1> application:start(crypto).
> {error,{"no such file or directory","crypto.app"}}
> 2> application:start(couch).
> {error,{"no such file or directory","couch.app"}}
>
> hmm but obviously these files are available:
>
> $ find /usr -name crypto.app
> /usr/lib/erlang/lib/crypto-1.5.2/ebin/crypto.app
> $ find /usr -name couch.app
> /usr/local/lib/couchdb/erlang/lib/couch-0.11.0b889868/ebin/couch.app
>
> if it matters, i ran erl as root.
>
> Thomas
>
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
>

It looks like you've either built the wrong version of Erlang and
installed it under user, or you have an old version and forgot to sudo
make install the newer version. A crypto lib version 1.5.2 suggests
you have an older version installed, most likely from apt. Can you
sudo apt-get remove erlang and then make sure and run sudo make
install in your Erlang build directory? Those files should most likely
show up under /usr/local/lib/erlang/lib/crypto* unless you specified
--prefix on your configure run.

Also, my bad for the couchdb side, you'd need to do something like:

$ ERL_LIBS=/usr/local/lib/couchdb/erlang erl

when running the shell so that it picks up the proper search path.

HTH,
Paul Davis

Re: CouchDB not listening on Port 5984

Posted by Thomas Mühlichen <bl...@wolke7.net>.
> 
> Did you change permissions on the $PREFIX/var/run/couchdb
> $PREFIX/var/lib/couchdb directories as well? Can you run couchdb as
> root? Can you change the log level in $PREFIX/etc/couchdb/local.ini to
> debug and try again?

yes, changing log level didn't change anything...

> 
> Can you try these commands in the erl console:
> 
> $ erl
> # Stuff...
> 
> 1> application:start(crypto).
> ok
> 2> application:start(couch).
> ok
> 
> And see if either of those doesn't return ok.
> 

ok, that's interesting :)

1> application:start(crypto).
{error,{"no such file or directory","crypto.app"}}
2> application:start(couch).
{error,{"no such file or directory","couch.app"}}

hmm but obviously these files are available:

$ find /usr -name crypto.app
/usr/lib/erlang/lib/crypto-1.5.2/ebin/crypto.app
$ find /usr -name couch.app
/usr/local/lib/couchdb/erlang/lib/couch-0.11.0b889868/ebin/couch.app

if it matters, i ran erl as root.

Thomas

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

Re: CouchDB not listening on Port 5984

Posted by Paul Davis <pa...@gmail.com>.
2009/12/14 "Thomas Mühlichen" <bl...@wolke7.net>:
>
> -------- Original-Nachricht --------
>> Datum: Mon, 14 Dec 2009 18:44:26 -0500
>> Von: Paul Davis <pa...@gmail.com>
>> An: user@couchdb.apache.org
>> Betreff: Re: CouchDB not listening on Port 5984
>
>> On Mon, Dec 14, 2009 at 6:29 PM,  <bl...@wolke7.net> wrote:
>> > I have problems to get couchdb work.
>> >
>> > I installed it from svn on a ubuntu 8.04.3 LTS system.
>> >
>> > When i start /usr/local/etc/init.d/couchdb start it says "Starting
>> database server couchdb    [ OK ]", the process is running but not listening
>> on port 5984, there is unfortunately not log output and when i stop it, it
>> says "Stopping database server couchdb  [ OK ]", but the processes are
>> still running.
>> >
>> > I also installed erlang from source (Erlang R13B03 (erts-5.7.4)). I read
>> that this problem occurs when couchdb 0.9.x and 0.10.x is installed on the
>> same system, because of an erlang error, but i have only the current
>> version of couchdb installed.
>> >
>> > Any ideas?
>> >
>> > Many Thanks,
>> >
>> > Thomas
>>
>> Thomas,
>>
>> Can you try running couchdb from the command line and pasting any output?
>>
>> Something like:
>>
>> $ sudo su - couchdb
>> $ couchdb
>>
>> Generally these are permissions errors so you might check the README
>> for the list of directories that need to be writable by the user
>> running couchdb.
>>
>> HTH,
>> Paul Davis
>
> $ sudo su - couchdb
> No directory, logging in with HOME=/
> $ couchdb
>
> there is no output... (the missing home directory for the couchdb user should not be relevant i think). i also have set the permissions. and the log directory is still empty:
>
> $ ls -la /usr/local/var/log/couchdb/
> total 8
> drwxrwx--- 2 couchdb couchdb 4096 2009-12-13 23:40 .
> drwxr-xr-x 3 root    root    4096 2009-12-13 23:40 ..
>
> Thomas
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>

Did you change permissions on the $PREFIX/var/run/couchdb
$PREFIX/var/lib/couchdb directories as well? Can you run couchdb as
root? Can you change the log level in $PREFIX/etc/couchdb/local.ini to
debug and try again?

Can you try these commands in the erl console:

$ erl
# Stuff...

1> application:start(crypto).
ok
2> application:start(couch).
ok

And see if either of those doesn't return ok.

HTH,
Paul Davis

Re: CouchDB not listening on Port 5984

Posted by Noah Slater <ns...@tumbolia.org>.
On 15 Dec 2009, at 00:07, Thomas Mühlichen wrote:

> $ sudo su - couchdb
> No directory, logging in with HOME=/
> $ couchdb
> 
> there is no output... (the missing home directory for the couchdb user should not be relevant i think)

This is absolutely relevant.

Please create the home directory, and make sure the couchdb user has permission to cd there.

Re: CouchDB not listening on Port 5984

Posted by Thomas Mühlichen <bl...@wolke7.net>.
-------- Original-Nachricht --------
> Datum: Mon, 14 Dec 2009 18:44:26 -0500
> Von: Paul Davis <pa...@gmail.com>
> An: user@couchdb.apache.org
> Betreff: Re: CouchDB not listening on Port 5984

> On Mon, Dec 14, 2009 at 6:29 PM,  <bl...@wolke7.net> wrote:
> > I have problems to get couchdb work.
> >
> > I installed it from svn on a ubuntu 8.04.3 LTS system.
> >
> > When i start /usr/local/etc/init.d/couchdb start it says "Starting
> database server couchdb    [ OK ]", the process is running but not listening
> on port 5984, there is unfortunately not log output and when i stop it, it
> says "Stopping database server couchdb  [ OK ]", but the processes are
> still running.
> >
> > I also installed erlang from source (Erlang R13B03 (erts-5.7.4)). I read
> that this problem occurs when couchdb 0.9.x and 0.10.x is installed on the
> same system, because of an erlang error, but i have only the current
> version of couchdb installed.
> >
> > Any ideas?
> >
> > Many Thanks,
> >
> > Thomas
> 
> Thomas,
> 
> Can you try running couchdb from the command line and pasting any output?
> 
> Something like:
> 
> $ sudo su - couchdb
> $ couchdb
> 
> Generally these are permissions errors so you might check the README
> for the list of directories that need to be writable by the user
> running couchdb.
> 
> HTH,
> Paul Davis

$ sudo su - couchdb
No directory, logging in with HOME=/
$ couchdb

there is no output... (the missing home directory for the couchdb user should not be relevant i think). i also have set the permissions. and the log directory is still empty:

$ ls -la /usr/local/var/log/couchdb/
total 8
drwxrwx--- 2 couchdb couchdb 4096 2009-12-13 23:40 .
drwxr-xr-x 3 root    root    4096 2009-12-13 23:40 ..

Thomas

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Re: CouchDB not listening on Port 5984

Posted by Paul Davis <pa...@gmail.com>.
On Mon, Dec 14, 2009 at 6:29 PM,  <bl...@wolke7.net> wrote:
> I have problems to get couchdb work.
>
> I installed it from svn on a ubuntu 8.04.3 LTS system.
>
> When i start /usr/local/etc/init.d/couchdb start it says "Starting database server couchdb    [ OK ]", the process is running but not listening on port 5984, there is unfortunately not log output and when i stop it, it says "Stopping database server couchdb  [ OK ]", but the processes are still running.
>
> I also installed erlang from source (Erlang R13B03 (erts-5.7.4)). I read that this problem occurs when couchdb 0.9.x and 0.10.x is installed on the same system, because of an erlang error, but i have only the current version of couchdb installed.
>
> Any ideas?
>
> Many Thanks,
>
> Thomas
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>

Thomas,

Can you try running couchdb from the command line and pasting any output?

Something like:

$ sudo su - couchdb
$ couchdb

Generally these are permissions errors so you might check the README
for the list of directories that need to be writable by the user
running couchdb.

HTH,
Paul Davis

Re: CouchDB not listening on Port 5984

Posted by bl...@wolke7.net.
I used curl on the system itself to try to connect and netstat also doesn't show me a process listening on port 5984.

Thomas

> Betreff: Re: CouchDB not listening on Port 5984

> Is there any chance that the couch process is just bound to loopback 
> instead of an external interface?
> 
> Steve
> 
> blogspace@wolke7.net wrote:
> > I have problems to get couchdb work. 
> >
> > I installed it from svn on a ubuntu 8.04.3 LTS system. 
> >
> > When i start /usr/local/etc/init.d/couchdb start it says "Starting
> database server couchdb    [ OK ]", the process is running but not listening on
> port 5984, there is unfortunately not log output and when i stop it, it
> says "Stopping database server couchdb  [ OK ]", but the processes are still
> running. 
> >
> > I also installed erlang from source (Erlang R13B03 (erts-5.7.4)). I read
> that this problem occurs when couchdb 0.9.x and 0.10.x is installed on the
> same system, because of an erlang error, but i have only the current
> version of couchdb installed.
> >
> > Any ideas?
> >
> > Many Thanks,
> >
> > Thomas
> >   

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Re: CouchDB not listening on Port 5984

Posted by Steve Foulkes <sf...@fnal.gov>.
Is there any chance that the couch process is just bound to loopback 
instead of an external interface?

Steve

blogspace@wolke7.net wrote:
> I have problems to get couchdb work. 
>
> I installed it from svn on a ubuntu 8.04.3 LTS system. 
>
> When i start /usr/local/etc/init.d/couchdb start it says "Starting database server couchdb    [ OK ]", the process is running but not listening on port 5984, there is unfortunately not log output and when i stop it, it says "Stopping database server couchdb  [ OK ]", but the processes are still running. 
>
> I also installed erlang from source (Erlang R13B03 (erts-5.7.4)). I read that this problem occurs when couchdb 0.9.x and 0.10.x is installed on the same system, because of an erlang error, but i have only the current version of couchdb installed.
>
> Any ideas?
>
> Many Thanks,
>
> Thomas
>