Skip to content

Instantly share code, notes, and snippets.

@stormsilver
Created October 26, 2009 15:33
Show Gist options
  • Save stormsilver/218740 to your computer and use it in GitHub Desktop.
Save stormsilver/218740 to your computer and use it in GitHub Desktop.
[Mon, 26 Oct 2009 15:33:07 GMT] [info] [<0.124.0>] 127.0.0.1 - - 'GET' / 200
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [<0.136.0>] OS Process Error :: {os_process_error,{exit_status,127}}
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [<0.133.0>] ** Generic server <0.133.0> terminating
** Last message in was {'EXIT',<0.136.0>,
{{nocatch,{os_process_error,{exit_status,127}}},
[{couch_os_process,prompt,2},
{couch_query_servers,'-start_doc_map/2-fun-0-',2},
{lists,foreach,2},
{couch_query_servers,start_doc_map,2},
{couch_view_updater,view_compute,2},
{couch_view_updater,update,2}]}}
** When Server state == {group_state,undefined,<<"chef">>,
{"/opt/couchdb-0.10.0/var/lib/couchdb",<<"chef">>,
{group,
<<143,200,160,17,135,1,40,117,97,206,157,225,33,166,
192,100>>,
nil,nil,<<"_design/nodes">>,<<"javascript">>,[],
[{view,0,
[<<"all_id">>],
<<" function(doc) { \n if (doc.chef_type == \"node\") {\n emit(doc.name, doc.name);\n }\n }\n">>,
nil,[]},
{view,1,
[<<"status">>],
<<" function(doc) {\n if (doc.chef_type == \"node\") {\n var to_emit = { \"name\": doc.name };\n if (doc[\"attributes\"][\"fqdn\"]) {\n to_emit[\"fqdn\"] = doc[\"attributes\"][\"fqdn\"];\n } else {\n to_emit[\"fqdn\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"ipaddress\"]) {\n to_emit[\"ipaddress\"] = doc[\"attributes\"][\"ipaddress\"];\n } else {\n to_emit[\"ipaddress\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"ohai_time\"]) {\n to_emit[\"ohai_time\"] = doc[\"attributes\"][\"ohai_time\"];\n } else {\n to_emit[\"ohai_time\"] = \"Undefined\";\n } \n if (doc[\"attributes\"][\"uptime\"]) {\n to_emit[\"uptime\"] = doc[\"attributes\"][\"uptime\"];\n } else {\n to_emit[\"uptime\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"platform\"]) {\n to_emit[\"platform\"] = doc[\"attributes\"][\"platform\"];\n } else {\n to_emit[\"platform\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"platform_version\"]) {\n to_emit[\"platform_version\"] = doc[\"attributes\"][\"platform_version\"];\n } else {\n to_emit[\"platform_version\"] = \"Undefined\";\n }\n if (doc[\"run_list\"]) {\n to_emit[\"run_list\"] = doc[\"run_list\"];\n } else {\n to_emit[\"run_list\"] = \"Undefined\";\n }\n emit(doc.name, to_emit);\n }\n }\n">>,
nil,[]},
{view,2,
[<<"all">>],
<<" function(doc) { \n if (doc.chef_type == \"node\") {\n emit(doc.name, doc);\n }\n }\n">>,
nil,[]},
{view,3,
[<<"by_run_list">>],
<<" function(doc) {\n if (doc.chef_type == \"node\") {\n if (doc['run_list']) {\n for (var i=0; i < doc.run_list.length; i++) {\n emit(doc['run_list'][i], doc.name);\n }\n }\n }\n }\n">>,
nil,[]}],
nil,0,0,nil,nil}},
{group,
<<143,200,160,17,135,1,40,117,97,206,157,225,33,166,
192,100>>,
{db,<0.84.0>,<0.85.0>,nil,<<"1256571180974876">>,
<0.82.0>,<0.86.0>,
{db_header,4,33,0,
{81155,{18,0}},
{81240,18},
nil,0,nil,nil,1000},
33,
{btree,<0.82.0>,
{129639,{18,0}},
#Fun<couch_db_updater.8.117532479>,
#Fun<couch_db_updater.9.105507025>,
#Fun<couch_db_updater.7.32442936>,
#Fun<couch_db_updater.10.43662179>},
{btree,<0.82.0>,
{129755,18},
#Fun<couch_db_updater.11.41695917>,
#Fun<couch_db_updater.12.6934644>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.13.28245598>},
{btree,<0.82.0>,nil,#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
48,<<"chef">>,
"/opt/couchdb-0.10.0/var/lib/couchdb/chef.couch",
[],[],nil,
{user_ctx,null,[]},
#Ref<0.0.0.367>,1000,
[before_header,after_header,on_file_open]},
<0.134.0>,<<"_design/nodes">>,<<"javascript">>,[],
[{view,0,
[<<"all_id">>],
<<" function(doc) { \n if (doc.chef_type == \"node\") {\n emit(doc.name, doc.name);\n }\n }\n">>,
{btree,<0.134.0>,nil,
#Fun<couch_btree.3.83553141>,
#Fun<couch_btree.4.30790806>,
#Fun<couch_view.less_json_keys.2>,
#Fun<couch_view_group.11.46347864>},
[]},
{view,1,
[<<"status">>],
<<" function(doc) {\n if (doc.chef_type == \"node\") {\n var to_emit = { \"name\": doc.name };\n if (doc[\"attributes\"][\"fqdn\"]) {\n to_emit[\"fqdn\"] = doc[\"attributes\"][\"fqdn\"];\n } else {\n to_emit[\"fqdn\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"ipaddress\"]) {\n to_emit[\"ipaddress\"] = doc[\"attributes\"][\"ipaddress\"];\n } else {\n to_emit[\"ipaddress\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"ohai_time\"]) {\n to_emit[\"ohai_time\"] = doc[\"attributes\"][\"ohai_time\"];\n } else {\n to_emit[\"ohai_time\"] = \"Undefined\";\n } \n if (doc[\"attributes\"][\"uptime\"]) {\n to_emit[\"uptime\"] = doc[\"attributes\"][\"uptime\"];\n } else {\n to_emit[\"uptime\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"platform\"]) {\n to_emit[\"platform\"] = doc[\"attributes\"][\"platform\"];\n } else {\n to_emit[\"platform\"] = \"Undefined\";\n }\n if (doc[\"attributes\"][\"platform_version\"]) {\n to_emit[\"platform_version\"] = doc[\"attributes\"][\"platform_version\"];\n } else {\n to_emit[\"platform_version\"] = \"Undefined\";\n }\n if (doc[\"run_list\"]) {\n to_emit[\"run_list\"] = doc[\"run_list\"];\n } else {\n to_emit[\"run_list\"] = \"Undefined\";\n }\n emit(doc.name, to_emit);\n }\n }\n">>,
{btree,<0.134.0>,nil,
#Fun<couch_btree.3.83553141>,
#Fun<couch_btree.4.30790806>,
#Fun<couch_view.less_json_keys.2>,
#Fun<couch_view_group.11.46347864>},
[]},
{view,2,
[<<"all">>],
<<" function(doc) { \n if (doc.chef_type == \"node\") {\n emit(doc.name, doc);\n }\n }\n">>,
{btree,<0.134.0>,nil,
#Fun<couch_btree.3.83553141>,
#Fun<couch_btree.4.30790806>,
#Fun<couch_view.less_json_keys.2>,
#Fun<couch_view_group.11.46347864>},
[]},
{view,3,
[<<"by_run_list">>],
<<" function(doc) {\n if (doc.chef_type == \"node\") {\n if (doc['run_list']) {\n for (var i=0; i < doc.run_list.length; i++) {\n emit(doc['run_list'][i], doc.name);\n }\n }\n }\n }\n">>,
{btree,<0.134.0>,nil,
#Fun<couch_btree.3.83553141>,
#Fun<couch_btree.4.30790806>,
#Fun<couch_view.less_json_keys.2>,
#Fun<couch_view_group.11.46347864>},
[]}],
{btree,<0.134.0>,nil,#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
3,0,nil,nil},
<0.136.0>,nil,false,
[{{<0.131.0>,#Ref<0.0.0.1181>},48}],
<0.137.0>}
** Reason for termination ==
** {os_process_error,{exit_status,127}}
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [<0.56.0>] {error_report,<0.22.0>,
{<0.56.0>,supervisor_report,
[{supervisor,{local,couch_secondary_services}},
{errorContext,child_terminated},
{reason,normal},
{offender,[{pid,<0.61.0>},
{name,query_servers},
{mfa,{couch_query_servers,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]}]}}
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [<0.133.0>] {error_report,<0.22.0>,
{<0.133.0>,crash_report,
[[{initial_call,{couch_view_group,init,['Argument__1']}},
{pid,<0.133.0>},
{registered_name,[]},
{error_info,
{exit,
{os_process_error,{exit_status,127}},
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[couch_view,couch_secondary_services,couch_server_sup,<0.1.0>]},
{messages,[]},
{links,[<0.134.0>,<0.64.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,987},
{stack_size,24},
{reductions,486}],
[{neighbour,
[{pid,<0.137.0>},
{registered_name,[]},
{initial_call,{couch_ref_counter,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[<0.133.0>,couch_view,couch_secondary_services,
couch_server_sup,<0.1.0>]},
{messages,[]},
{links,[<0.134.0>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,233},
{stack_size,9},
{reductions,47}]},
{neighbour,
[{pid,<0.134.0>},
{registered_name,[]},
{initial_call,{couch_file,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[<0.133.0>,couch_view,couch_secondary_services,
couch_server_sup,<0.1.0>]},
{messages,[]},
{links,[<0.133.0>,<0.137.0>,#Port<0.1417>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,377},
{stack_size,9},
{reductions,1409}]}]]}}
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [emulator] Error in process <0.136.0> with exit value: {{nocatch,{os_process_error,{exit_status,127}}},[{couch_os_process,prompt,2},{couch_query_servers,'-start_doc_map/2-fun-0-',2},{lists,foreach,2},{couch_query_servers,start_doc_map,2},{couch_view_updater,view_compute...
[Mon, 26 Oct 2009 15:33:07 GMT] [info] [<0.131.0>] 127.0.0.1 - - 'GET' /chef/_design/nodes/_view/all_id 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment