couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whims...@aol.com
Subject Re: get couchdb to startup with server
Date Mon, 30 Aug 2010 15:06:46 GMT
ubuntu 1.0.1 from couchio 64 is the distribution
I have to sudo ./couchdb start at the directory.

Because ./couchdb start fails.

userdan@ubuntu:~/couchdb-1.0.1/bin$ ./couchdb start
Apache CouchDB 1.0.1 (LogLevel=info) is starting.

=CRASH REPORT==== 30-Aug-2010::08:06:17 ===
  crasher:
    initial call: couch_event_sup:init/1
    pid: <0.80.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.79.0>,<0.6.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 377
    stack_size: 24
    reductions: 117
  neighbours:

=SUPERVISOR REPORT==== 30-Aug-2010::08:06:17 ===
     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==== 30-Aug-2010::08:06:17 ===
     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==== 30-Aug-2010::08:06:17 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.32.0>
    registered_name: []
    exception exit: {bad_return,
                        {{couch_app,start,
                             [normal,
                              ["/home/userdan/couchdb-1.0.1/etc/couchdb/default.ini",
                               "/home/userdan/couchdb-1.0.1/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: 164
  neighbours:

=INFO REPORT==== 30-Aug-2010::08:06:17 ===
    application: couch
    exited: {bad_return,{{couch_app,start,
                                    [normal,
                                     ["/home/userdan/couchdb-1.0.1/etc/couchdb/default.ini",
                                      "/home/userdan/couchdb-1.0.1/etc/couchdb/local.ini"]]},
                         {'EXIT',{{badmatch,{error,shutdown}},
                                  [{couch_server_sup,start_server,1},
                                   {application_master,start_it_old,4}]}}}}
    type: temporary




Dan

 

 


 

 

-----Original Message-----
From: Mikhail A. Pokidko <mikhail.pokidko@gmail.com>
To: user@couchdb.apache.org
Sent: Mon, Aug 30, 2010 12:13 am
Subject: Re: get couchdb to startup with server


On Mon, Aug 30, 2010 at 10:06 AM,  <whimsica@aol.com> wrote:

> I am running couchdb manually.

>

> How do I get it to startup with the server if it restarts.



You should add init-script to default run-level.

(Init-script can be found inside the package you`ve installed from).

Take a look at http://github.com/apache/couchdb/blob/trunk/etc/init/couchdb.tpl.in



Whats your distro?



> Also the couch version 1.0.1 has permission problems.

> I cannot start it without sudo first

> How do I make sure all permissions are correct?



What exactly permissions are incorrect and what sudo command do you execute?







-- 

xmpp: pma AT altlinux DOT org


 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message