erlangcouchdbmochiweb

CouchDb Crashes with no reason in the crash report


CouchDb keeps crashing and outputs the following log. I tried searching the CouchDb guides as to what the crash reason is, but I couldn't find anything. It appears that the reason is a badmatch but I am not sure what the bad match would be. Any idea on what error the crash report refers to? I am running the latest version of Couch on Windows.

[Thu, 13 Feb 2014 15:09:38 GMT] [error] [<0.10713.9>] {error_report,<0.34.0>,
                       {<0.10713.9>,crash_report,
                        [[{initial_call,
                           {mochiweb_acceptor,init,
                            ['Argument__1','Argument__2','Argument__3']}},
                          {pid,<0.10713.9>},
                          {registered_name,[]},
                          {error_info,
                           {error,
                            {badmatch,{error,einval}},
                            [{mochiweb_http,new_request,3,
                              [{file,
                                "c:/cygwin/relax/APACHE~1.0/src/mochiweb/mochiweb_http.erl"},
                               {line,133}]},
                             {mochiweb_http,handle_invalid_request,3,
                              [{file,
                                "c:/cygwin/relax/APACHE~1.0/src/mochiweb/mochiweb_http.erl"},
                               {line,127}]},
                             {mochiweb_http,handle_invalid_request,1,
                              [{file,
                                "c:/cygwin/relax/APACHE~1.0/src/mochiweb/mochiweb_http.erl"},
                               {line,122}]},
                             {proc_lib,init_p_do_apply,3,
                              [{file,"proc_lib.erl"},{line,239}]}]}},
                          {ancestors,
                           [couch_httpd,couch_secondary_services,
                            couch_server_sup,<0.35.0>]},
                          {messages,[{tcp_closed,#Port<0.42313>}]},
                          {links,[<0.111.0>]},
                          {dictionary,
                           [{couch_rewrite_count,0},{jsonp,no_jsonp}]},
                          {trap_exit,false},
                          {status,running},
                          {heap_size,2586},
                          {stack_size,27},
                          {reductions,23231254}],
                         []]}}

Solution

  • I believe this could help you.
    But it looks like it's an old bug, already solved in Mochiweb. Are you running the latest version of CouchDb?