You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by mlanza <ml...@comcast.net> on 2011/02/28 02:11:36 UTC

Cannot get CouchDB to start

Instead I get a crash report.  I'm on Ubuntu 10.04.  Looks like some flavor
of couch was installed by default.  I tried to remove it and install from
source.

Any ideas?

Apache CouchDB 1.0.2 (LogLevel=info) is starting.

=CRASH REPORT==== 27-Feb-2011::20:09:53 ===
  crasher:
    initial call: couch_event_sup:init/1
    pid: <0.81.0>
    registered_name: []
    exception exit: {{badmatch,
                         {'EXIT',
                             {{badmatch,{error,eacces}},
                              [{couch_log,init,1},
                               {gen_event,server_add_handler,4},
                               {gen_event,handle_msg,5},
                               {proc_lib,init_p_do_apply,3}]}}},
                     [{couch_event_sup,init,1},
                      {gen_server,init_it,6},
                      {proc_lib,init_p_do_apply,3}]}
      in function  gen_server:init_it/6
    ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]
    messages: []
    links: [<0.80.0>,<0.6.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 233
    stack_size: 24
    reductions: 116
  neighbours:

=SUPERVISOR REPORT==== 27-Feb-2011::20:09:53 ===
     Supervisor: {local,couch_primary_services}
     Context:    start_error
     Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}},
                                     [{couch_log,init,1},
                                      {gen_event,server_add_handler,4},
                                      {gen_event,handle_msg,5},
                                      {proc_lib,init_p_do_apply,3}]}}},
                  [{couch_event_sup,init,1},
                   {gen_server,init_it,6},
                   {proc_lib,init_p_do_apply,3}]}
     Offender:   [{pid,undefined},
                  {name,couch_log},
                  {mfa,{couch_log,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=SUPERVISOR REPORT==== 27-Feb-2011::20:09:53 ===
     Supervisor: {local,couch_server_sup}
     Context:    start_error
     Reason:     shutdown
     Offender:   [{pid,undefined},
                  {name,couch_primary_services},
                  {mfa,{couch_server_sup,start_primary_services,[]}},
                  {restart_type,permanent},
                  {shutdown,infinity},
                  {child_type,supervisor}]


=CRASH REPORT==== 27-Feb-2011::20:09:53 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.32.0>
    registered_name: []
    exception exit: {bad_return,
                        {{couch_app,start,
                             [normal,
                              ["/usr/local/etc/couchdb/default.ini",
                               "/usr/local/etc/couchdb/local.ini"]]},
                         {'EXIT',
                             {{badmatch,{error,shutdown}},
                              [{couch_server_sup,start_server,1},
                               {application_master,start_it_old,4}]}}}}
      in function  application_master:init/4
    ancestors: [<0.31.0>]
    messages: [{'EXIT',<0.33.0>,normal}]
    links: [<0.31.0>,<0.7.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 24
    reductions: 161
  neighbours:

=INFO REPORT==== 27-Feb-2011::20:09:53 ===
    application: couch
    exited: {bad_return,{{couch_app,start,
                                    [normal,
                                     ["/usr/local/etc/couchdb/default.ini",
                                      "/usr/local/etc/couchdb/local.ini"]]},
                         {'EXIT',{{badmatch,{error,shutdown}},
                                  [{couch_server_sup,start_server,1},
                                   {application_master,start_it_old,4}]}}}}
    type: temporary


-- 
View this message in context: http://couchdb-development.1959287.n2.nabble.com/Cannot-get-CouchDB-to-start-tp6071650p6071650.html
Sent from the CouchDB Development mailing list archive at Nabble.com.

Re: Cannot get CouchDB to start

Posted by mlanza <ml...@comcast.net>.
Thanks, Dave.  I believe that was it.  I'm making some progress now. :)

-- 
View this message in context: http://couchdb-development.1959287.n2.nabble.com/Cannot-get-CouchDB-to-start-tp6071650p6075454.html
Sent from the CouchDB Development mailing list archive at Nabble.com.

Re: Cannot get CouchDB to start

Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 28 February 2011 14:11, mlanza <ml...@comcast.net> wrote:
> Instead I get a crash report.  I'm on Ubuntu 10.04.  Looks like some flavor
> of couch was installed by default.  I tried to remove it and install from
> source.
>
> Any ideas?
>
> Apache CouchDB 1.0.2 (LogLevel=info) is starting.
>
> =CRASH REPORT==== 27-Feb-2011::20:09:53 ===
>  crasher:
>    initial call: couch_event_sup:init/1
>    pid: <0.81.0>
>    registered_name: []
>    exception exit: {{badmatch,
>                         {'EXIT',
>                             {{badmatch,{error,eacces}},


>    pid: <0.32.0>
>    registered_name: []
>    exception exit: {bad_return,
>                        {{couch_app,start,
>                             [normal,
>                              ["/usr/local/etc/couchdb/default.ini",
>                               "/usr/local/etc/couchdb/local.ini"]]},
>                         {'EXIT',
>                             {{badmatch,{error,shutdown}},
>                              [{couch_server_sup,start_server,1},
>                               {application_master,start_it_old,4}]}}}}
>      in function  application_master:init/4

Hi,

eacces = can't access files = permissions problems.

A number of fixes here http://wiki.apache.org/couchdb/Error_messages
halfway down. A common problem is running as root once & then having
logfiles, dbfiles, or similar owned as root & you are trying to run as
user couchdb.

There's already a couchdb (desktopcouch) on ubuntu by default; I'm not
an expert on this but this might be related to some of your issues.

you might want to try @jhs https://github.com/couchone/build-couchdb
as a quick start - it builds a standalone couch & shouldn't get in the
way of existing stuff.

A+
Dave