java.io.IOException: An existing connection forcibly closed by remote server

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
marketwiz
Posts: 2
Joined: Sun Nov 14, 2021 4:22 pm

java.io.IOException: An existing connection forcibly closed by remote server

Post by marketwiz »

This issue has been raised on another thread but nobody has responded... therefore, I'm making a new thread for this as it is causing problems for many users. After about 10 minutes of video play, the server just stops and the movie must be restarted... this happens repeatedly and constantly.

DEBUG 2021-11-13 19:56:29.772 [HTTPv2 Request Worker 18] Detected charset "ISO-8859-1" in file "D:\Videos\Free Guy (2021) [1080p] [BluRay] [5.1] [YTS.MX]\Free.Guy.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].srt"
DEBUG 2021-11-13 19:56:30.250 [HTTPv2 Request Worker 20] Recognized media renderer "[TV] DNP735"
DEBUG 2021-11-13 19:56:30.279 [HTTPv2 Request Worker 20] Reading SubtitleHttpHeader: "CaptionInfo.sec" (default: "")
INFO 2021-11-13 19:56:30.280 [StartPlaying Event] Started playing Free.Guy.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4 on your [TV] DNP735
DEBUG 2021-11-13 19:56:30.280 [StartPlaying Event] The full filename of which is: D:\Videos\Free Guy (2021) [1080p] [BluRay] [5.1] [YTS.MX]\Free.Guy.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4 and the address of the renderer is: 192.168.1.213
DEBUG 2021-11-13 19:56:30.318 [HTTPv2 Request Worker 21] Recognized media renderer "[TV] DNP735"
DEBUG 2021-11-13 19:56:30.376 [HTTPv2 Request Worker 21] Connection error: java.io.IOException: An existing connection was forcibly closed by the remote host
DEBUG 2021-11-13 19:56:30.376 [HTTPv2 Request Worker 21] Premature end, stopping...
DEBUG 2021-11-13 19:56:30.382 [HTTPv2 Request Worker 22] Recognized media renderer "[TV] DNP735"
DEBUG 2021-11-13 19:56:32.036 [HTTPv2 Request Worker 23] Recognized media renderer "[TV] DNP735"
DEBUG 2021-11-13 19:56:32.039 [HTTPv2 Request Worker 23] Setting bookmark for D:\Videos\Free Guy (2021) [1080p] [BluRay] [5.1] [YTS.MX]\Free.Guy.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4 => 0
DEBUG 2021-11-13 19:56:41.048 [HTTPv2 Request Worker 22] Connection error: java.io.IOException: An existing connection was forcibly closed by the remote host
DEBUG 2021-11-13 19:56:41.048 [HTTPv2 Request Worker 22] Premature end, stopping...
DEBUG 2021-11-13 19:56:41.055 [HTTPv2 Request Worker 24] Recognized media renderer "[TV] DNP735"
DEBUG 2021-11-13 19:56:41.827 [UPNP-AliveMessageSender] Sending ALIVE...
DEBUG 2021-11-13 19:56:42.475 [HTTPv2 Request Worker 24] Connection error: java.io.IOException: An existing connection was forcibly closed by the remote host
DEBUG 2021-11-13 19:56:42.475 [HTTPv2 Request Worker 24] Premature end, stopping...
DEBUG 2021-11-13 19:56:42.483 [HTTPv2 Request Worker 13] Recognized media renderer "[TV] DNP735"

DEBUG 2021-11-13 19:56:54.273 [cling-15] Volume: 22
DEBUG 2021-11-13 19:57:12.723 [UPNP-AliveMessageSender] Sending ALIVE...
DEBUG 2021-11-13 19:57:43.656 [UPNP-AliveMessageSender] Sending ALIVE...
DEBUG 2021-11-13 19:58:14.716 [UPNP-AliveMessageSender] Sending ALIVE...
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: java.io.IOException: An existing connection forcibly closed by remote server

Post by Nadahar »

I have no idea what the real problem is, but the IOExcepton is a red herring. All it means is that the renderer closed the connection when UMS didn't expect it to. What you really want to know is WHY the renderer chooses to close the connection. That could be anything really, and unless you can debug the renderer (which isn't usually an option with commercial devices), you will probably never know why it does so.

I can be that UMS does something that it doesn't expect, and as a result it closes the connection, but that is just one possible reason.
Post Reply