2022-12-27, 20:54
Hello wise Kodi forum members, I hope everyone had a great Christmas.
I'm having trouble with WOL after I rearranged my hardware. I hope someone can help me troubleshoot this. I've been messing with it for a little over a week now, so I'm not sure I'll remember everything. If something doesn't make sense, please let me know, and I'll try to clarify or re-test it.
I have a couple of old single-disk Zyxel NAS units and an Atom PC that used to be my Kodi box (LibreELEC), with some local storage for movies. WOL was working fine in this setup - Kodi waking up the Zyxel units.
At some point I replaced the Atom with a Core-i5 PC, which became my Kodi box (again, LibreELEC). WOL was still working fine with the Zyxel units.
Two weeks ago I moved the Core-i5 to another room and set it up as a NAS only using openmediavault - so the hard disks that used to be local storage in the Kodi box are now in a remote NAS. And the Atom PC went back into the media room and returned to its role of Kodi box. In the Atom I installed LibreELEC from scratch, then copied over some files from the previous installation - a few custom scripts, addons, addon_data, sources.xml, advanced_settings.xml, favourites.xml, maybe a few others. I didn't bring over the old databases, I thought it would be easier to start over because the sources were changing. I started cleaning up my sources using the GUI. Pointing each source to the new IP and shared folder (I'm using SMB, by the way). Then set the content and let Kodi scan each source to rebuild the databases.
Now Kodi can wake up any Zyxel NAS when needed, but not the Core-i5 most of the time. I can wake the Core-i5 fine from my cell phone using a free app or from my Windows PC with a Python script.
One thing I noticed in the Kodi box was the MAC discovery was working for the Zyxels, but failing for the Core-i5. I manually added the Core-i5 to sources.xml and to the ARP table in the Kodi box, and the GUI warnings disappeared. Did I mask a bigger problem here?
WOL would still not work with the Core-i5. I checked the logs and I could see Kodi calls to wake the Zyxel NAS, but not to wake the Core-i5 - as if it wouldn't think it needed to.
A couple of days ago I was trying to play a movie and trigger the WOL call, it didn't work, and I got distracted with something else. I came back some 10-15 minutes later, tried again with the same movie, and it worked. I started to suspect there was a timing issue. So I went into wakeonlan.xml and reduced the timeout setting to 10 seconds. At first it seemed to help - I would hit <Enter> on a movie, Kodi would tell me it was no longer available, then I would wait for 20-30 seconds and try again, and it worked. But it doesn't seem to be consistent. Yesterday I tried to do the same thing, it didn't work.
I can still wake the Core-i5 from my cell or from the Windows PC whenever I want, it always works.
I wonder 1) if I did something wrong, 2) if this is something easy to fix, 3) if I should start from scratch again (i.e., reinstall LibreELEC).
Here's a log file. I enabled debugging, tried to play a movie a couple of times (see "LIRC: - NEW 1c 0 KEY_ENTER devinput (KEY_ENTER)"), and disabled debugging again. The WOL wait dialog never came up.
I have removed the hard disk from one Zyxel to use it in the new NAS, but the other Zyxel is still active. I'm not using it as a source anymore, but I think I can set it up again for a test if needed.
Any help will be appreciated.
Thank you,
VMat
I'm having trouble with WOL after I rearranged my hardware. I hope someone can help me troubleshoot this. I've been messing with it for a little over a week now, so I'm not sure I'll remember everything. If something doesn't make sense, please let me know, and I'll try to clarify or re-test it.
I have a couple of old single-disk Zyxel NAS units and an Atom PC that used to be my Kodi box (LibreELEC), with some local storage for movies. WOL was working fine in this setup - Kodi waking up the Zyxel units.
At some point I replaced the Atom with a Core-i5 PC, which became my Kodi box (again, LibreELEC). WOL was still working fine with the Zyxel units.
Two weeks ago I moved the Core-i5 to another room and set it up as a NAS only using openmediavault - so the hard disks that used to be local storage in the Kodi box are now in a remote NAS. And the Atom PC went back into the media room and returned to its role of Kodi box. In the Atom I installed LibreELEC from scratch, then copied over some files from the previous installation - a few custom scripts, addons, addon_data, sources.xml, advanced_settings.xml, favourites.xml, maybe a few others. I didn't bring over the old databases, I thought it would be easier to start over because the sources were changing. I started cleaning up my sources using the GUI. Pointing each source to the new IP and shared folder (I'm using SMB, by the way). Then set the content and let Kodi scan each source to rebuild the databases.
Now Kodi can wake up any Zyxel NAS when needed, but not the Core-i5 most of the time. I can wake the Core-i5 fine from my cell phone using a free app or from my Windows PC with a Python script.
One thing I noticed in the Kodi box was the MAC discovery was working for the Zyxels, but failing for the Core-i5. I manually added the Core-i5 to sources.xml and to the ARP table in the Kodi box, and the GUI warnings disappeared. Did I mask a bigger problem here?
WOL would still not work with the Core-i5. I checked the logs and I could see Kodi calls to wake the Zyxel NAS, but not to wake the Core-i5 - as if it wouldn't think it needed to.
A couple of days ago I was trying to play a movie and trigger the WOL call, it didn't work, and I got distracted with something else. I came back some 10-15 minutes later, tried again with the same movie, and it worked. I started to suspect there was a timing issue. So I went into wakeonlan.xml and reduced the timeout setting to 10 seconds. At first it seemed to help - I would hit <Enter> on a movie, Kodi would tell me it was no longer available, then I would wait for 20-30 seconds and try again, and it worked. But it doesn't seem to be consistent. Yesterday I tried to do the same thing, it didn't work.
I can still wake the Core-i5 from my cell or from the Windows PC whenever I want, it always works.
I wonder 1) if I did something wrong, 2) if this is something easy to fix, 3) if I should start from scratch again (i.e., reinstall LibreELEC).
Here's a log file. I enabled debugging, tried to play a movie a couple of times (see "LIRC: - NEW 1c 0 KEY_ENTER devinput (KEY_ENTER)"), and disabled debugging again. The WOL wait dialog never came up.
I have removed the hard disk from one Zyxel to use it in the new NAS, but the other Zyxel is still active. I'm not using it as a source anymore, but I think I can set it up again for a test if needed.
Any help will be appreciated.
Thank you,
VMat