Skip to content

[network] Pinging fails when there are more than 5 things #19397

@reyhard

Description

@reyhard

Expected Behavior

Network binding should work with multiple devices. Till 5.1m1
When there are more than 5 pingdevice/servicedevice, pinging stops to work. WOL still works. There are also practically no logs produced anymore . Here is my current setup which worked with 5.0.1 stable build

Thing network:pingdevice:laptop_01 		    "Ping - Laptop" @ "Internet" 		            [ hostname		="192.168.1.145" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:laptop_02 		    "Ping - Laptop G510" @ "Internet" 		        [ hostname		="192.168.1.146" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:laptop_03 		    "Ping - Laptop Cargill" @ "Internet" 		    [ hostname		="192.168.1.136" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:airpurifier3h_01   "Ping - Oczyszczacz" @ "Internet" 		        [ hostname		="192.168.1.231" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:kettle_01          "Ping - Czajnik" @ "Internet" 		            [ hostname		="192.168.1.216" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:standingfan_01     "Ping - Wentylator" @ "Internet" 		        [ hostname		="192.168.1.217" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:dehumidifier_01    "Ping - Osuszacz" @ "Internet" 		            [ hostname		="192.168.1.232" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:airfryer_01        "Ping - Air Fryer" @ "Internet" 		        [ hostname		="192.168.1.233" , useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:phone_01 		    "Ping - Telefon M." @ "Internet" 	            [ hostname		="192.168.1.155", refreshInterval=10000, retry = 1, useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:phone_02 		    "Ping - Telefon m2." @ "Internet" 	            [ hostname		="192.168.1.153", refreshInterval=10000, retry = 1, useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:mibox_01 		    "Ping - Mibox" @ "Internet" 		            [ hostname		="192.168.1.141", useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:reader_01 		    "Ping - Onyx" @ "Internet" 		                [ hostname		="192.168.1.130", useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:pingdevice:reader_02 		    "Ping - Kindle" @ "Internet" 		            [ hostname		="192.168.1.131", useIOSWakeUp=false, networkInterfaceNames="eth0"]
Thing network:servicedevice:mibox_01_srv    "Service - Mibox" @ "Internet"                  [ hostname      ="192.168.1.141", port=5555, refreshInterval=2000, timeout = 4000, retry = 4, useIOSWakeUp=false ]
Thing network:pingdevice:symfonisk_01 		"Ping - Symfonisk" @ "Internet" 		        [ hostname		="192.168.1.142", useIOSWakeUp=false, networkInterfaceNames="eth0"]

Current Behavior

Pinging fails after there are more than 5 devices pinged

Possible Solution

I've locally reverted this commit
#17972 ( @lsiepel )
and network binding works again. My wild guess is something wrong with threading. I checked only htop if there is something weird going on but it seemed to be fine performance wise.

I can try to gather some more logs later

Steps to Reproduce (for Bugs)

  1. Create 6 pingdevices
  2. Observe that none of the devices update their status anymore

Context

Your Environment

  • Version used: 5.1 Milestone 1
  • Temurin 21
  • Raspberry Pi 4 Model B Rev 1.4, Linux 6.1.21-v8+

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of an add-on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions