Bug #40640
Monitor mdnsd and restart if necessary
Description
Seems like mdns is spamming /var/log/middlewared.log to the point a python traceback is occuring. This pollutes the middlewared.log file.
Below is the verbiage of the message:
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=x20qa2._sftp._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=freejohn._sftp._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=x20qa1._sftp._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=fncertified._sftp._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=tn02-b._sftp._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=warp-b._sftp._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=mp18._middleware._tcp.local. flags=0x00000000 error=0
[2018/01/31 19:05:19] (DEBUG) middlewared.debug():161 - ResolveThread: name=truenas-b._middleware._tcp.local. flags=0x00000000 error=0
Exception in thread Thread-93:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/mdns.py", line 288, in run
pybonjour.DNSServiceProcessResult(ref)
File "/usr/local/lib/python3.6/site-packages/pybonjour.py", line 895, in DNSServiceProcessResult
_DNSServiceProcessResult(sdRef)
File "/usr/local/lib/python3.6/site-packages/pybonjour.py", line 286, in _errcheck
raise cls(result)
pybonjour.BonjourError: (-65541, 'bad reference')
Related issues
Associated revisions
History
#1
Updated by John Hixson over 2 years ago
- Copied from Bug #28095: Monitor mdnsd and restart if necessary added
#2
Updated by John Hixson over 2 years ago
11.1-stable PR: https://github.com/freenas/freenas/pull/1628
#4
Updated by Dru Lavigne over 2 years ago
- Status changed from Unscreened to In Progress
- Needs QA changed from No to Yes
- Needs Merging changed from No to Yes
#5
Updated by Dru Lavigne over 2 years ago
- Status changed from In Progress to Ready for Testing
- Needs Merging changed from Yes to No
#6
Updated by Bonnie Follweiler over 2 years ago
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
Test passed in FreeNAS-11.1-U6-INTERNAL3
#7
Updated by Dru Lavigne over 2 years ago
- Status changed from Passed Testing to Done