Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559408 - net-dns/avahi-0.6.31-r8: avahi-daemon constantly reporting "Invalid response packet from host"
Summary: net-dns/avahi-0.6.31-r8: avahi-daemon constantly reporting "Invalid response ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: http://avahi.org/ticket/352
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-02 11:25 UTC by Pacho Ramos
Modified: 2015-09-25 16:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-09-02 11:25:56 UTC
I am getting lots of messages like:
avahi-daemon[401]: Invalid response packet from host

People in https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1342400 wonder if maybe this is caused by some new Windows 10 or latest Mac OS X computers running around, but looks like they still couldn't find a real fix for this :S
http://avahi.org/ticket/352
Comment 1 Anthony Basile gentoo-dev 2015-09-05 08:22:21 UTC
(In reply to Pacho Ramos from comment #0)
> I am getting lots of messages like:
> avahi-daemon[401]: Invalid response packet from host
> 
> People in https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1342400
> wonder if maybe this is caused by some new Windows 10 or latest Mac OS X
> computers running around, but looks like they still couldn't find a real fix
> for this :S
> http://avahi.org/ticket/352

I'm not sure there's anything for me to do.  All indications is that its an macosx thing.  avahi drops these packets so its safe.
Comment 2 Pacho Ramos gentoo-dev 2015-09-05 09:26:18 UTC
I will try to follow the bug in Ubuntu side (as upstream looks to not care for now) as this even causes avahi to use 1-2% CPU only spamming journalctl with tons of lines like this :(
Comment 3 Anthony Basile gentoo-dev 2015-09-05 12:49:01 UTC
(In reply to Pacho Ramos from comment #2)
> I will try to follow the bug in Ubuntu side (as upstream looks to not care
> for now) as this even causes avahi to use 1-2% CPU only spamming journalctl
> with tons of lines like this :(

okay so you're seeing this.  what i can do is mute those warnings or add some code to give the warning only once every X seconds if repeated if i can safely schedule an alarm signal, or once every X messages if i can't.  do you think this will help with the cpu usage?
Comment 4 Pacho Ramos gentoo-dev 2015-09-05 13:02:50 UTC
Maybe it will help :/

As a side note, this is the old patch that worked some ago:
http://lists.freedesktop.org/archives/avahi/attachments/20120719/1e71846e/attachment.obj

But per Ubuntu latest comment, it looks to not be enough now :S
Comment 5 Pacho Ramos gentoo-dev 2015-09-14 09:06:58 UTC
Do you know if there is any way to simply blacklist and IP from avahi? I can use that as a workaround because the machines that are causing this warnings are not going to be used by me ever ;)

Thanks
Comment 6 Pacho Ramos gentoo-dev 2015-09-19 08:52:54 UTC
Fedora has applied this for this bug:
http://pkgs.fedoraproject.org/cgit/avahi.git/commit/?id=54e63ffbd52feaf8acf71ab5b0480dc14ba4dbce

There are also some other fixes pushed recently in Fedora for other bugs that maybe could be useful too :)
Comment 7 Anthony Basile gentoo-dev 2015-09-19 10:43:41 UTC
(In reply to Pacho Ramos from comment #6)
> Fedora has applied this for this bug:
> http://pkgs.fedoraproject.org/cgit/avahi.git/commit/
> ?id=54e63ffbd52feaf8acf71ab5b0480dc14ba4dbce
> 
> There are also some other fixes pushed recently in Fedora for other bugs
> that maybe could be useful too :)

have you tested it and does it fix the problem?
Comment 8 Pacho Ramos gentoo-dev 2015-09-19 10:52:46 UTC
I will try the next Monday (as that is the network that has the ton of systems causing this warnings)
Comment 9 Anthony Basile gentoo-dev 2015-09-19 11:00:12 UTC
(In reply to Pacho Ramos from comment #8)
> I will try the next Monday (as that is the network that has the ton of
> systems causing this warnings)

I did a build test with that patch and everything seems to be okay.  The avahi ebuild has epatch_user so its convenient to test patches.  Just remove the avahi.spec chunk since its just to build rpms.
Comment 10 Pacho Ramos gentoo-dev 2015-09-21 08:18:37 UTC
the patch is not enough :'(

I will reply in redhat bug report :(
Comment 11 Pacho Ramos gentoo-dev 2015-09-23 17:55:00 UTC
Fedora updated the patch and finally it works :D
http://pkgs.fedoraproject.org/cgit/avahi.git/plain/avahi-0.6.31-invalid_packet.patch
Comment 12 Anthony Basile gentoo-dev 2015-09-25 02:04:11 UTC
(In reply to Pacho Ramos from comment #11)
> Fedora updated the patch and finally it works :D
> http://pkgs.fedoraproject.org/cgit/avahi.git/plain/avahi-0.6.31-
> invalid_packet.patch

please test avahi-0.6.31-r9.ebuild which adds this patch.  if it works we can stabilize since its a small change over -r8 which is currently stable.
Comment 13 Pacho Ramos gentoo-dev 2015-09-25 11:40:25 UTC
Please note r9 ebuild has a typo that ends up with the patch not being applied
eptch "${FILESDIR}"/${P}-invalid_packet.patch

eptch instead of epatch :)
Comment 14 Pacho Ramos gentoo-dev 2015-09-25 11:46:10 UTC
Also maybe for -r9 and fast stabilization this is great, but I would also opt for a -r10 with some additional patches coming from upstream git that would probably be interesting (as I wonder when 0.6.32 would be released), they are being applied for a long time on Fedora without issues. I could maybe prepare that ebuild, introduce it hardmasked to let you review it if desired and unmask it after that. Anyway, I plan to mostly follow the patches applied in Fedora
Comment 15 Pacho Ramos gentoo-dev 2015-09-25 13:07:30 UTC
(In reply to Pacho Ramos from comment #13)
> Please note r9 ebuild has a typo that ends up with the patch not being
> applied
> eptch "${FILESDIR}"/${P}-invalid_packet.patch
> 
> eptch instead of epatch :)

Once it's changed to epatch it works fine ;)
Comment 16 Anthony Basile gentoo-dev 2015-09-25 16:28:13 UTC
(In reply to Pacho Ramos from comment #13)
> Please note r9 ebuild has a typo that ends up with the patch not being
> applied
> eptch "${FILESDIR}"/${P}-invalid_packet.patch
> 
> eptch instead of epatch :)

fix in -r10. r9 is now off the tree. sorry about that.  reopen if this is still a problem.  test for about a week and we'll reapid stab.