While troubleshooting another problem this evening I noticed a bunch of avahi-daemon errors in the messages log on a CentOS Linux development server. The error hasn’t caused any issues that I am aware of and may be a simple case of a new warning message or another server on the network sending rogue DNS packets to the CentOS server in question. Below is information displaying the error in the messages log and what steps I took to resolve the problem.

Avahi Error: avahi-daemon[2699]: Invalid query packet

Sep 13 10:10:27 cent2 avahi-daemon[2699]: Invalid query packet.
Sep 13 10:17:16 cent2 last message repeated 3 times
Sep 13 10:23:26 cent2 last message repeated 3 times
Sep 13 10:32:11 cent2 last message repeated 3 times
Sep 13 10:51:48 cent2 last message repeated 3 times
Sep 13 11:05:47 cent2 last message repeated 3 times
Sep 13 12:19:03 cent2 last message repeated 3 times
Sep 13 12:44:43 cent2 last message repeated 3 times
Sep 13 12:49:06 cent2 last message repeated 3 times
Sep 13 13:14:30 cent2 last message repeated 3 times
Sep 13 14:03:40 cent2 last message repeated 3 times
Sep 13 15:27:44 cent2 last message repeated 3 times
Sep 13 15:37:50 cent2 last message repeated 2 times
Sep 13 16:38:30 cent2 last message repeated 3 times
Sep 13 17:22:27 cent2 last message repeated 3 times
Sep 13 17:32:18 cent2 last message repeated 3 times
Sep 13 17:54:15 cent2 last message repeated 3 times
Sep 13 18:01:22 cent2 last message repeated 3 times
Sep 13 19:29:30 cent2 last message repeated 9 times

The avahi-daemon is the Avahi mDNS/DNS-SD daemon that runs on Linux so it is likely the above error messages are normal and simply come from servers sending the incorrect type of packets to the server. I went ahead and upgraded the avahi-daemon through from avahi version 0.6.16-6.el5.i386 to avahi version avahi-0.6.16-9.el5_5.i386 which appears to have stopped the errors. It is also possible though that there have not been any packets sent to the server that cause this specific error. You can update the avahi-daemon on CentOS Linux with the Yum Package Manager using the below syntax.

Update avahi-daemon On CentOS Linux:

yum update avahi

If I continue to see invalid query packet errors in the messages log I will investigate more.


List Price: $39.99 USD
New From: $20.94 USD In Stock
Used from: $0.46 USD In Stock

Mac OS X for Unix Geeks (Leopard) (Paperback)

By (author): Ernest E. Rothman, Brian Jepson, Rich Rosen


List Price: $34.99 USD
New From: $14.61 USD In Stock
Used from: $0.01 USD In Stock

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , ,
7 Responses to “CentOS Linux Avahi Error: avahi-daemon[2699]: Invalid query packet”
  1. PK Seet says:

    Hi Alex,

    I have updated avahi to avahi-0.6.16-9.el5_5.i386 on my Centos 5.5 machine. I still see a bunch of messages created almost every minute in /var/log/messages that goes:

    Feb 16 13:27:41 devhost avahi-daemon[3879]: Invalid legacy unicast query packet.
    Feb 16 13:27:41 devhost message repeated 2 times
    Feb 16 13:27:42 devhost avahi-daemon[3879]: Received response from host ww.xx.yy.zz with invalid source port 7995 on interface ‘xenbr0.0′

    Please advise if this is an issue and how to resolve this.

    Thanks.

    [Reply]

    alex Reply:

    Hello PK Seet,

    Those log messages are valid and indicate that your host ww.xx.yy.zz is sending some form of invalid packets to the devhost server. It does not represent a problem on the localhost but on the device sending the invalid packets.

    Thanks.
    alex

    [Reply]

  2. IchBin says:

    Found you via google as I have the same problem running on CentOS 5.5. Avahi is up to date according to the package manager. Still getting Invalid Query packet all too often. It does not state a machine or IP that it is getting this issue from. The errors are just like yours that were posted above.

    [Reply]

    alex Reply:

    Hello IchBin,

    You might try investigating using something like wireshark to sniff the multicast/broadcast packets on the network to see what traffic is hitting the server at the same time that the log messages are generated.

    I would be interested to hear what your findings are.

    Thanks.
    alex

    [Reply]

  3. James D says:

    yum -y install avahi-tools

    ps -aux | grep avahi

    avahi-discover “process id number from command above”

    look for the error, you might need to install missing packages like gtk*, etc…

    [Reply]

    alex Reply:

    Hello James,

    Good deal. Thanks for posting this. I have to remember what server I manage I saw these messages on, double check that they are still occurring, and then install avahi-tools if so to see if that resolves the issue.

    Definitely appreciate you taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

  4. Colin says:

    Sep 13 10:10:27 cent2 avahi-daemon[2699]: Invalid query packet.

    I am getting the same error.

    Seems fine to disable such a service. It is apparently used to query Media servers and playstation3′s.

    I.E. in a server, who cares.

    [Reply]

  5.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*