Can't restart server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Can't restart server
Every time I click Restart server I get this message every 0.5 seconds:
ERROR UPnP network exception: Socket closed
The only solution is to quit and start a new instance. Any ideas?
Everything is working fine; I use Windows 10 and start the server using a shortcut on the Start folder and, since I have two NICs, I force one as default. I also checked "Only run a single instance".
ERROR UPnP network exception: Socket closed
The only solution is to quit and start a new instance. Any ideas?
Everything is working fine; I use Windows 10 and start the server using a shortcut on the Start folder and, since I have two NICs, I force one as default. I also checked "Only run a single instance".
Re: Can't restart server
I have also been experiencing the same issue since the 10.17.0 release
Re: Can't restart server
I am also experiencing the same issue as described above.
I am updating my Java and will reproduce the bug with a trace log.
I had performed a clean install of UMS-10.18.0 prior to this as well.
It seems to have started around the release of 10.16.x
*edit*
This issue persists regardless if I have set Force networking on Interface...
I usually leave it empty, but switched to see if it cleared up the issue.
It only shows up when I click Restart Server for any reason.
I am updating my Java and will reproduce the bug with a trace log.
I had performed a clean install of UMS-10.18.0 prior to this as well.
It seems to have started around the release of 10.16.x
*edit*
This issue persists regardless if I have set Force networking on Interface...
I usually leave it empty, but switched to see if it cleared up the issue.
It only shows up when I click Restart Server for any reason.
- Attachments
-
- ums_dbg_2022-03-18-13-06.zip
- (41.13 KiB) Downloaded 363 times
Last edited by devJarrod on Sat Mar 19, 2022 12:25 am, edited 1 time in total.
Re: Can't restart server
updated with debug logfiles
Re: Can't restart server
I did have a look at your logs and saw a lot of socket errors, but your logs were not in trace mode so I could not see what caused them.
As this has something network related I won't be much help as I know very little about this, but the devs should be able to track down the problem with full trace logs.
As this has something network related I won't be much help as I know very little about this, but the devs should be able to track down the problem with full trace logs.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: Can't restart server
Having said that I thought I would test on mine by restarting the server and it happens to me too
Maybe something is not being restarted when the server does. It looks to be coming from the AliveMessageSender.
Code: Select all
TRACE 2022-03-18 19:13:52.570 [UPNP-AliveMessageSender] Error when sending the ALIVE message: {}
java.net.SocketException: Socket is closed
at java.net.DatagramSocket.send(DatagramSocket.java:658)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.sendMessage(SocketSSDPServer.java:324)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.sendMessage(SocketSSDPServer.java:296)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.sendAlive(SocketSSDPServer.java:261)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.lambda$listen$0(SocketSSDPServer.java:477)
at java.lang.Thread.run(Thread.java:750)
TRACE 2022-03-18 19:13:52.601 [UPNPHelper] Final UPnP network exception: Socket is closed
TRACE 2022-03-18 19:13:52.601 [UPNPHelper] Final UPnP network exception: Socket is closed
TRACE 2022-03-18 19:13:52.601 [UPNPHelper]
java.net.SocketException: Socket is closed
at java.net.MulticastSocket.leaveGroup(MulticastSocket.java:435)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.lambda$listen$1(SocketSSDPServer.java:565)
at java.lang.Thread.run(Thread.java:750)
TRACE 2022-03-18 19:13:52.601 [UPNPHelper]
java.net.SocketException: Socket is closed
at java.net.MulticastSocket.leaveGroup(MulticastSocket.java:435)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.lambda$listen$1(SocketSSDPServer.java:565)
at java.lang.Thread.run(Thread.java:750)
ERROR 2022-03-18 19:13:52.601 [UPNPHelper] UPnP network exception: Socket closed
TRACE 2022-03-18 19:13:52.601 [UPNPHelper]
java.net.SocketException: Socket closed
at java.net.TwoStacksPlainDatagramSocketImpl.receive0(Native Method)
at java.net.TwoStacksPlainDatagramSocketImpl.receive(TwoStacksPlainDatagramSocketImpl.java:114)
at java.net.DatagramSocket.receive(DatagramSocket.java:812)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.lambda$listen$1(SocketSSDPServer.java:496)
at java.lang.Thread.run(Thread.java:750)
ERROR 2022-03-18 19:13:52.601 [UPNPHelper] UPnP network exception: Socket closed
TRACE 2022-03-18 19:13:52.601 [UPNPHelper]
java.net.SocketException: Socket closed
at java.net.TwoStacksPlainDatagramSocketImpl.receive0(Native Method)
at java.net.TwoStacksPlainDatagramSocketImpl.receive(TwoStacksPlainDatagramSocketImpl.java:114)
at java.net.DatagramSocket.receive(DatagramSocket.java:812)
at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.lambda$listen$1(SocketSSDPServer.java:496)
at java.lang.Thread.run(Thread.java:750)
TRACE 2022-03-18 19:13:53.616 [UPNPHelper] Final UPnP network exception: Socket is closed
TRACE 2022-03-18 19:13:53.616 [UPNPHelper] Final UPnP network exception: Socket is closed
- Attachments
-
- ums_dbg_2022-03-18-19-20.zip
- (1.17 MiB) Downloaded 321 times
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: Can't restart server
Also experienced this bug.
The only way out is to kill the java.exe process and restart.
The only way out is to kill the java.exe process and restart.
Code: Select all
INFO 2022-03-28 15:52:17.556 [background-task-0-restart(0)] Stopping server on host 192.168.0.2 and port 5001...
ERROR 2022-03-28 15:52:17.556 [UPNPHelper] UPnP network exception: socket closed
ERROR 2022-03-28 15:52:17.556 [UPNPHelper] UPnP network exception: Socket closed
INFO 2022-03-28 15:52:17.560 [background-task-0-restart(0)] Confirm allChannels is empty: DefaultChannelGroup(name: HTTPServer, size: 0)
INFO 2022-03-28 15:52:17.565 [background-task-0-restart(0)] Loading renderer configurations from C:\Program Files (x86)\Universal Media Server\renderers
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] Exception in thread "UPNP-AliveMessageSender" java.lang.IllegalArgumentException: unsupported address type
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at java.net.DatagramPacket.setSocketAddress(DatagramPacket.java:313)
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at java.net.DatagramPacket.<init>(DatagramPacket.java:144)
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at java.net.DatagramPacket.<init>(DatagramPacket.java:178)
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.sendMessage(SocketSSDPServer.java:315)
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.sendMessage(SocketSSDPServer.java:296)
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.sendAlive(SocketSSDPServer.java:261)
INFO 2022-03-28 15:52:17.567 [UPNP-AliveMessageSender] at net.pms.network.mediaserver.socketssdpserver.SocketSSDPServer.lambda$listen$0(SocketSSDPServer.java:477)
INFO 2022-03-28 15:52:17.568 [UPNP-AliveMessageSender] at java.lang.Thread.run(Thread.java:750)
Code: Select all
INFO 2022-03-28 15:52:17.783 [background-task-0-restart(0)] : Xbox 360
INFO 2022-03-28 15:52:17.783 [background-task-0-restart(0)] : Yamaha AV Receiver
ERROR 2022-03-28 15:52:18.561 [UPNPHelper] UPnP network exception: Socket closed
INFO 2022-03-28 15:52:18.818 [background-task-0-restart(0)] Using address /192.168.0.2 found on network interface: name:eth4 (Realtek PCIe GbE Family Controller)
INFO 2022-03-28 15:52:18.818 [background-task-0-restart(0)] Created socket: /192.168.0.2:5001
DEBUG 2022-03-28 15:52:18.846 [background-task-0-restart(0)] Sending ALIVE...
ERROR 2022-03-28 15:52:19.575 [UPNPHelper] UPnP network exception: Socket closed
DEBUG 2022-03-28 15:52:19.652 [background-task-0-restart(0)] Sending BYEBYE...
DEBUG 2022-03-28 15:52:20.365 [background-task-0-restart(0)] Sending ALIVE...
ERROR 2022-03-28 15:52:20.583 [UPNPHelper] UPnP network exception: Socket closed
DEBUG 2022-03-28 15:52:20.956 [background-task-0-restart(0)] task ended
ERROR 2022-03-28 15:52:20.956 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:21.583 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:21.957 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:22.593 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:22.970 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:23.609 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:23.984 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:24.621 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:24.997 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:25.637 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:26.010 [UPNPHelper] UPnP network exception: Socket closed
ERROR 2022-03-28 15:52:26.651 [UPNPHelper] UPnP network exception: Socket closed
Re: Can't restart server
The issue persists in 10.19.0 as well
Re: Can't restart server
I don't think it has been fixed yet but the devs are aware of it.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: Can't restart server
Exactly the same thing happens to me and it also happens to me that when adding folders in "Shared Content" it crashes and only uploads a few. I have uninstalled UMS v.10.19 and installed version 10.09 and with this version no problem.