couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Lutz <ibern...@googlemail.com>
Subject Re: Installing the latest CouchDB version on Ubuntu
Date Wed, 06 Jan 2010 14:33:02 GMT
I have set up a new EC2 with Ubuntu 9.04 and tested `ctrl + c`. Seems not to work (was waiting
20min).
On a second instance `/usr/local/etc/init.d/couchdb start` works!

Thank you very much.


Am 06.01.2010 um 14:30 schrieb Matteo Caprari:

> Hi.
> 
> `ctrl + z` stops but unlike `ctrl + c` won't kill it.
> If the program is using any resource, it won't be freed. That's why at
> the second round you get
> 
> Failure to start Mochiweb: eaddrinuse.
> 
> After `ctrl +z` you can invoke `bg` to un-stop the process and leave
> it running in background.
> 
> You can skip this step by adding & at the end
> 
> $ sudo -i -u couchdb couchdb &
> 
> Another solution is to start couchdb using `etc/init.d/couchdb start`
> 
> -teo
> 
> On Wed, Jan 6, 2010 at 12:40 PM, Bernd Lutz <iberndlu@googlemail.com> wrote:
>> Hello,
>> 
>> there is a nice and easy to follow CouchDB Wiki article on how to install the latest
CouchDB version manually: http://wiki.apache.org/couchdb/Getting_started_with_Amazon_EC2
>> 
>> I've followed these steps and it seems like no error occurred during the installation.
>> 
>> When first running CouchDB it says that is has started but then the process seems
to be stopped. I have the stop the command (ctrl + z) to get out.
>> The second start returns an error (see below).
>> 
>> I've tried versions 0.10, 0.10.1 and 0.11 on Ubuntu 9.04 (EC2 instance). For sure
there is Ubuntu 9.10 which come with 0.10 but this is no option at the moment.
>> 
>> Any idea on how to solve this error?
>> 
>> Best regards,
>> Bernd
>> 
>> 
>> # first start: sudo -i -u couchdb couchdb
>> 
>> Apache CouchDB 0.10.1 (LogLevel=info) is starting.
>> Apache CouchDB has started. Time to relax.
>> [info] [<0.1.0>] Apache CouchDB has started on http://127.0.0.1:5984/
>> 
>> # second start: sudo -i -u couchdb
>> 
>> Apache CouchDB 0.10.1 (LogLevel=info) is starting.
>> Failure to start Mochiweb: eaddrinuse
>> [error] [<0.59.0>] {error_report,<0.22.0>,
>>              {<0.59.0>,crash_report,
>>               [[{pid,<0.59.0>},
>>                 {registered_name,couch_httpd},
>>                 {error_info,{exit,eaddrinuse,
>>                                   [{gen_server,init_it,6},
>>                                    {proc_lib,init_p_do_apply,3}]}},
>>                 {initial_call,{mochiweb_socket_server,init,['Argument__1']}},
>>                 {ancestors,[couch_secondary_services,couch_server_sup,
>>                             <0.1.0>]},
>>                 {messages,[]},
>>                 {links,[<0.51.0>]},
>>                 {dictionary,[]},
>>                 {trap_exit,true},
>>                 {status,running},
>>                 {heap_size,987},
>>                 {stack_size,23},
>>                 {reductions,456}],
>>                []]}}
>> [error] [<0.51.0>] {error_report,<0.22.0>,
>>              {<0.51.0>,supervisor_report,
>>               [{supervisor,{local,couch_secondary_services}},
>>                {errorContext,start_error},
>>                {reason,eaddrinuse},
>>                {offender,[{pid,undefined},
>>                           {name,httpd},
>>                           {mfa,{couch_httpd,start_link,[]}},
>>                           {restart_type,permanent},
>>                           {shutdown,brutal_kill},
>>                           {child_type,worker}]}]}}
>> [error] [<0.43.0>] {error_report,<0.22.0>,
>>    {<0.43.0>,supervisor_report,
>>     [{supervisor,{local,couch_server_sup}},
>>      {errorContext,start_error},
>>      {reason,shutdown},
>>      {offender,
>>          [{pid,undefined},
>>           {name,couch_secondary_services},
>>           {mfa,{couch_server_sup,start_secondary_services,[]}},
>>           {restart_type,permanent},
>>           {shutdown,infinity},
>>           {child_type,supervisor}]}]}}
>> {"init terminating in do_boot",{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}}
>> 
>> Crash dump was written to: erl_crash.dump
>> init terminating in do_boot ()
> 
> 
> 
> -- 
> :Matteo Caprari
> matteo.caprari@gmail.com


Mime
View raw message