Project

General

Profile

Bug #40640

Monitor mdnsd and restart if necessary

Added by John Hixson 12 months ago. Updated 11 months ago.

Status:
Done
Priority:
Important
Assignee:
John Hixson
Category:
Middleware
Target version:
Seen in:
TrueNAS - TrueNAS 11.1-U2
Severity:
Low
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

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

Copied from FreeNAS - Bug #28095: Monitor mdnsd and restart if necessaryDone

Associated revisions

Revision b07819c5 (diff)
Added by John Hixson 12 months ago

Monitor mdnsd and restart if necessary. Avoid tracebacks.

Ticket: #28095
(cherry picked from commit 2de2be9509681c64cf0710db8bf1261d3e98a58e)
(cherry picked from commit af841b7107d3de83da1f3c09ddd8826f5eff6694)

(11.1-stable)
Ticket: #40640

History

#1 Updated by John Hixson 12 months ago

  • Copied from Bug #28095: Monitor mdnsd and restart if necessary added

#2 Updated by John Hixson 12 months ago

#4 Updated by Dru Lavigne 11 months 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 11 months ago

  • Status changed from In Progress to Ready for Testing
  • Needs Merging changed from Yes to No

#6 Updated by Bonnie Follweiler 11 months 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 11 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF