Hi,
I can't make CouchDB work on my Ubuntu 10.04 Linode VPS. I followed all the instructions on http://wiki.apache.org/couchdb/Installing_on_Ubuntu (example 2, minimal dependencies). When I run

/usr/local/etc/init.d/couchdb start

I get

 * Starting database server couchdb             [ OK ]

And

ps aux|grep couchdb^

Gives me

root 15357 0.0 0.1 1860 600 pts/0 S+ 22:13 0:00 grep --color=auto couchdb^
r...@li105-127:/usr/local/var/log# /usr/local/etc/init.d/couchdb start
* Starting database server couchdb [ OK ]
r...@li105-127:/usr/local/var/log# ps aux|grep couchdb
couchdb 15313 0.0 0.1 1832 592 pts/0 S 22:11 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 15321 0.0 0.0 1832 344 pts/0 S 22:11 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 15322 0.3 1.4 63684 7508 pts/0 Sl 22:11 0:00 /usr/lib/erlang/erts-5.7.4/bin/beam.smp -Bd -K true -A 4 -- -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 15338 0.0 0.0 1620 448 ? Ss 22:11 0:00 heart -pid 15322 -ht 11 root 15379 0.0 0.1 1860 596 pts/0 S+ 22:13 0:00 grep --color=auto couchdb

However, if I

curl http://127.0.0.1:5984

it just throws a "can't connect" error. If I stop CouchDb and then

sudo -i -u couchdb couchdb

I get this output:

Apache CouchDB 1.0.1 (LogLevel=info) is starting.

=CRASH REPORT==== 21-Sep-2010::22:20:26 ===
  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==== 21-Sep-2010::22:20:26 ===
     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==== 21-Sep-2010::22:20:26 ===
     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==== 21-Sep-2010::22:20:26 ===
  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==== 21-Sep-2010::22:20:26 ===
    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

I'd love any advice I can get...thanks so much!
Best,
Jason





--
Jason Priem
UNC Royster Fellow
School of  Information and Library Science
University of North Carolina at Chapel Hill

Reply via email to