You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Arved Sandstrom <as...@eastlink.ca> on 2008/04/30 13:26:15 UTC

Stuck running server at very early stage

Hi all,

I went through an apparently normal build and install using the
instructions in
http://incubator.apache.org/couchdb/docs/installation.html . This is on
Debian etch.

Once installed I run

$ sudo -u couchdb couchdb

and get

couch 0.7.3a652071 (LogLevel=debug)
Apache CouchDB is starting.
Apache CouchDB has started. Time to relax.
[debug] [<0.1.0>] Config Info /usr/local/etc/couchdb/couch.ini:
        CurrentWorkingDir=/home/arved/development/couchdb
        DbRootDir=/usr/local/var/lib/couchdb
        BindAddress="127.0.0.1"
        Port="5984"
        DocumentRoot=/usr/local/share/couchdb/www
        LogFile=/usr/local/var/log/couchdb/couch.log
UtilDriverDir=/usr/local/lib/couchdb/erlang/lib/couch-0.7.3a652071/priv/lib
        DbUpdateNotificationProcesses=
        FullTextSearchQueryServer=
text/javascript=/usr/local/bin/couchjs /usr/local/share/couchdb/server/main.js

Finally, when trying http://localhost:5984/_utils/index.html , I get

[error] [<0.53.0>] {error_report,<0.21.0>,
              {<0.53.0>,
               crash_report,
               [[{pid,<0.53.0>},
                 {registered_name,[]},
                 {error_info,{undef,[{string,to_lower,["Host"]},
                                     {mochiweb_headers,insert,3},
                                     {lists,foldl,3},
                                     {mochiweb,new_request,1},
                                     {mochiweb_http,headers,4},
                                     {proc_lib,init_p,5}]}},
                 {initial_call,{mochiweb_socket_server,
                                   acceptor_loop,
                                   [{<0.52.0>,
                                     #Port<0.122>,
                                     #Fun<mochiweb_http.1.62821608>}]}},
                 {ancestors,[couch_httpd,couch_server_sup,<0.1.0>]},
                 {messages,[]},
                 {links,[<0.52.0>,#Port<0.126>]},
                 {dictionary,[]},
                 {trap_exit,false},
                 {status,running},
                 {heap_size,1597},
                 {stack_size,21},
                 {reductions,504}],
                []]}}
[error] [<0.52.0>] {error_report,<0.21.0>,
              {<0.52.0>,
               std_error,
               {mochiweb_socket_server,
                   221,
                   {child_error,{undef,
                                    [{string,to_lower,["Host"]},
                                     {mochiweb_headers,insert,3},
                                     {lists,foldl,3},
                                     {mochiweb,new_request,1},
                                     {mochiweb_http,headers,4},
                                     {proc_lib,init_p,5}]}}}}}

=ERROR REPORT==== 30-Apr-2008::07:53:43 ===
{mochiweb_socket_server,221,
                        {child_error,{undef,
                                         [{string,to_lower,["Host"]},
                                          {mochiweb_headers,insert,3},
                                          {lists,foldl,3},
                                          {mochiweb,new_request,1},
                                          {mochiweb_http,headers,4},
                                          {proc_lib,init_p,5}]}}}

I did plenty of Google searching, looking for information on couch.ini,
and *anything* useful on Mochiweb, and also looked at the CouchDB wiki
(Troubleshooting and so forth). As near as I can tell a complaint is
being made by something somewhere that the Host request header is
undefined, but I sure don't know where to take it from there.

Guidance appreciated.

AHS

Re: Stuck running server at very early stage

Posted by Arved Sandstrom <as...@eastlink.ca>.
From: "Noah Slater" <ns...@apache.org>
> Could you describe your experiences on the wiki?
>
> Perhaps: InstallingErlangFromSource

Sure, not a problem. After all, building Erlang is relatively quick (YMMV), 
and if using the latest version of it is the solution to running the latest 
checkout of CouchDB (as it evidently was here), a couple of little hiccups 
in the build/install process shouldn't serve as an obstacle.

Arved 

Re: Stuck running server at very early stage

Posted by Noah Slater <ns...@apache.org>.
Could you describe your experiences on the wiki?

Perhaps: InstallingErlangFromSource

Thanks,

--
Noah Slater - The Apache Software Foundation <http://www.apache.org/>

Re: Stuck running server at very early stage

Posted by Arved Sandstrom <as...@eastlink.ca>.
On Wed, 2008-30-04 at 09:41 -0500, Gregory Holt wrote:
> Ah, this is one I kind of know, as I had the same thing. You have to  
> have a newer version of Erlang than Etch will provide. With all this  
> in rapid development, I switched to using Ubuntu 8.04.
> 
> On Apr 30, 2008, at 6:26 AM, Arved Sandstrom wrote:
> 
> > I went through an apparently normal build and install [...] on
> > Debian etch.
> >
> >                {error_info,{undef,[{string,to_lower,["Host"]},
> 

Nice thought, so after trying suggestions inspired by Jan and Brad
(commenting out IPv6 hosts in /etc/hosts, monkeying with hostname), I
built R12B-2 from source (a couple of minor little errors in makefiles
along the way), and as near as I can tell I have solved the
problem...all 18 tests in the Test Suite passed.

For sake of reference, the actual build/install complaints on Debian
Etch for Erlang R12B-2 were (IIRC):

(a) during "make": the "ebin" directory in "lib/common_test" may have to
be manually created (something along those lines anyhow), and

(b) during "make install": IIRC the Makefile in "lib/common_test/priv"
has a problem with the actual location of erl_rx_driver.so

I will now start playing in earnest with couch 0.7.3a652071 (well,
whatever the latest version is) on Etch and let people know how that is
coming along.

Arved

Re: Stuck running server at very early stage

Posted by Gregory Holt <gh...@rackspace.com>.
Ah, this is one I kind of know, as I had the same thing. You have to  
have a newer version of Erlang than Etch will provide. With all this  
in rapid development, I switched to using Ubuntu 8.04.

On Apr 30, 2008, at 6:26 AM, Arved Sandstrom wrote:

> I went through an apparently normal build and install [...] on
> Debian etch.
>
>                {error_info,{undef,[{string,to_lower,["Host"]},



Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace.
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at abuse@rackspace.com, and delete the original message.
Your cooperation is appreciated.


Re: Stuck running server at very early stage

Posted by Brad Anderson <br...@sankatygroup.com>.
On Apr 30, 2008, at 11:11 AM, Jan Lehnardt wrote:

> Heya,
> On Apr 30, 2008, at 13:26, Arved Sandstrom wrote:
>>                {error_info,{undef,[{string,to_lower,["Host"]},
>>                                    {mochiweb_headers,insert,3},
>>                                    {lists,foldl,3},
>>                                    {mochiweb,new_request,1},
>>                                    {mochiweb_http,headers,4},
>>                                    {proc_lib,init_p,5}]}},
>
> Could it be that the hostname for your system is not set
> in a way that gethostname(3) and subsequently
> inets:gethostname()?
>
> Cheers
> Jan
> --

Also, I found that I had an IPv6 hostname active, and commenting it  
out of my hosts file helped me get a bit further w/ mochiweb.

hth,
BA

Re: Stuck running server at very early stage

Posted by Jan Lehnardt <ja...@apache.org>.
Heya,
On Apr 30, 2008, at 13:26, Arved Sandstrom wrote:
>                 {error_info,{undef,[{string,to_lower,["Host"]},
>                                     {mochiweb_headers,insert,3},
>                                     {lists,foldl,3},
>                                     {mochiweb,new_request,1},
>                                     {mochiweb_http,headers,4},
>                                     {proc_lib,init_p,5}]}},

Could it be that the hostname for your system is not set
in a way that gethostname(3) and subsequently
inets:gethostname()?

Cheers
Jan
--