No title Revision 666438353537 (Thu Apr 29 2010 at 01:26) - Diff Link to this snippet: https://friendpaste.com/5fAlSeKV0wpe1gWEKweVUR Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243BELOW IS A CRASH REPORT FOR VIEW WITH REDUCE FUNCTION IN ERLANG: fun(Keys, Values, ReReduce) -> _sum(Values) end.[Thu, 29 Apr 2010 01:22:01 GMT] [error] [emulator] Error in process <0.12166.38> with exit value: {{try_clause,{'EXIT',{{unbound_var,'_sum'},[{erl_eval,expr,2}]}}},[{couch_query_servers,os_reduce,3},{couch_query_servers,reduce,3},{couch_view_group,'-init_group/4-fun-0-',4},{couch_btree,'-write_node/3-lc$^0/1-0-',3},{couch_btree... [Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 150 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 153 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 161 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 167 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 168 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 175 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [info] [<0.12158.38>] checkpointing view update at seq 176 for tempdata _temp[Thu, 29 Apr 2010 01:22:01 GMT] [error] [<0.12158.38>] ** Generic server <0.12158.38> terminating ** Last message in was {'EXIT',<0.12161.38>, {{try_clause, {'EXIT', {{unbound_var,'_sum'}, [{erl_eval,expr,2}]}}}, [{couch_query_servers,os_reduce,3}, {couch_query_servers,reduce,3}, {couch_view_group,'-init_group/4-fun-0-',4}, {couch_btree,'-write_node/3-lc$^0/1-0-',3}, {couch_btree,write_node,3}, {couch_btree,modify_node,4}, {couch_btree,query_modify,4}, {couch_btree,add_remove,3}]}}** When Server state == {group_state,undefined,<<"tempdata">>, {"/mnt/couchdb/data",<<"tempdata">>, {group, <<95,131,85,117,11,99,155,177,22,197,26,94,189,249, 160,118>>, {db,<0.27983.35>,<0.27984.35>,nil, <<"1272427771104168">>,<0.27981.35>,<0.27985.35>, {db_header,5,189,0, {755854,{5,67}}, {758012,72}, nil,0,nil,nil,1000}, 189, {btree,<0.27981.35>, {755854,{5,67}}, #Fun<couch_db_updater.7.132302543>, #Fun<couch_db_updater.8.107957134>, #Fun<couch_btree.5.124754102>, #Fun<couch_db_updater.9.46112288>}, {btree,<0.27981.35>, {758012,72}, #Fun<couch_db_updater.10.19027664>, #Fun<couch_db_updater.11.35033879>, #Fun<couch_btree.5.124754102>, #Fun<couch_db_updater.12.56344865>}, {btree,<0.27981.35>,nil, #Fun<couch_btree.0.83553141>, #Fun<couch_btree.1.30790806>, #Fun<couch_btree.2.124754102>,nil}, 189,<<"tempdata">>, "/mnt/couchdb/data/tempdata.couch",[],[],nil, {user_ctx,null,[],undefined}, nil,1000, [before_header,after_header,on_file_open]}, nil,<<"_temp">>,<<"erlang">>,[], [{view,0, [<<"_temp">>], <<"fun({Doc}) ->\n {value, {_, Type}} = lists:keysearch(<<\"type\">>, 1, Doc), \n case Type of\n <<\"energy\">> -> \n {value, {_, Uuid}} = lists:keysearch(<<\"uuid\">>, 1, Doc),\n {value, {_, Date}} = lists:keysearch(<<\"date\">>, 1, Doc),\n {value, {_, Total}} = lists:keysearch(<<\"total\">>, 1, Doc),\n Emit([Uuid, Date], Total);\n _ ->\n ok\n end\nend.">>, nil, [{<<"_temp">>, <<"fun(Keys, Values, ReReduce) -> _sum(Values) end.">>}], []}], nil,0,0,nil,nil}}, {group, <<95,131,85,117,11,99,155,177,22,197,26,94,189,249, 160,118>>, {db,<0.27983.35>,<0.27984.35>,nil, <<"1272427771104168">>,<0.27981.35>,<0.27985.35>, {db_header,5,189,0, {755854,{5,67}}, {758012,72}, nil,0,nil,nil,1000}, 189, {btree,<0.27981.35>, {755854,{5,67}}, #Fun<couch_db_updater.7.132302543>, #Fun<couch_db_updater.8.107957134>, #Fun<couch_btree.5.124754102>, #Fun<couch_db_updater.9.46112288>}, {btree,<0.27981.35>, {758012,72}, #Fun<couch_db_updater.10.19027664>, #Fun<couch_db_updater.11.35033879>, #Fun<couch_btree.5.124754102>, #Fun<couch_db_updater.12.56344865>}, {btree,<0.27981.35>,nil, #Fun<couch_btree.0.83553141>, #Fun<couch_btree.1.30790806>, #Fun<couch_btree.2.124754102>,nil}, 189,<<"tempdata">>, "/mnt/couchdb/data/tempdata.couch",[],[],nil, {user_ctx,null,[],undefined}, nil,1000, [before_header,after_header,on_file_open]}, <0.12159.38>,<<"_temp">>,<<"erlang">>,[], [{view,0, [<<"_temp">>], <<"fun({Doc}) ->\n {value, {_, Type}} = lists:keysearch(<<\"type\">>, 1, Doc), \n case Type of\n <<\"energy\">> -> \n {value, {_, Uuid}} = lists:keysearch(<<\"uuid\">>, 1, Doc),\n {value, {_, Date}} = lists:keysearch(<<\"date\">>, 1, Doc),\n {value, {_, Total}} = lists:keysearch(<<\"total\">>, 1, Doc),\n Emit([Uuid, Date], Total);\n _ ->\n ok\n end\nend.">>, {btree,<0.12159.38>,nil, #Fun<couch_btree.3.83553141>, #Fun<couch_btree.4.30790806>, #Fun<couch_view.less_json_ids.2>, #Fun<couch_view_group.10.120246376>}, [{<<"_temp">>, <<"fun(Keys, Values, ReReduce) -> _sum(Values) end.">>}], []}], {btree,<0.12159.38>,nil, #Fun<couch_btree.0.83553141>, #Fun<couch_btree.1.30790806>, #Fun<couch_btree.2.124754102>,nil}, 176,0,nil,nil}, <0.12161.38>,nil,true, [{{<0.12098.38>,#Ref<0.0.68.235511>},189}], <0.12162.38>}** Reason for termination == ** {{try_clause,{'EXIT',{{unbound_var,'_sum'},[{erl_eval,expr,2}]}}}, [{couch_query_servers,os_reduce,3}, {couch_query_servers,reduce,3}, {couch_view_group,'-init_group/4-fun-0-',4}, {couch_btree,'-write_node/3-lc$^0/1-0-',3}, {couch_btree,write_node,3}, {couch_btree,modify_node,4}, {couch_btree,query_modify,4}, {couch_btree,add_remove,3}]}[Thu, 29 Apr 2010 01:22:01 GMT] [error] [<0.12158.38>] {error_report,<0.29.0>, {<0.12158.38>,crash_report, [[{pid,<0.12158.38>}, {registered_name,[]}, {error_info, {exit, {{try_clause, {'EXIT',{{unbound_var,'_sum'},[{erl_eval,expr,2}]}}}, [{couch_query_servers,os_reduce,3}, {couch_query_servers,reduce,3}, {couch_view_group,'-init_group/4-fun-0-',4}, {couch_btree,'-write_node/3-lc$^0/1-0-',3}, {couch_btree,write_node,3}, {couch_btree,modify_node,4}, {couch_btree,query_modify,4}, {couch_btree,add_remove,3}]}, [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}}, {initial_call,{couch_view_group,init,['Argument__1']}}, {ancestors, [couch_view,couch_secondary_services,couch_server_sup,<0.30.0>]}, {messages,[]}, {links,[<0.12159.38>,<0.28783.2>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,10946}, {stack_size,23}, {reductions,2648}], [{neighbour, [{pid,<0.12162.38>}, {registered_name,[]}, {initial_call,{couch_ref_counter,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.12158.38>,couch_view,couch_secondary_services, couch_server_sup,<0.30.0>]}, {messages,[]}, {links,[<0.12159.38>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,233}, {stack_size,9}, {reductions,54}]}, {neighbour, [{pid,<0.12159.38>}, {registered_name,[]}, {initial_call,{couch_file,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.12158.38>,couch_view,couch_secondary_services, couch_server_sup,<0.30.0>]}, {messages,[]}, {links,[<0.12158.38>,<0.12162.38>,#Port<0.33658>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,610}, {stack_size,9}, {reductions,1847}]}]]}}[Thu, 29 Apr 2010 01:22:01 GMT] [error] [<0.12098.38>] {error_report,<0.29.0>, {<0.12098.38>,crash_report, [[{pid,<0.12098.38>}, {registered_name,[]}, {error_info, {error,badarg, [{erlang,list_to_binary, [[{couch_query_servers,os_reduce,3}, {couch_query_servers,reduce,3}, {couch_view_group,'-init_group/4-fun-0-',4}, {couch_btree,'-write_node/3-lc$^0/1-0-',3}, {couch_btree,write_node,3}, {couch_btree,modify_node,4}, {couch_btree,query_modify,4}, {couch_btree,add_remove,3}]]}, {couch_httpd,error_info,1}, {couch_httpd,send_error,2}, {couch_httpd,handle_request_int,5}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}]}}, {initial_call,{mochiweb_socket_server,acceptor_loop,['Argument__1']}}, {ancestors, [couch_httpd,couch_secondary_services,couch_server_sup,<0.30.0>]}, {messages,[]}, {links,[<0.28791.2>,#Port<0.33656>]}, {dictionary, [{mochiweb_request_body, <<"{\"language\":\"erlang\",\"map\":\"fun({Doc}) ->\\u000a {value, {_, Type}} = lists:keysearch(<<\\\"type\\\">>, 1, Doc), \\u000a case Type of\\u000a <<\\\"energy\\\">> -> \\u000a {value, {_, Uuid}} = lists:keysearch(<<\\\"uuid\\\">>, 1, Doc),\\u000a {value, {_, Date}} = lists:keysearch(<<\\\"date\\\">>, 1, Doc),\\u000a {value, {_, Total}} = lists:keysearch(<<\\\"total\\\">>, 1, Doc),\\u000a Emit([Uuid, Date], Total);\\u000a _ ->\\u000a ok\\u000a end\\u000aend.\",\"reduce\":\"fun(Keys, Values, ReReduce) -> _sum(Values) end.\"}">>}, {mochiweb_request_qs, [{"limit","11"},{"descending","true"},{"group","true"}]}, {mochiweb_request_recv,true}, {mochiweb_request_cookie,[]}]}, {trap_exit,false}, {status,running}, {heap_size,6765}, {stack_size,23}, {reductions,12822}], []]}}[Thu, 29 Apr 2010 01:22:01 GMT] [error] [<0.28791.2>] {error_report,<0.29.0>, {<0.28791.2>,std_error, {mochiweb_socket_server,235,{child_error,badarg}}}}