Wsdd ERROR error in main loop

The errors below are polluting my console every minute. This started after I deleted expired “default-freenas” certificate (I have another self-signed cert I’ve been using for a while so really did not think other cert was being used.)

It reads looks like an unhandled error and seems to be related to SMB service. I’ve tried some remedies from old posts in old forum but those aren’t fixing the problem. Same keyword searches in new forum did not return any results. If I turn off SMB service the error messages stop but so does windows sharing so that’s not a viable fix

Help!

Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523823-04:00 truenasnew.local daemon 34833 - - 2024-04-21 11:37:03,523:wsdd ERROR(pid 34834): error in main loop
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523851-04:00 truenasnew.local daemon 34833 - - Traceback (most recent call last):
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523864-04:00 truenasnew.local daemon 34833 - - File “/usr/local/bin/wsdd.py”, line 1732, in main
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523869-04:00 truenasnew.local daemon 34833 - - key.data.handle_request(key)
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523874-04:00 truenasnew.local daemon 34833 - - File “/usr/local/bin/wsdd.py”, line 213, in handle_request
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523878-04:00 truenasnew.local daemon 34833 - - handler.handle_request(msg, address)
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523881-04:00 truenasnew.local daemon 34833 - - File “/usr/local/bin/wsdd.py”, line 728, in handle_request
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523884-04:00 truenasnew.local daemon 34833 - - reply = self.handle_message(msg, self.mch, address)
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523888-04:00 truenasnew.local daemon 34833 - - File “/usr/local/bin/wsdd.py”, line 373, in handle_message
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523891-04:00 truenasnew.local daemon 34833 - - tree = ElementTree.fromstring(msg)
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523894-04:00 truenasnew.local daemon 34833 - - File “/usr/local/lib/python3.9/xml/etree/ElementTree.py”, line 1342, in XML
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523897-04:00 truenasnew.local daemon 34833 - - parser.feed(text)
Apr 21 11:37:03 truenasnew 1 2024-04-21T11:37:03.523901-04:00 truenasnew.local daemon 34833 - - xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 99

Which version are you running? Found SOLVED - WSD error | TrueNAS Community.

running version 13.0-U6.1

Sounds like it’s not handling some potentially invalid WSD messages. 13.3 will have updated wsdd. You can always disable in 13.0 if it’s causing issues.

Can I disable the message without disabling SMB? If I disable the SMB service none of the NAS users will be able to actually use the NAS since they’re are all Windows machines using Windows Sharing (unless there’s another way.)

By the way, this doesn’t seem like a new problem. It - or some variation of the same unhandled error - was happening back in 2020 with v 11.3. See https://www.truenas.com/community/threads/wsd-error.83412/#post-605205

You can disable WSDD through webui in network settings.