Skip to content

Instantly share code, notes, and snippets.

@kzar
Created October 28, 2011 11:27
Show Gist options
  • Save kzar/1322092 to your computer and use it in GitHub Desktop.
Save kzar/1322092 to your computer and use it in GitHub Desktop.
CouchDB error thrown when inserting around 8 megs of JSON
[Wed, 26 Oct 2011 17:23:23 GMT] [info] [<0.13767.0>] 127.0.0.1 - - 'PUT' /ertoc/2c88db6ce6159cab69e6b007f4000eec?rev=8-aa880aa6de953cf56ce3deb0ab991fe1 201
[Wed, 26 Oct 2011 17:23:25 GMT] [error] [<0.13797.0>] OS Process Error <0.3932.0> :: {os_process_error,{exit_status,0}}
[Wed, 26 Oct 2011 17:23:25 GMT] [error] [emulator] Error in process <0.13797.0> with exit value: {{nocatch,{os_process_error,{exit_status,0}}},[{couch_os_process,prompt,2},{couch_query_servers,'-map_docs/2-fun-1-',2},{lists,map,2},{couch_query_servers,map_docs,2},{couch_view_updater,view_compute,2},{couch_view_updater...
[Wed, 26 Oct 2011 17:23:25 GMT] [error] [<0.3655.0>] ** Generic server <0.3655.0> terminating
** Last message in was {'EXIT',<0.13794.0>,
{{nocatch,{os_process_error,{exit_status,0}}},
[{couch_os_process,prompt,2},
{couch_query_servers,'-map_docs/2-fun-1-',2},
{lists,map,2},
{couch_query_servers,map_docs,2},
{couch_view_updater,view_compute,2},
{couch_view_updater,do_maps,4}]}}
** When Server state == {group_state,undefined,<<"ertoc">>,
{"/Users/kzar/Library/Application Support/CouchbaseServer",
<<"ertoc">>,
{group,
<<214,115,226,8,211,153,66,226,98,155,132,251,183,
135,213,4>>,
nil,nil,<<"_design/ertoc">>,<<"javascript">>,[],
[{view,0,
[<<"view_awaiting_processing">>,
<<"awaiting-processing">>],
<<"function(doc) {\n if (doc.status == 'awaiting-processing') { \n emit(doc.type, doc);\n }\n}">>,
nil,[],[]}],
nil,0,0,nil,nil}},
{group,
<<214,115,226,8,211,153,66,226,98,155,132,251,183,
135,213,4>>,
{db,<0.131.0>,<0.132.0>,nil,<<"1319636415250082">>,
<0.128.0>,<0.137.0>,
{db_header,5,31,0,
{1443365,{2,9}},
{1443473,11},
nil,0,nil,nil,1000},
31,
{btree,<0.128.0>,
{9082544,{2,9}},
#Fun<couch_db_updater.7.10053969>,
#Fun<couch_db_updater.8.35220795>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.9.107593676>},
{btree,<0.128.0>,
{9082652,11},
#Fun<couch_db_updater.10.30996817>,
#Fun<couch_db_updater.11.96515267>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.12.117826253>},
{btree,<0.128.0>,nil,#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
32,<<"ertoc">>,
"/Users/kzar/Library/Application Support/CouchbaseServer/ertoc.couch",
[],[],nil,
{user_ctx,null,[],undefined},
#Ref<0.0.0.60743>,1000,
[before_header,after_header,on_file_open],
false},
<0.3656.0>,<<"_design/ertoc">>,<<"javascript">>,[],
[{view,0,
[<<"view_awaiting_processing">>,
<<"awaiting-processing">>],
<<"function(doc) {\n if (doc.status == 'awaiting-processing') { \n emit(doc.type, doc);\n }\n}">>,
{btree,<0.3656.0>,
{28843,{1,[]}},
#Fun<couch_btree.3.83553141>,
#Fun<couch_btree.4.30790806>,
#Fun<couch_view.less_json_ids.2>,
#Fun<couch_view_group.10.132983779>},
[],[]}],
{btree,<0.3656.0>,
{28756,[]},
#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
31,0,nil,nil},
<0.13794.0>,nil,false,
[{{<0.13767.0>,#Ref<0.0.0.60764>},32}],
<0.3658.0>,<0.3659.0>}
** Reason for termination ==
** {os_process_error,{exit_status,0}}
[Wed, 26 Oct 2011 17:23:25 GMT] [error] [<0.3655.0>] {error_report,<0.34.0>,
{<0.3655.0>,crash_report,
[[{initial_call,{couch_view_group,init,['Argument__1']}},
{pid,<0.3655.0>},
{registered_name,[]},
{error_info,
{exit,
{os_process_error,{exit_status,0}},
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[couch_view,couch_secondary_services,couch_server_sup,<0.35.0>]},
{messages,[]},
{links,[<0.3656.0>,<0.3659.0>,<0.105.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,4181},
{stack_size,24},
{reductions,2972}],
[{neighbour,
[{pid,<0.3659.0>},
{registered_name,[]},
{initial_call,{couch_event_sup,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[<0.3655.0>,couch_view,couch_secondary_services,
couch_server_sup,<0.35.0>]},
{messages,[{'$gen_cast',stop}]},
{links,[<0.3655.0>,<0.88.0>]},
{dictionary,[]},
{trap_exit,false},
{status,runnable},
{heap_size,233},
{stack_size,9},
{reductions,32}]}]]}}
[Wed, 26 Oct 2011 17:23:25 GMT] [error] [<0.3656.0>] ** Generic server <0.3656.0> terminating
** Last message in was {'EXIT',<0.3655.0>,{os_process_error,{exit_status,0}}}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.1321>,13}},
0,32860}
** Reason for termination ==
** {os_process_error,{exit_status,0}}
[Wed, 26 Oct 2011 17:23:25 GMT] [error] [<0.3656.0>] {error_report,<0.34.0>,
{<0.3656.0>,crash_report,
[[{initial_call,{couch_file,init,['Argument__1']}},
{pid,<0.3656.0>},
{registered_name,[]},
{error_info,
{exit,
{os_process_error,{exit_status,0}},
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[<0.3655.0>,couch_view,couch_secondary_services,couch_server_sup,
<0.35.0>]},
{messages,[]},
{links,[#Port<0.1321>,<0.3658.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,987},
{stack_size,24},
{reductions,47064}],
[{neighbour,
[{pid,<0.3658.0>},
{registered_name,[]},
{initial_call,{couch_ref_counter,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[<0.3655.0>,couch_view,couch_secondary_services,
couch_server_sup,<0.35.0>]},
{messages,
[{'DOWN',#Ref<0.0.0.14428>,process,<0.3655.0>,
{os_process_error,{exit_status,0}}}]},
{links,[<0.3656.0>]},
{dictionary,[]},
{trap_exit,false},
{status,runnable},
{heap_size,2584},
{stack_size,9},
{reductions,7169}]}]]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment