Menu

AttributeError: 'NoneType' object has no attribute 'findtext' in version 2.2.2 with 2017-10-10

2017-10-14
2017-10-19
  • Andreas Wrede

    Andreas Wrede - 2017-10-14

    I just upated version 2.2.2 with the 2017-10-10 update and I get the above Python crash. The full traceback is

    [Admin4 pid:52842 mux-aware] starting, non-mux-aware app count 2, switch-state 0 IG FBs 0 EG FBs 1:3 power-state 0 3D idle HDA idle Traceback (most recent call last): File "/Applications/Admin4.app/Contents/Resources/frame.py", line 358, in OnActivate self.AutoConnect(evt) File "/Applications/Admin4.app/Contents/Resources/frame.py", line 374, in AutoConnect rc=self.servers.ConnectServer(server, self.tree.name) File "/Applications/Admin4.app/Contents/Resources/tree.py", line 468, in ConnectServer rc=server.Connect(self) File "/Applications/Admin4.app/Contents/Resources/node.py", line 602, in Connect rc=self.DoConnect() File "/Applications/Admin4.app/Contents/Resources/modBind/Server.py", line 159, in DoConnect self.RefreshVolatile(True) File "/Applications/Admin4.app/Contents/Resources/modBind/Server.py", line 98, in RefreshVolatile statVersion=float(self.stats.find('statistics').findtext('version')) AttributeError: 'NoneType' object has no attribute 'findtext'

     
  • Andreas Pflug

    Andreas Pflug - 2017-10-17

    Hm, apparently the statistics answer from bind was unexpected.
    When downloading <yourbindserver>:8053 using curl or wget you should get a xml file that starts like this:</yourbindserver>

    <statistics version="3.6"><server></server></statistics>

    The statistics version is extracted from here, indicating a Bind >= 9.10
    In your case, the <statistics> node wasn't found. Please post the first few lines of your server's response.</statistics>

     
  • Andreas Wrede

    Andreas Wrede - 2017-10-17

    The Bind version running is 9.9.11. Total output was about 1.7MB, the first couple of lines are:

    `

    <isc version="1.0">
    <bind>
    <statistics version="2.2">
    <views>
    <view>
    <name>_default</name>
    <zones>
    <zone>`
    [...]</zone></zones></view></views></statistics></bind></isc>

     

    Last edit: Andreas Wrede 2017-10-17
  • Andreas Pflug

    Andreas Pflug - 2017-10-19

    Seems I introduced a problem for Bind9.9; fixed with update 2017-10-19.
    Thanks for reporting.

     

Log in to post a comment.

MongoDB Logo MongoDB