[bind10-dev] shutdown / kill errors
Jeremy C. Reed
jreed at isc.org
Thu Sep 16 23:02:17 UTC 2010
I noticed a few problems when kill -TERM bind10 (boss), CTRL-C, and also
when using "Boss shutdown". Notice multiple problems in examples below.
-=-=-=-=-=-
$ kill 15049
[bind10] Received SIGTERM.
[bind10] Stopping the server.
t1:bind10-20100917-release$ [b10-msgq] Closing socket fd 5
[b10-msgq] Receive error: EOF
[bind10] Process b10-cfgmgr (PID 28093) died.
[bind10] Sending SIGTERM to b10-cmdctl (PID 7268).
[bind10] Sending SIGTERM to b10-xfrout (PID 3346).
[bind10] Sending SIGTERM to b10-zonemgr (PID 2454).
[bind10] Sending SIGTERM to b10-xfrin (PID 6647).
[bind10] Sending SIGTERM to b10-msgq (PID 27674).
[bind10] Sending SIGTERM to b10-auth (PID 16892).
[b10-auth] Initialization failed: asynchronous read failed
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/pkg/lib/python3.1/threading.py", line 509, in _bootstrap_inner
self.run()
File "/usr/pkg/lib/python3.1/threading.py", line 462, in run
self._target(*self._args, **self._kwargs)
File "/home/reed/opt/bind10/libexec/bind10-devel/b10-cmdctl", line 323, in _handle_msg_from_msgq
self._module_cc.check_command()
File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/config/ccsession.py", line 184, in check_command
msg, env = self._session.group_recvmsg(True)
File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 248, in group_recvmsg
env, msg = self.recvmsg(nonblock, seq)
File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 106, in recvmsg
data = self._receive_full_buffer(nonblock)
File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 185, in _receive_full_buffer
self._receive_len_data()
File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 145, in _receive_len_data
new_data = self._receive_bytes(self._recv_len_size)
File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 133, in _receive_bytes
raise ProtocolError("Read of 0 bytes: connection closed")
isc.cc.session.ProtocolError: Read of 0 bytes: connection closed
[bind10] Process b10-xfrin (PID 6647) died.
...
Also these didn't die on their own:
[bind10] Sending SIGKILL to b10-cmdctl (PID 7268).
[bind10] Sending SIGKILL to b10-xfrout (PID 3346).
[bind10] Sending SIGKILL to b10-zonemgr (PID 2454).
-=-=-=-==-
And when using "Boss shutdown" ...
[b10-cmdctl] Begin send command 'shutdown' to module 'Boss'
[bind10] Boss got command:
shutdown
[bind10] got shutdown command
[bind10] Stopping the server.
[b10-cmdctl] Finish send command 'shutdown' to module 'Boss'
[b10-msgq] Closing socket fd 5
[b10-msgq] Receive error: EOF
[b10-zonemgr] Zone (foo., IN) is expired.
[bind10] Process b10-cfgmgr (PID 5869) died.
[bind10] Sending SIGTERM to b10-auth (PID 22224).
[b10-msgq] Closing socket fd 7
[b10-msgq] Receive error: EOF
[b10-msgq] Closing socket fd 11
[b10-msgq] Receive error: EOF
[bind10] Sending SIGTERM to b10-cmdctl (PID 7315).
[bind10] Sending SIGTERM to b10-zonemgr (PID 24408).
[bind10] Sending SIGTERM to b10-xfrout (PID 3993).
[bind10] Sending SIGTERM to b10-msgq (PID 2490).
[bind10] Sending SIGTERM to b10-xfrin (PID 27930).
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/reed/opt/bind10/libexec/bind10-devel/b10-zonemgr", line
351, in run_timer
(rlist, wlist, xlist) = select.select([self._socket], [], [],
timeout)
ValueError: file descriptor cannot be a negative integer (-1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/pkg/lib/python3.1/threading.py", line 509, in
_bootstrap_inner
self.run()
self.run()
File "/usr/pkg/lib/python3.1/threading.py", line 462, in run
self._target(*self._args, **self._kwargs)
File "/home/reed/opt/bind10/libexec/bind10-devel/b10-zonemgr", line
355, in run_timer
raise ZonemgrException("[b10-zonemgr] Socket has been closed\n")
ZonemgrException: [b10-zonemgr] Socket has been closed
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/pkg/lib/python3.1/threading.py", line 509, in
_bootstrap_inner
self.run()
File "/usr/pkg/lib/python3.1/threading.py", line 462, in run
self._target(*self._args, **self._kwargs)
File "/home/reed/opt/bind10/libexec/bind10-devel/b10-cmdctl", line
323, in _handle_msg_from_msgq
self._module_cc.check_command()
File
"/home/reed/opt/bind10/lib/python3.1/site-packages/isc/config/ccsession.py",
line 184, in check_command
msg, env = self._session.group_recvmsg(True)
File
"/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py",
line 248, in group_recvmsg
env, msg = self.recvmsg(nonblock, seq)
File
"/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py",
line 106, in recvmsg
data = self._receive_full_buffer(nonblock)
File
"/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py",
line 185, in _receive_full_buffer
self._receive_len_data()
File
"/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py",
line 145, in _receive_len_data
new_data = self._receive_bytes(self._recv_len_size)
File
"/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py",
line 133, in _receive_bytes
raise ProtocolError("Read of 0 bytes: connection closed")
isc.cc.session.ProtocolError: Read of 0 bytes: connection closed
[bind10] Process b10-xfrin (PID 27930) died.
[bind10] Process b10-zonemgr (PID 24408) died.
[bind10] Process b10-msgq (PID 2490) died.
[bind10] Process b10-auth (PID 22224) died.
[bind10] Sending SIGKILL to b10-cmdctl (PID 7315).
[bind10] Sending SIGKILL to b10-xfrout (PID 3993).
[bind10] Process b10-xfrout (PID 3993) died.
[bind10] Process b10-cmdctl (PID 7315) died.
[bind10] All processes ended, server done.
-=-=-=-=-=-=
... and when doing Ctrl-C (this is a different install/different
server) ...
^C[bind10] Received SIGINT.
[bind10] Stopping the server.
Exception in thread Thread-1:
Traceback (most recent call last):
File
"/home/jreed/tmp/INSTALL-bind10-devel-20100917/libexec/bind10-devel/b10-zonemgr",
line 351, in run_timer
(rlist, wlist, xlist) = select.select([self._socket], [], [],
timeout)
ValueError: file descriptor cannot be a negative integer (-1)
During
handling of the above exception, another
exception occurred:
Traceback (most recent call last):
File "/opt/pkg/lib/python3.1/threading.py", line 509, in
_bootstrap_inner
self.run()
File "/opt/pkg/lib/python3.1/threading.py", line 462, in run
self._target(*self._args, **self._kwargs)
File
"/home/jreed/tmp/INSTALL-bind10-devel-20100917/libexec/bind10-devel/b10-zonemgr",
line 355, in run_timer
raise ZonemgrException("[b10-zonemgr] Socket has been closed\n")
ZonemgrException: [b10-zonemgr] Socket has been closed
[bind10] Process b10-msgq (PID 2325) died.
[bind10] Process b10-cfgmgr (PID 2327) died.
[bind10] Process b10-auth (PID 2328) died.
[bind10] Process b10-xfrin (PID 2330) died.
[bind10] Process b10-zonemgr (PID 2331) died.
[bind10] Process b10-cmdctl (PID 2332) died.
[bind10] Sending SIGTERM to b10-xfrout (PID 2329).
[bind10] Sending SIGKILL to b10-xfrout (PID 2329).
[bind10] Process b10-xfrout (PID 2329) died.
[bind10] All processes ended, server done.
More information about the bind10-dev
mailing list