✘pyntpq crash

Gary E. Miller gem at rellim.com
Fri Oct 28 04:11:38 UTC 2016


Yo Eric!

Whoops:

#  ntpq/pyntpq -p
Traceback (most recent call last):
  File "ntpq/pyntpq", line 1441, in <module>
    interpreter.onecmd(cmd)
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "ntpq/pyntpq", line 1051, in do_peers
    self.__dopeers(showall=False, mode="peers")
  File "ntpq/pyntpq", line 270, in __dopeers
    if not self.__dogetassoc():
  File "ntpq/pyntpq", line 173, in __dogetassoc
    self.peers = self.session.readstat()
  File "/u1/src/NTP/ntpsec/ntpq/ntp/packet.py", line 594, in readstat
    self.doquery(opcode=CTL_OP_READSTAT, associd=associd)
  File "/u1/src/NTP/ntpsec/ntpq/ntp/packet.py", line 581, in doquery
    res = self.getresponse(opcode, associd, not retry)
  File "/u1/src/NTP/ntpsec/ntpq/ntp/packet.py", line 461, in getresponse
    rawdata = polystr(self.sock.recv(4096))
socket.error: [Errno 111] Connection refused

This happens when I kill the ntpd on the localhost.  Prolly easy to fix.


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20161027/966ef338/attachment.bin>


More information about the devel mailing list