TN12 - Same error everyday

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
Hi,
on one Truenas 12 server I get that error message each day
Code:
Nov 16 16:10:59 SRV-XXXXXX 1 2020-11-16T16:10:59.870908+01:00 SRV-XXXXXX.local daemon 1395 - - 2020-11-16 16:10:59,870:wsdd ERROR(pid 1396): error in main loop
Nov 16 16:10:59 SRV-XXXXXX 1 2020-11-16T16:10:59.871077+01:00 SRV-XXXXXX.local daemon 1395 - - Traceback (most recent call last):
Nov 16 16:10:59 SRV-XXXXXX 1 2020-11-16T16:10:59.871082+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 809, in serve_wsd_requests
Nov 16 16:10:59 SRV-XXXXXX 1 2020-11-16T16:10:59.871084+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 462, in handle_request
Nov 16 16:10:59 SRV-XXXXXX 1 2020-11-16T16:10:59.871087+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 411, in wsd_handle_message
Nov 16 16:10:59 SRV-XXXXXX 1 2020-11-16T16:10:59.871089+01:00 SRV-XXXXXX.local daemon 1395 - - AttributeError: 'NoneType' object has no attribute 'text'
Nov 16 16:12:00 SRV-XXXXXX 1 2020-11-16T16:12:00.151491+01:00 SRV-XXXXXX.local daemon 1395 - - 2020-11-16 16:12:00,151:wsdd ERROR(pid 1396): error in main loop
Nov 16 16:12:00 SRV-XXXXXX 1 2020-11-16T16:12:00.151507+01:00 SRV-XXXXXX.local daemon 1395 - - Traceback (most recent call last):
Nov 16 16:12:00 SRV-XXXXXX 1 2020-11-16T16:12:00.151510+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 809, in serve_wsd_requests
Nov 16 16:12:00 SRV-XXXXXX 1 2020-11-16T16:12:00.151513+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 462, in handle_request
Nov 16 16:12:00 SRV-XXXXXX 1 2020-11-16T16:12:00.151516+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 411, in wsd_handle_message
Nov 16 16:12:00 SRV-XXXXXX 1 2020-11-16T16:12:00.151518+01:00 SRV-XXXXXX.local daemon 1395 - - AttributeError: 'NoneType' object has no attribute 'text'
Nov 17 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload request received, reloading configuration;
Nov 17 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload finished;
Nov 18 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload request received, reloading configuration;
Nov 18 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload finished;
Nov 19 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload request received, reloading configuration;
Nov 19 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload finished;
Nov 19 15:10:26 SRV-XXXXXX 1 2020-11-19T15:10:26.311852+01:00 SRV-XXXXXX.local daemon 1395 - - 2020-11-19 15:10:26,311:wsdd ERROR(pid 1396): error in main loop
Nov 19 15:10:26 SRV-XXXXXX 1 2020-11-19T15:10:26.311869+01:00 SRV-XXXXXX.local daemon 1395 - - Traceback (most recent call last):
Nov 19 15:10:26 SRV-XXXXXX 1 2020-11-19T15:10:26.311872+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 809, in serve_wsd_requests
Nov 19 15:10:26 SRV-XXXXXX 1 2020-11-19T15:10:26.311875+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 462, in handle_request
Nov 19 15:10:26 SRV-XXXXXX 1 2020-11-19T15:10:26.311877+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 411, in wsd_handle_message
Nov 19 15:10:26 SRV-XXXXXX 1 2020-11-19T15:10:26.311879+01:00 SRV-XXXXXX.local daemon 1395 - - AttributeError: 'NoneType' object has no attribute 'text'
Nov 20 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload request received, reloading configuration;
Nov 20 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload finished;
Nov 20 11:41:20 SRV-XXXXXX 1 2020-11-20T11:41:20.658433+01:00 SRV-XXXXXX.local daemon 1395 - - 2020-11-20 11:41:20,658:wsdd ERROR(pid 1396): error in main loop
Nov 20 11:41:20 SRV-XXXXXX 1 2020-11-20T11:41:20.658450+01:00 SRV-XXXXXX.local daemon 1395 - - Traceback (most recent call last):
Nov 20 11:41:20 SRV-XXXXXX 1 2020-11-20T11:41:20.658453+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 809, in serve_wsd_requests
Nov 20 11:41:20 SRV-XXXXXX 1 2020-11-20T11:41:20.658455+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 462, in handle_request
Nov 20 11:41:20 SRV-XXXXXX 1 2020-11-20T11:41:20.658458+01:00 SRV-XXXXXX.local daemon 1395 - -   File "/usr/local/bin/wsdd.py", line 411, in wsd_handle_message
Nov 20 11:41:20 SRV-XXXXXX 1 2020-11-20T11:41:20.658460+01:00 SRV-XXXXXX.local daemon 1395 - - AttributeError: 'NoneType' object has no attribute 'text'
Nov 21 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload request received, reloading configuration;
Nov 21 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload finished;
Nov 22 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload request received, reloading configuration;
Nov 22 00:00:00 SRV-XXXXXX syslog-ng[2013]: Configuration reload finished;


I have no idea what to do, so If someone knows, i'll be happy to receive some help.
 

Evaia

Cadet
Joined
Mar 23, 2018
Messages
5
Seconded, I am also getting this error on two of my 12.0 U1 servers.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Seconded, I am also getting this error on two of my 12.0 U1 servers.
Okay. That looks like there's a lack of proper exception handling for some edge case in the utility. Some client is probably sending invalid xml. I'll have a fix shortly. Let's see what the offending client is sending.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
If you feel up for testing a possible fix, make a backup of /usr/local/bin/wsdd.py and replace it with the attached version, then "service wsdd restart".
 

Evaia

Cadet
Joined
Mar 23, 2018
Messages
5
If you feel up for testing a possible fix, make a backup of /usr/local/bin/wsdd.py and replace it with the attached version, then "service wsdd restart".
I'll try that tomorrow.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
I'll try that tomorrow.
Great. Please let send me a debug after it has run for a while (maybe 24 hours). There is extra logging that _should_ capture the ws-discovery message that's malformed. This will help me to decide what to do with it (currently, in this "fix" the message is discarded).
 

Evaia

Cadet
Joined
Mar 23, 2018
Messages
5

[mod note: merged posts -JG]

Had a few other issues pop up that took my time yesterday, trying it today, instead.

It has been installed-- error has stopped for now it appears. Will provide debug in approx. 24 hours.
 
Last edited by a moderator:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
There was a typo in the last version I sent you. Sorry, I wrote it too fast. This one appears to be working fine for me.
 

Attachments

  • wsdd_fix2.zip
    8.9 KB · Views: 168

Evaia

Cadet
Joined
Mar 23, 2018
Messages
5
There was a typo in the last version I sent you. Sorry, I wrote it too fast. This one appears to be working fine for me.
I will install that and let it run over the weekend, in the meantime, I've sent you the debug from the last 24 hours in a conversation message.
 
Top