You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Nat Lownes <na...@gmail.com> on 2014/03/17 03:04:46 UTC

crash when attempting to create a view, 1.5.0

This is happening on a database with about 360k documents.  I consistently
get this crash when attempting to create any design documents or temporary
views.  I came across it first using python and javascript clients, tried
thru curl and the UI at /_utils/ all with the same result.  Below is my
attempt at creating a view that just emits ids.

Screen shot of the UI:
https://www.dropbox.com/s/1wdglxg19sk2sor/Screenshot%202014-03-16%2018.09.24.png

log output

** Reason for termination ==
** {badmatch,{error,enosys}}


=ERROR REPORT==== 16-Mar-2014::22:08:51 ===
** Generic server <0.496.0> terminating
** Last message in was {'EXIT',<0.495.0>,{badmatch,{error,enosys}}}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.3104>,25}},
                              0}
** Reason for termination ==
** {badmatch,{error,enosys}}
[error] [<0.496.0>] {error_report,<0.31.0>,
                        {<0.496.0>,crash_report,
                         [[{initial_call,{couch_file,init,['Argument__1']}},
                           {pid,<0.496.0>},
                           {registered_name,[]},
                           {error_info,
                               {exit,
                                   {badmatch,{error,enosys}},
                                   [{gen_server,terminate,6},
                                    {proc_lib,init_p_do_apply,3}]}},
                           {ancestors,[<0.495.0>,<0.494.0>]},
                           {messages,[]},
                           {links,[]},
                           {dictionary,[]},
                           {trap_exit,true},
                           {status,running},
                           {heap_size,610},
                           {stack_size,24},
                           {reductions,1424}],
                          []]}}

=CRASH REPORT==== 16-Mar-2014::22:08:51 ===
  crasher:
    initial call: couch_file:init/1
    pid: <0.496.0>
    registered_name: []
    exception exit: {badmatch,{error,enosys}}
      in function  gen_server:terminate/6
    ancestors: [<0.495.0>,<0.494.0>]
    messages: []
    links: []
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 610
    stack_size: 24
    reductions: 1424
  neighbours:
[error] [<0.95.0>] {error_report,<0.31.0>,
                       {<0.95.0>,supervisor_report,
                        [{supervisor,{local,couch_secondary_services}},
                         {errorContext,child_terminated},
                         {reason,{badmatch,{error,enosys}}},
                         {offender,
                             [{pid,<0.283.0>},
                              {name,index_server},
                              {mfargs,{couch_index_server,start_link,[]}},
                              {restart_type,permanent},
                              {shutdown,brutal_kill},
                              {child_type,worker}]}]}}

=SUPERVISOR REPORT==== 16-Mar-2014::22:08:51 ===
     Supervisor: {local,couch_secondary_services}
     Context:    child_terminated
     Reason:     {badmatch,{error,enosys}}
     Offender:   [{pid,<0.283.0>},
                  {name,index_server},
                  {mfargs,{couch_index_server,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,brutal_kill},
                  {child_type,worker}]

[error] [<0.128.0>] Uncaught error in HTTP request: {exit,
                                                     {{badmatch,
                                                       {error,enosys}},
                                                      {gen_server,call,
                                                       [couch_index_server,
                                                        {get_index,
                                                         {couch_mrview_index,
                                                          {mrst,
                                                           <<17,209,89,171,130,
                                                             84,26,32,140,33,
                                                             119,37,135,71,172,
                                                             180>>,
                                                           nil,undefined,
                                                           <<"v1">>,

<<"6edae0df60416cb7ac45407789235837">>,
                                                           <<"javascript">>,
                                                           [],
                                                           {[]},
                                                           [{mrview,0,0,0,
                                                             [<<"temp">>],
                                                             [],
                                                             <<"function(doc)
{\n  emit(doc._id, doc);\n}">>,
                                                             nil,[]}],
                                                           nil,0,0,undefined,
                                                           undefined,
                                                           undefined,
                                                           undefined,
                                                           undefined,nil},
                                                          <<"v1">>,
                                                          <<17,209,89,171,
                                                            130,84,26,32,140,
                                                            33,119,37,135,71,
                                                            172,180>>}},
                                                        infinity]}}}
[info] [<0.128.0>] Stacktrace: [{gen_server,call,3},
                                {couch_index_server,get_index,4},
                                {couch_mrview_util,get_view,4},
                                {couch_mrview,query_view,6},
                                {couch_httpd,etag_maybe,2},
                                {couch_mrview_http,design_doc_view,5},
                                {couch_httpd_db,do_db_req,2},
                                {couch_httpd,handle_request_int,5}]
[info] [<0.128.0>] 10.30.1.107 - - POST /v1/_temp_view?limit=11 500
[error] [<0.128.0>] httpd 500 error response:
 {"error":"{badmatch,{error,enosys}}","reason":"{gen_server,call,\n
[couch_index_server,\n     {get_index,\n         {couch_mrview_index,\n
{mrst,\n
<<17,209,89,171,130,84,26,32,140,33,119,37,135,71,172,180>>,\n
nil,undefined,<<\"v1\">>,\n
<<\"6edae0df60416cb7ac45407789235837\">>,<<\"javascript\">>,[],\n
{[]},\n                 [{mrview,0,0,0,\n                      [<<\"temp\">>],\n
[],<<\"function(doc) {\\n  emit(doc._id, doc);\\n}\">>,nil,\n
[]}],\n
nil,0,0,undefined,undefined,undefined,undefined,undefined,\n
nil},\n             <<\"v1\">>,\n
<<17,209,89,171,130,84,26,32,140,33,119,37,135,71,172,180>>}},\n
infinity]}"}

Re: crash when attempting to create a view, 1.5.0

Posted by Dave Cottlehuber <dc...@jsonified.com>.
On 17. März 2014 at 09:12:02, Nat Lownes (nat.lownes@gmail.com) wrote:
> This is happening on a database with about 360k documents. I consistently
> get this crash when attempting to create any design documents or temporary
> views. I came across it first using python and javascript clients, tried
> thru curl and the UI at /_utils/ all with the same result. Below is my
> attempt at creating a view that just emits ids.
>  
> Screen shot of the UI:
> https://www.dropbox.com/s/1wdglxg19sk2sor/Screenshot%202014-03-16%2018.09.24.png  
>  
> log output
>  
> ** Reason for termination ==
> ** {badmatch,{error,enosys}}

Hi Nat,

ENOSYS is trying to use a function call that is not available on your system.

Could be something like you are running erlang with kernel polling enabled, but your kernel doesn’t support that.

try `erl +K true` and see what happens. If it fails, remove +K from your `couchdb` script.

Other than that, usual questions:

- what OS/distro are you using
- how was couchdb built/installed?
- did it ever work before?
etc

A+
Dave