Problem after wake from sleep (NoRouteToHostException)
Posted: Tue May 25, 2021 8:06 pm
Hi,
First post here, although using UMS for years. It's never been any trouble until recently when I changed mobo/cpu.
First of all after this hardware change I had to choose the network adapter properly (mobo network card is now different). I think on some occasion I had to update Java and then I had to update UMS to newest version 10.x (so far I was using 6.8.0 if I remember correctly).
Not sure if all this is related, because recently I did not use UMS so frequently. However I noticed that now after waking my PC from sleep (usually I do it in the morning after putting the PC to sleep in the evening), the UMS was no longer visible on my TVs. At first I just hit restart server and it worked again just fine (although the need to go to my PC just to click that is a little annoying).
But it became obvious that whenever PC wakes, the UMS is gone. I checked the logs and now I think it is reproducible every time after sleep/wake that I can see this in the logs:
TRACE 2021-05-25 08:29:36.664 [UPNP-AliveMessageSender] Error when sending the ALIVE message: {}
java.net.NoRouteToHostException: No route to host: Datagram send failed
at java.net.TwoStacksPlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:693)
at net.pms.network.UPNPHelper.sendMessage(UPNPHelper.java:379)
at net.pms.network.UPNPHelper.sendMessage(UPNPHelper.java:351)
at net.pms.network.UPNPHelper.sendAlive(UPNPHelper.java:227)
at net.pms.network.UPNPHelper.lambda$listen$0(UPNPHelper.java:400)
at java.lang.Thread.run(Thread.java:748)
This keeps repeating 6 times every 30 seconds or so. I can simply restart the server and everything is back to normal. Until next sleep/wake.
I upgraded to the most recent version now 10.5.0 but that didn't help. I started a new profile and added just two or three video folders, still not helped. It is the same error in the logs each time I wake my PC from sleep.
For years before I changed my mobo/cpu there was no issue like this and I can be sure because I automatically put my PC to sleep and then wake it next morning using system Task Scheduler. Evrything worked fine for years.
Not sure if there is a solution to this. What I am thinking is to add a script to somehow restart the UMS server from a command line - is this even possible? Any other suggestions please?
Edit: forgot to mention, my desktop has full network access after waking. I can check emails, browse web etc with no issue. Even the integrated Windows Media player DLNA shows up on my TVs. The only issue is only with UMS
First post here, although using UMS for years. It's never been any trouble until recently when I changed mobo/cpu.
First of all after this hardware change I had to choose the network adapter properly (mobo network card is now different). I think on some occasion I had to update Java and then I had to update UMS to newest version 10.x (so far I was using 6.8.0 if I remember correctly).
Not sure if all this is related, because recently I did not use UMS so frequently. However I noticed that now after waking my PC from sleep (usually I do it in the morning after putting the PC to sleep in the evening), the UMS was no longer visible on my TVs. At first I just hit restart server and it worked again just fine (although the need to go to my PC just to click that is a little annoying).
But it became obvious that whenever PC wakes, the UMS is gone. I checked the logs and now I think it is reproducible every time after sleep/wake that I can see this in the logs:
TRACE 2021-05-25 08:29:36.664 [UPNP-AliveMessageSender] Error when sending the ALIVE message: {}
java.net.NoRouteToHostException: No route to host: Datagram send failed
at java.net.TwoStacksPlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:693)
at net.pms.network.UPNPHelper.sendMessage(UPNPHelper.java:379)
at net.pms.network.UPNPHelper.sendMessage(UPNPHelper.java:351)
at net.pms.network.UPNPHelper.sendAlive(UPNPHelper.java:227)
at net.pms.network.UPNPHelper.lambda$listen$0(UPNPHelper.java:400)
at java.lang.Thread.run(Thread.java:748)
This keeps repeating 6 times every 30 seconds or so. I can simply restart the server and everything is back to normal. Until next sleep/wake.
I upgraded to the most recent version now 10.5.0 but that didn't help. I started a new profile and added just two or three video folders, still not helped. It is the same error in the logs each time I wake my PC from sleep.
For years before I changed my mobo/cpu there was no issue like this and I can be sure because I automatically put my PC to sleep and then wake it next morning using system Task Scheduler. Evrything worked fine for years.
Not sure if there is a solution to this. What I am thinking is to add a script to somehow restart the UMS server from a command line - is this even possible? Any other suggestions please?
Edit: forgot to mention, my desktop has full network access after waking. I can check emails, browse web etc with no issue. Even the integrated Windows Media player DLNA shows up on my TVs. The only issue is only with UMS