Jasimo
Posts: 51
Joined: Mon Apr 27, 2015 11:50 am

Invalid response packet from host

Thu Aug 20, 2015 8:10 pm

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?

User avatar
DougieLawson
Posts: 36322
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Invalid response packet from host

Thu Aug 20, 2015 10:24 pm

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.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Jasimo
Posts: 51
Joined: Mon Apr 27, 2015 11:50 am

Re: Invalid response packet from host

Fri Aug 21, 2015 6:53 pm

thx for the info


bicklp
Posts: 10
Joined: Sat Sep 12, 2015 7:58 am

Re: Invalid response packet from host

Mon Sep 14, 2015 12:02 pm

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?

bicklp
Posts: 10
Joined: Sat Sep 12, 2015 7:58 am

Re: Invalid response packet from host

Mon Sep 14, 2015 12:11 pm

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/

mwk
Posts: 1
Joined: Thu Feb 04, 2016 4:03 pm

Re: Invalid response packet from host

Thu Feb 04, 2016 4:09 pm

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")
&~
}

User avatar
RottenRonnie
Posts: 4
Joined: Thu Feb 26, 2015 1:15 am
Location: Charlottetown PE, Canada
Contact: Website

Re: Invalid response packet from host

Wed Apr 27, 2016 7:38 am

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")
&~
}

Return to “Troubleshooting”