Received packet from invalid interface from HA

I currently am running Home-Assistant v27.2 in a docker on my unRaid server.

I’ve had this issue for a long time, but didn’t quite understand what was going on. I would get flooded with thousands of “Received packet from invalid interface.” from avahi-daemon in my syslogs. I have ruled the issue to being caused by the Home-Assistant docker as the “error” only appears when Home-Assistant is running.

I ran an strace on the avahi-daemon and am finding some interesting things. For some reason, three items in my house are being mentioned in the results from strace with that error message. My network printer, my philips hue bridge, and my vizio soundbar with GoogleCast. This is what the errors look like.

09:25:37 recvmsg(13, {msg_name(16)={sa_family=AF_INET, sin_port=htons(5353), sin_addr=inet_addr("172.27.231.1")}, msg_iov(1)=[{"\0\0\0\0\0\1\0\1\0\0\0\0\v_googlecast\4_tcp\5local\0\0\f\0\1\300\f\0\f\0\1\0\0\0\24\0(\17Vizio Sound Bar\v_googlecast\4_tcp\5local\0", 92}], msg_controllen=56, [{cmsg_len=28, cmsg_level=SOL_IP, cmsg_type=8, ...}, {cmsg_len=20, cmsg_level=SOL_IP, cmsg_type=2, ...}], msg_flags=0}, 0) = 92 09:25:37 sendto(3, "<28>Sep 4 09:25:37 avahi-daemon[14623]: Received packet from invalid interface.", 80, MSG_NOSIGNAL, NULL, 0) = 80

09:25:37 recvmsg(13, {msg_name(16)={sa_family=AF_INET, sin_port=htons(5353), sin_addr=inet_addr("172.27.234.1")}, msg_iov(1)=[{"\0\0\0\0\0\1\0\1\0\0\0\0\4_hap\4_tcp\5local\0\0\f\0\1\300\f\0\f\0\1\0\0\16|\0&\24Philips hue - 208A86\4_hap\4_tcp\5local\0", 83}], msg_controllen=56, [{cmsg_len=28, cmsg_level=SOL_IP, cmsg_type=8, ...}, {cmsg_len=20, cmsg_level=SOL_IP, cmsg_type=2, ...}], msg_flags=0}, 0) = 83 09:25:37 sendto(3, "<28>Sep 4 09:25:37 avahi-daemon[14623]: Received packet from invalid interface.", 80, MSG_NOSIGNAL, NULL, 0) = 80

09:25:37 recvmsg(13, {msg_name(16)={sa_family=AF_INET, sin_port=htons(5353), sin_addr=inet_addr("172.27.224.1")}, msg_iov(1)=[{"\0\0\0\0\0\1\0\1\0\0\0\0\5_http\4_tcp\5local\0\0\f\0\1\300\f\0\f\0\1\0\0\31\10\0$\21Brother MFC-7360N\5_http\4_tcp\5local\0", 82}], msg_controllen=56, [{cmsg_len=28, cmsg_level=SOL_IP, cmsg_type=8, ...}, {cmsg_len=20, cmsg_level=SOL_IP, cmsg_type=2, ...}], msg_flags=0}, 0) = 82 09:25:37 sendto(3, "<28>Sep 4 09:25:37 avahi-daemon[14623]: Received packet from invalid interface.", 80, MSG_NOSIGNAL, NULL, 0) = 80

Does anyone else have similar issues or have a resolution?

any responses on this? I’m getting the same invalid interface message.

I have something similar in my syslog:

Telldus avahi-daemon[2275]: Received packet from invalid interface.

Is this a HA issue or Telldus/Tellstick issue?

I disabled the Aavahi-daemon and one other control and the messages went away. From what i can tell it seems to be something with working with Bonjour. I don’t know if HA was using that as part of it’s discovery or what?

Hmm ok,
Can I just stop the Aavahi-daemon and HASS will still function as expected?
I don´t have any apple products so Bonjour is not needed.

That’s what I did. And so far so good. When I stopped the Avahi-daemon, there was a second thing it wanted me to disable so I did that too. and disable them, not just stop them, or the next time you reboot, or something comes in for that port they will restart.

Upgrade avahi-daemon, 0.6.32 logs this messag as debug instead of warning.

Any tips on how to do this? I tried downloading the source and it’s beyond me to compile it. The Pi seems to only have 0.6.31-5 via apt-get. :frowning:

I found the source:

And there is a version in debian testing, but I still haven’t figured out how to compile/install either.

just starting with HA yesterday this became to be very annoying, so I just suppress the message completely:

on a raspberry pi, connected via ssh as user pi do:

sudo nano /etc/rsyslog.conf

go through the file and search for the redirection to: /var/log/syslog which should look like this

.;auth,authpriv.none -/var/log/syslog

before that you could add:

:msg, contains, “Received packet from invalid interface” stop

then do: sudo /etc/init.d/rsyslog restart

also works on any other linux system …

the message will now be suppressed from your syslog :slight_smile: hope this helps

3 Likes

Check /etc/avahi/avahi-daemon.conf or similar, depending on your setup, for the line allow-interfaces, which is commented out in most systems as it provides defaults. If you use a wireless connection, uncomment it and add wlan0 or whatever the name of your wireless device is.

allow-interfaces=eth0,wlan0

Restart avahi-daemon and the error should stop.

2 Likes

I tried this. First off, you don’t need to restart the daemon - it sees that the config file has changed and restarts itself. Second, it doesn’t fix things for me. Thanks anyway though!

Jul 20 16:23:01 pi2 avahi-daemon[402]: Files changed, reloading.
...
Jul 20 16:24:25 pi2 avahi-daemon[402]: Received packet from invalid interface.
Jul 20 16:24:25 pi2 avahi-daemon[402]: Received packet from invalid interface.