Page 1 of 1

Invalid response packet from host

Posted: Thu Aug 20, 2015 8:10 pm
by Jasimo
Hi,

Since I am on Windows 10 with my notebook I got the following flooding my syslog when I am connected via ssh to the PI2 (latest firmware and raspbian wheezy)

Code: Select all

avahi-daemon[2429]: Invalid response packet from host 192.168.2.124.
192.168.2.124 is the ip of my Windows 10 Notebook.
Can someone help me on this or got an idea?

Re: Invalid response packet from host

Posted: Thu Aug 20, 2015 10:24 pm
by DougieLawson
It's a known, but unresolved bug in Avahi.
http://avahi.org/ticket/352

There also doesn't seem to be any simple way to disable the logging.

Re: Invalid response packet from host

Posted: Fri Aug 21, 2015 6:53 pm
by Jasimo
thx for the info

Re: Invalid response packet from host

Posted: Sun Aug 23, 2015 2:16 am
by BenoitSvB

Re: Invalid response packet from host

Posted: Mon Sep 14, 2015 12:02 pm
by bicklp
Any update on this?
i have a syslog filled with these

Sep 14 07:41:22 pi-server avahi-daemon[2628]: Invalid response packet from host 192.168.1.15.
Sep 14 07:41:47 pi-server avahi-daemon[2628]: Invalid response packet from host 192.168.1.15.
Sep 14 07:41:51 pi-server avahi-daemon[2628]: Invalid response packet from host 192.168.1.15.

someone here mentioed having a script to copy the log, get rid of the lines then put the log back? (bottom post)
https://bugs.launchpad.net/ubuntu/+sour ... ug/1342400

any on have any scripts to clear them out of the log?

Re: Invalid response packet from host

Posted: Mon Sep 14, 2015 12:11 pm
by bicklp
i think this will actually do it...
someone correct me if im wrong

should remove all lines containing 'Invalid response packet from host' from /var/log/syslog

Code: Select all

sudo sed -i '/Invalid response packet from host/d' /var/log/syslog
if you want to create a backup of the syslog first you can use

Code: Select all

sudo sed -i".bak" '/Invalid response packet from host/d' /var/log/syslog
this will create a syslog.bak file before making the changes
and then run as a cronjob or add a script into /etc/cron.hourly/

Re: Invalid response packet from host

Posted: Thu Feb 04, 2016 4:09 pm
by mwk
Or you could do this and black hole the crap (just sayin)

add this to /etc/rsyslog.conf (and yes I know the &~ is deprecated but using the newer stop seems to stop all logging) and then run sudo /etc/init.d/rsyslog restart and check your log files.

###############
#### RULES ####
###############
if $fromhost-ip == '127.0.0.1' then {
if $msg contains_i "Invalid response packet from host" then action(type="omfile" file="/dev/null")
&~
}

Re: Invalid response packet from host

Posted: Wed Apr 27, 2016 7:38 am
by RottenRonnie
Your fix worked like a charm. Thanks! :D
mwk wrote:Or you could do this and black hole the crap (just sayin)

add this to /etc/rsyslog.conf (and yes I know the &~ is deprecated but using the newer stop seems to stop all logging) and then run sudo /etc/init.d/rsyslog restart and check your log files.

###############
#### RULES ####
###############
if $fromhost-ip == '127.0.0.1' then {
if $msg contains_i "Invalid response packet from host" then action(type="omfile" file="/dev/null")
&~
}