Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 61869 invoked from network); 15 Nov 2008 14:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2008 14:05:44 -0000 Received: (qmail 64689 invoked by uid 500); 15 Nov 2008 14:05:51 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 64641 invoked by uid 500); 15 Nov 2008 14:05:51 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 64630 invoked by uid 99); 15 Nov 2008 14:05:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Nov 2008 06:05:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dionne@dionne-associates.com designates 69.89.22.13 as permitted sender) Received: from [69.89.22.13] (HELO outbound-mail-103.bluehost.com) (69.89.22.13) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 15 Nov 2008 14:04:27 +0000 Received: (qmail 24379 invoked by uid 0); 15 Nov 2008 14:03:59 -0000 Received: from unknown (HELO host183.hostmonster.com) (74.220.207.183) by outboundproxy3.bluehost.com with SMTP; 15 Nov 2008 14:03:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=dionne-associates.com; h=Received:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer:X-Identified-User; b=CI0EnyBRW/Rv9Ou9HOocuJDQjSizD7x8fCh4go+o3FR58blhmx+FaDoBuibRmI4JZK1FtkBqw85vG0UWarV3LYWxM11cfuwUVnEFvWKJkP3ZLvXjrBJnmkcFzVWSNQn+; Received: from dsl-67-158-177-62.fairpoint.net ([67.158.177.62] helo=[192.168.2.100]) by host183.hostmonster.com with esmtpa (Exim 4.69) (envelope-from ) id 1L1Lkl-0005bX-5r for couchdb-dev@incubator.apache.org; Sat, 15 Nov 2008 07:03:59 -0700 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <6B3EA314-90F6-42AF-9582-9B9499B292ED@dionne-associates.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: couchdb-dev@incubator.apache.org From: Robert Dionne Subject: couch_server_sup Date: Sat, 15 Nov 2008 09:03:58 -0500 X-Mailer: Apple Mail (2.753.1) X-Identified-User: {2551:host183.hostmonster.com:dionneas:dionne-associates.com} {sentby:smtp auth 67.158.177.62 authed with dionne@dionne-associates.com} X-Virus-Checked: Checked by ClamAV on apache.org I'm looking through couch_server and couch_serv_sup, as an example for study while reading the Armstrong book on OTP. I've added allow_remote_restart and admin passwords to my couch- dev.ini so that couch_httpd_msc_handlers calls couch_server:restart. When it sends the restart to couch_server_sup I get the stacks below. Debugging it I see that couch_server and the other children are terminated and couch seems to still behave okay. Why the exceptions? Is it just the message not being handled? Thanks and sorry if this is too newbie a question. Bob (foo@erlang)6> [error] [<0.173.0>] ** Generic server couch_server terminating ** Last message in was remote_restart ** When Server state == {server,"/Users/bitdiddle/emacs/couchdb/tmp/ lib", {concat, {concat, {concat,bos,{char_class,[{97,122}]}}, {kclosure, {char_class, [47,45,43,41,40,36,95,{48,57}, {97,122}]}}}, eos}, "100",4} ** Reason for termination == ** {badarg, [{erlang,exit,[couch_server_sup,restart]}, {couch_server,handle_call, [remote_restart, {<0.229.0>,#Ref<0.0.0.3189>}, {server,"/Users/bitdiddle/emacs/couchdb/tmp/lib", {concat, {concat, {concat,bos,{char_class,[{97,122}]}}, {kclosure, {char_class, [47,45,43,41,40,36,95,{48,57}, {97,122}]}}}, eos}, "100",4}]}]} (foo@erlang)6> =ERROR REPORT==== 15-Nov-2008::07:53:50 === ** Generic server couch_server terminating ** Last message in was remote_restart ** When Server state == {server,"/Users/bitdiddle/emacs/couchdb/tmp/ lib", {concat, {concat, {concat,bos,{char_class,[{97,122}]}}, {kclosure, {char_class, [47,45,43,41,40,36,95,{48,57}, {97,122}]}}}, eos}, "100",4} ** Reason for termination == ** {badarg, [{erlang,exit,[couch_server_sup,restart]}, {couch_server,handle_call, [remote_restart, {<0.229.0>,#Ref<0.0.0.3189>}, {server,"/Users/bitdiddle/emacs/couchdb/tmp/lib", {concat, {concat, {concat,bos,{char_class,[{97,122}]}}, {kclosure, {char_class, [47,45,43,41,40,36,95,{48,57}, {97,122}]}}}, eos}, "100",4}]}]} (foo@erlang)6> [error] [<0.173.0>] {error_report,<0.28.0>, {<0.173.0>,crash_report, [[{pid,<0.173.0>}, {registered_name,couch_server}, {error_info, {exit, {badarg, [{erlang,exit,[couch_server_sup,restart]}, {couch_server,handle_call, [remote_restart, {<0.229.0>,#Ref<0.0.0.3189>}, {server,"/Users/bitdiddle/emacs/couchdb/tmp/lib", {concat, {concat, {concat,bos,{char_class,[{97,122}]}}, {kclosure,{char_class,[47,45,43,41,40,36,95,{48,57}, {97,122}]}}}, eos}, "100",4}]}]}, [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}}, {initial_call,{couch_server,init,['Argument__1']}}, {ancestors,[<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.196.0>,<0.200.0>,<0.206.0>,<0.188.0>,<0.55.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,2584}, {stack_size,23}, {reductions,25027}], [{neighbour, [{pid,<0.198.0>}, {registered_name,[]}, {initial_call,{couch_stream,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.197.0>,<0.196.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.197.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,233}, {stack_size,9}, {reductions,42}]}, {neighbour, [{pid,<0.197.0>}, {registered_name,[]}, {initial_call,{couch_db_updater,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.196.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.196.0>,<0.198.0>,<0.195.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,1597}, {stack_size,9}, {reductions,80382}]}, {neighbour, [{pid,<0.199.0>}, {registered_name,[]}, {initial_call,{couch_file,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[#Port<0.3317>,<0.201.0>]}, {dictionary,[{<0.200.0>,{#Ref<0.0.0.1980>,1}}]}, {trap_exit,false}, {status,waiting}, {heap_size,233}, {stack_size,9}, {reductions,1100}]}, {neighbour, [{pid,<0.202.0>}, {registered_name,[]}, {initial_call,{couch_stream,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.201.0>,<0.200.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.201.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,233}, {stack_size,9}, {reductions,42}]}, {neighbour, [{pid,<0.201.0>}, {registered_name,[]}, {initial_call,{couch_db_updater,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.200.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.200.0>,<0.202.0>,<0.199.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,1597}, {stack_size,9}, {reductions,80382}]}, {neighbour, [{pid,<0.205.0>}, {registered_name,[]}, {initial_call,{couch_file,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[#Port<0.3326>,<0.207.0>]}, {dictionary,[{<0.206.0>,{#Ref<0.0.0.2233>,1}}]}, {trap_exit,false}, {status,waiting}, {heap_size,2584}, {stack_size,9}, {reductions,23700}]}, {neighbour, [{pid,<0.208.0>}, {registered_name,[]}, {initial_call,{couch_stream,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.207.0>,<0.206.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.207.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,610}, {stack_size,9}, {reductions,394}]}, {neighbour, [{pid,<0.207.0>}, {registered_name,[]}, {initial_call,{couch_db_updater,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.206.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.206.0>,<0.208.0>,<0.205.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,2584}, {stack_size,9}, {reductions,364483}]}, {neighbour, [{pid,<0.187.0>}, {registered_name,[]}, {initial_call,{couch_file,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[#Port<0.3311>,<0.189.0>]}, {dictionary,[{<0.188.0>,{#Ref<0.0.0.1911>,1}}]}, {trap_exit,false}, {status,waiting}, {heap_size,377}, {stack_size,9}, {reductions,1179}]}, {neighbour, [{pid,<0.190.0>}, {registered_name,[]}, {initial_call,{couch_stream,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.189.0>,<0.188.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.189.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,233}, {stack_size,9}, {reductions,42}]}, {neighbour, [{pid,<0.189.0>}, {registered_name,[]}, {initial_call,{couch_db_updater,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors, [<0.188.0>,couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.188.0>,<0.190.0>,<0.187.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,610}, {stack_size,9}, {reductions,80193}]}, {neighbour, [{pid,<0.188.0>}, {registered_name,[]}, {initial_call,{couch_db,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.173.0>,<0.189.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,610}, {stack_size,9}, {reductions,197}]}, {neighbour, [{pid,<0.206.0>}, {registered_name,[]}, {initial_call,{couch_db,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.173.0>,<0.207.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,2584}, {stack_size,9}, {reductions,1024}]}, {neighbour, [{pid,<0.200.0>}, {registered_name,[]}, {initial_call,{couch_db,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.173.0>,<0.201.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,377}, {stack_size,9}, {reductions,147}]}, {neighbour, [{pid,<0.196.0>}, {registered_name,[]}, {initial_call,{couch_db,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {ancestors,[couch_server,<0.55.0>,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.173.0>,<0.197.0>]}, {dictionary,[]}, {trap_exit,false}, {status,waiting}, {heap_size,377}, {stack_size,9}, {reductions,155}]}]]}} (foo@erlang)6> [error] [<0.55.0>] {error_report,<0.28.0>, {<0.55.0>,supervisor_report, [{supervisor,{<0.55.0>,couch_server_sup}}, {errorContext,child_terminated}, {reason, {badarg, [{erlang,exit,[couch_server_sup,restart]}, {couch_server,handle_call, [remote_restart, {<0.229.0>,#Ref<0.0.0.3189>}, {server,"/Users/bitdiddle/emacs/couchdb/tmp/lib", {concat, {concat, {concat,bos,{char_class,[{97,122}]}}, {kclosure,{char_class,[47,45,43,41,40,36,95,{48,57}, {97,122}]}}}, eos}, "100",4}]}]}}, {offender, [{pid,<0.173.0>}, {name,couch_server}, {mfa,{couch_server,sup_start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,supervisor}]}]}}