You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Niels Boldt <ni...@gmail.com> on 2012/06/19 10:02:20 UTC

crash

Hi

Couchdb 1.2.0 on ubuntu 12.04 stopped responding. Its build using
https://github.com/iriscouch/build-couchdb

I found a lot of entries like this in the log

[Mon, 18 Jun 2012 07:44:46 GMT] [error] [<0.24124.54>]
{error_report,<0.31.0>,
                        {<0.24124.54>,crash_report,
                         [[{initial_call,
                            {mochiweb_acceptor,init,
                             ['Argument__1','Argument__2','Argument__3']}},
                           {pid,<0.24124.54>},
                           {registered_name,[]},
                           {error_info,
                            {exit,
                             {error,accept_failed},
                             [{mochiweb_acceptor,init,3,
                               [{file,

 "/home/niels/apache-couchdb-1.2.0/build-couchdb/dependencies/couchdb/src/mochiweb/mochiweb_acceptor.erl"},
                                {line,33}]},
                              {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,227}]}]}},
                           {ancestors,
                            [couch_httpd,couch_secondary_services,
                             couch_server_sup,<0.32.0>]},
                           {messages,[]},
                           {links,[<0.22111.51>]},
                           {dictionary,[]},
                           {trap_exit,false},
                           {status,running},
                           {heap_size,610},
                           {stack_size,24},
                           {reductions,245}],
                          []]}}
[Mon, 18 Jun 2012 07:44:46 GMT] [error] [<0.22111.51>]
{error_report,<0.31.0>,
                           {<0.22111.51>,std_error,
                            {mochiweb_socket_server,310,
                                {acceptor_error,{error,accept_failed}}}}}
[Mon, 18 Jun 2012 07:44:46 GMT] [error] [<0.24125.54>]
{error_report,<0.31.0>,
                                     {<0.24125.54>,std_error,
                                      [{application,mochiweb},
                                       "Accept failed error",
                                       "{error,emfile}"]}}

I had to restart couchdb to get it up and running again.

Any ideas what is going on. Is it caused by overload, as it says it "Accept
failed error"

Best Regards
Niels


-- 
BinaryConstructors ApS
Vestergade 10a, 4th
1456 Kbh K
Denmark
phone: +4529722259
web: http://www.binaryconstructors.dk
mail: nb@binaryconstructors.dk
skype: nielsboldt

Re: crash

Posted by Niels Boldt <ni...@gmail.com>.
>
> emfile means you've run out of file descriptors.
>
>
Can that be caused by flawed usage patterns or should I simply try to
increase that limit.

What kind of operations does normally use a lot of file descriptors?

/Niels


> B.
>
> On 19 June 2012 09:59, Dave Cottlehuber <da...@muse.net.nz> wrote:
> > On 19 June 2012 10:02, Niels Boldt <ni...@gmail.com> wrote:
> >> Hi
> >>
> >> Couchdb 1.2.0 on ubuntu 12.04 stopped responding. Its build using
> >> https://github.com/iriscouch/build-couchdb
> >>
> >> I found a lot of entries like this in the log
> >>
> >> [Mon, 18 Jun 2012 07:44:46 GMT] [error] [<0.24124.54>]
> >> {error_report,<0.31.0>,
> >>                        {<0.24124.54>,crash_report,
> >>                         [[{initial_call,
> >>                            {mochiweb_acceptor,init,
> >>
> ['Argument__1','Argument__2','Argument__3']}},
> >>                           {pid,<0.24124.54>},
> >>                           {registered_name,[]},
> >>                           {error_info,
> >>                            {exit,
> >>                             {error,accept_failed},
> >
> >
> >>                                       "{error,emfile}"]}}
> >
> > I'm wondering you're running into some system limit.
> >
> > Can you check http://wiki.apache.org/couchdb/Performance#Resource_Limits
> > and see if tweaking might help?
> >
> > A+
> > Dave
>



-- 
BinaryConstructors ApS
Vestergade 10a, 4th
1456 Kbh K
Denmark
phone: +4529722259
web: http://www.binaryconstructors.dk
mail: nb@binaryconstructors.dk
skype: nielsboldt

Re: crash

Posted by Robert Newson <rn...@apache.org>.
emfile means you've run out of file descriptors.

B.

On 19 June 2012 09:59, Dave Cottlehuber <da...@muse.net.nz> wrote:
> On 19 June 2012 10:02, Niels Boldt <ni...@gmail.com> wrote:
>> Hi
>>
>> Couchdb 1.2.0 on ubuntu 12.04 stopped responding. Its build using
>> https://github.com/iriscouch/build-couchdb
>>
>> I found a lot of entries like this in the log
>>
>> [Mon, 18 Jun 2012 07:44:46 GMT] [error] [<0.24124.54>]
>> {error_report,<0.31.0>,
>>                        {<0.24124.54>,crash_report,
>>                         [[{initial_call,
>>                            {mochiweb_acceptor,init,
>>                             ['Argument__1','Argument__2','Argument__3']}},
>>                           {pid,<0.24124.54>},
>>                           {registered_name,[]},
>>                           {error_info,
>>                            {exit,
>>                             {error,accept_failed},
>
>
>>                                       "{error,emfile}"]}}
>
> I'm wondering you're running into some system limit.
>
> Can you check http://wiki.apache.org/couchdb/Performance#Resource_Limits
> and see if tweaking might help?
>
> A+
> Dave

Re: crash

Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 19 June 2012 10:02, Niels Boldt <ni...@gmail.com> wrote:
> Hi
>
> Couchdb 1.2.0 on ubuntu 12.04 stopped responding. Its build using
> https://github.com/iriscouch/build-couchdb
>
> I found a lot of entries like this in the log
>
> [Mon, 18 Jun 2012 07:44:46 GMT] [error] [<0.24124.54>]
> {error_report,<0.31.0>,
>                        {<0.24124.54>,crash_report,
>                         [[{initial_call,
>                            {mochiweb_acceptor,init,
>                             ['Argument__1','Argument__2','Argument__3']}},
>                           {pid,<0.24124.54>},
>                           {registered_name,[]},
>                           {error_info,
>                            {exit,
>                             {error,accept_failed},


>                                       "{error,emfile}"]}}

I'm wondering you're running into some system limit.

Can you check http://wiki.apache.org/couchdb/Performance#Resource_Limits
and see if tweaking might help?

A+
Dave