WakeOnLan Ping Failure Incorrectly Realized
#1
Hello,
Posting here as this is more of a core feature of Kodi than other things, IMO. I have Kodi 15.2 running (OpenElec 6.0.3) on RPi, and my NAS both on same gigabit switch. Kodi is incorrectly detecting ping failure of my nas and causing all sorts of "missing file" messages on the screen.

Code:
11:01:39 2040668.625000 T:1754264640   ERROR: Ping fail : status = -1, errno = 12 : 'ping -c 1 -w 1 10.10.10.202'
11:02:21 2040710.000000 T:1754264640   ERROR: Previous line repeats 205 times.

Yet, if I run that same ping command from CLI of the Pi, everything is fine:

Code:
raspberrypi:~ # ping -c 1 -w 1 10.10.10.202
PING 10.10.10.202 (10.10.10.202): 56 data bytes
64 bytes from 10.10.10.202: seq=0 ttl=64 time=0.616 ms

--- 10.10.10.202 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.616/0.616/0.616 ms
raspberrypi:~ # echo $?
0

Why would Kodi believe the ping is bad? Where is this in the code?

Here is another attempt to play a file. On the screen, this time, it displays a 'Wake on LAN' message with a % indicator. Clicking Cancel, saying No to removing it from library then immediately clicking the file again succeeds with no delay. Also this time, I had a constant ping command running in another terminal from RPi. So it's gotta be something in the Kodi code that's incorrectly detecting ping failures.

Code:
11:24:47 2042056.750000 T:1967034368  NOTICE: WakeOnAccess [gasgiant.local] trigged by accessing : nfs://gasgiant.local/data/media/movie.mp4
11:24:47 2042056.750000 T:1967034368   ERROR: Ping fail : status = -1, errno = 12 : 'ping -c 1 -w 1 10.10.10.202'
11:24:50 2042059.750000 T:1808790592   ERROR: Previous line repeats 2656 times.
11:24:50 2042059.750000 T:1808790592  NOTICE: script.advanced.wol: WakeOnLan signal sent to MAC-Address 84:1B:5E:27:15:AA
11:24:50 2042059.750000 T:1668904000   ERROR: Ping fail : status = -1, errno = 12 : 'ping -c 1 -w 1 10.10.10.202'
11:25:01 2042070.125000 T:1967034368   ERROR: Previous line repeats 9432 times.
11:25:01 2042070.125000 T:1967034368  NOTICE: WakeOnAccess timeout/cancel while waiting for response
11:25:01 2042070.125000 T:1967034368 WARNING: WakeOnAccess failed to bring up [gasgiant.local] - there may be trouble ahead !
11:25:01 2042070.125000 T:1668904000   ERROR: Ping fail : status = -1, errno = 12 : 'ping -c 1 -w 1 10.10.10.202'
11:25:06 2042074.875000 T:1967034368  NOTICE: DVDPlayer: Opening: nfs://gasgiant.local/data/media/movie.mp4
Reply

Logout Mark Read Team Forum Stats Members Help
WakeOnLan Ping Failure Incorrectly Realized0