Kodi Community Forum
Automatic WakeOnLan upon accessing MySql or FileShares - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Automatic WakeOnLan upon accessing MySql or FileShares (/showthread.php?tid=124340)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-05-31

yes, for OE you need to edit the patch-file, remove 2 vcxproj-files that are not present in the OE-tree


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-06-02

(2013-05-29, 12:48)m1975Michael Wrote: I was actually referring to the multiple network issue patch. TY t4_ravenbird for all your hard work.

Now this too is merged. (I dont know if it made it into the monthly may-build, probably not)


RE: Automatic WakeOnLan upon accessing MySql or FileShares - m1975Michael - 2013-06-10

Hello t4_ravenbird,

I thought my issue was fixed but is seems it is not. First I want you to know I'm not complaining.

I installed this XBMCSetup-20130605-a9bf7d5-master.exe nightly build.

When the default pingport and pingmode are used I still get this error
WakeOnAccess [192.168.50.53] trigged by accessing : smb://xbmc:[email protected]/Thumbnails/
19:09:42 T:4516 ERROR: CNetworkWin32:TongueingHost - IcmpSendEcho failed - Error due to lack of resources.

When I use the pingport 3306 and pingmode 1 I do not receive the error.

With either setting the WOL packet is sent but the server does not receive it.

If i disable and re-enable VirtualBox Host-Only Network the WOL packet is sent and the server does receive ii.

I also re-tired kricker's build with your patch and I am still receiving the same results. I am not sure why it was working before but not now. Nothing has changed on my system. I just wanted to make you aware that the issue is still occurring. Sorry for the headaches.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - da-anda - 2013-06-10

hmm, why did toggling the info window in my movie library trigger a WOL? Any ideas?


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-06-10

There is little info on that ping-error, but it would seem it is not very serious, rather an incorrect error in the situation where host does not reply
http://www.huntland.co.uk/Downloads/MOM/MomPingThingLite.html ;
"
A known issue is that for certain ping failures, Mom returns the misleading error message 'Error due to lack of resources' where this is clearly not the case. For example, it does this if the intended target fails to respond within the requiredResponseTime parameter, instead of simply reporting a time out error. In any case it can be ignored as the alert is more significant than the message
"
And here ;
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366050(v=vs.85).aspx ;
"
If the function fails (i.e. returns 0), the extended error code returned by GetLastError can be also
IP_REQ_TIMED_OUT -- 11010 -- The request timed out.
(but not WSA_QOS_ADMISSION_FAILURE -- 11010 -- Error due to lack of resources.)
"
... this suggests that same Windows error-code is used in 2 different places and that this is causing the message. It could be fixed (suppressed) in XBMC..
*

As to the WOL not reaching the host I am sorry but it appears to be something todo with your special setup ; my guess is it is lost somewhere inside those virtual network-adapters..

(2013-06-10, 10:49)da-anda Wrote: hmm, why did toggling the info window in my movie library trigger a WOL? Any ideas?
There should be a log-entry that reveals which file (or MySQL -db) was accessed


RE: Automatic WakeOnLan upon accessing MySql or FileShares - m1975Michael - 2013-06-10

Thank you t4_ravenbird for the reply. I just wanted you to be aware of the situation and I know you can't fix every scenario. Others may run in to the same issue at some point so I figured the information might be helpful.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - captcod - 2013-06-15

Thanks for the patch into the nightlies,

But I've located a problem on ATV2, the -t option of ping is not supported. This is causing XBMC to wait till end of wait periods.

(with -t)
Living-Room:~ root# ping -c 1 -t 1 192.168.0.30
ping: unsupported packet type: 1

(without -t)
Living-Room:~ root# ping -c 1 192.168.0.30
PING 192.168.0.30 (192.168.0.30): 56 data bytes
64 bytes from 192.168.0.30: icmp_seq=0 ttl=128 time=13.410 ms
--- 192.168.0.30 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 13.410/13.410/13.410/0.000 ms

Shortened Debug Log
16:51:21 T:135196672 NOTICE: Starting XBMC (13.0-ALPHA5 Git:20130614-57f529b), Platform: Darwin iOS (11.0.0, Version 5.1.1 (Build 9B830)). Built on Jun 15 2013
.
16:51:21 T:135196672 NOTICE: WakeOnAccess - Load settings :
16:51:21 T:135196672 NOTICE: -Network init timeout : [20] sec
16:51:21 T:135196672 NOTICE: -Network settle time : [500] ms
16:51:21 T:135196672 NOTICE: Registering wakeup entry:
16:51:21 T:135196672 NOTICE: HostName : 192.168.0.30
16:51:21 T:135196672 NOTICE: MacAddress : 00:50:45:5D:BB:F3
16:51:21 T:135196672 NOTICE: PingPort : 0
16:51:21 T:135196672 NOTICE: PingMode : 0
16:51:21 T:135196672 NOTICE: Timeout : 300 (sec)
16:51:21 T:135196672 NOTICE: WaitForOnline : 40 (sec)
16:51:21 T:135196672 NOTICE: WaitForOnlineEx : 40 (sec)
16:51:21 T:135196672 NOTICE: WaitForServices : 5 (sec)
.
16:53:36 T:135196672 NOTICE: WakeOnAccess [192.168.0.30] trigged by accessing : smb://xbmc:[email protected]/vol1/Video/Music/
16:53:36 T:135196672 ERROR: Ping fail : status = -1, errno = 10 : 'ping -c 1 -t 1 192.168.0.30'
16:54:17 T:135196672 ERROR: Previous line repeats 1794 times.
16:54:17 T:135196672 NOTICE: WakeOnAccess timeout/cancel while waiting for response
16:54:17 T:804966400 ERROR: Ping fail : status = -1, errno = 10 : 'ping -c 1 -t 1 192.168.0.30'
16:55:51 T:135196672 NOTICE: Samba is idle. Closing the remaining connections
16:56:16 T:135196672 NOTICE: DVDPlayer: Opening: smb://xbmc:[email protected]/vol1/Video/Music/Armin van Buuren/Armin van Buuren feat. Trevor Guthrie - This Is What It Feels Like (Official Music Video).mp4


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-06-15

thanks, do you know what options ping supports on atv2? can you get a printout of the ping options available?


RE: Automatic WakeOnLan upon accessing MySql or FileShares - captcod - 2013-06-15

Sorry no I don't, this is what I get from the console

ping -V
ping (GNU inetutils) 1.6

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Sergey Poznyakoff.

ping --help
Usage: ping [OPTION...] HOST ...
Send ICMP ECHO_REQUEST packets to network hosts.

Options controlling ICMP request types:
--address Send ICMP_ADDRESS packets (root only)
--echo Send ICMP_ECHO packets (default)
--timestamp Send ICMP_TIMESTAMP packets
-t, --type=TYPE Send TYPE packets

Options valid for all request types:

-c, --count=NUMBER Stop after sending NUMBER packets
-d, --debug Set the SO_DEBUG option
-i, --interval=NUMBER Wait NUMBER seconds between sending each packet
-n, --numeric Do not resolve host addresses
-r, --ignore-routing Send directly to a host on an attached network
-v, --verbose Verbose output

Options valid for --echo requests:

-f, --flood Flood ping (root only)
-l, --preload=NUMBER Send NUMBER packets as fast as possible before
falling into normal mode of behavior (root only)
-p, --pattern=PATTERN Fill ICMP packet with given pattern (hex)
-q, --quiet Quiet output
-R, --route Record route
-s, --size=NUMBER Send NUMBER data octets

-?, --help give this help list
--usage give a short usage message
-V, --version print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Options marked with (root only) are available only to superuser.

Report bugs to <[email protected]>.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-06-15

so ios use ping from gnu inetutils?
manual here ; http://www.gnu.org/software/inetutils/manual/html_node/ping-invocation.html
in your listing there seems not to be any timeout-parameter, but in manual there is the -W option (may be a different version than whats on your atv, dont know)

could you please try "ping -c 1 -W 1 192.168.0.30" ?


RE: Automatic WakeOnLan upon accessing MySql or FileShares - captcod - 2013-06-15

Just checked and ping replies with an invalid option.

With "ping -c 1 192.168.0.30", it takes around 11 seconds to complete.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-06-16

Right, then ping w/specific timeout seems to be totally unsupported and my only advice is for you to use 'tcp-ping-mode' instead (which is not a bad idea in any case)
I will submit a fix (that simply drops the unsupported parameter) when I get a chance. Thanks for your debugging


RE: Automatic WakeOnLan upon accessing MySql or FileShares - captcod - 2013-06-24

Hi t4-ravenbird,

After just looking through the xbmc.log and still seeing repeated ping error messages.

I have only just realised (I believe) that XBMC on ios is run under 'mobile' account.

'root' is required to run 'ping' command.

Sorry, my bad as all previous debugging for you previously was done as 'root' :-(


RE: Automatic WakeOnLan upon accessing MySql or FileShares - Deihmos - 2013-06-30

Why do the newer builds for Windows have no zeroconf in the services menu? I am unable to use airplay without it.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - bilbonvidia - 2013-06-30

Maybe you need to change to the new advanced view by going left arrow and changing it in the side menu?