Error when trying Add any New Series

I can’t add any new series. I am running a windows install that is up to date. Here is the error through the GUI

And here is the log info:

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 85
at TVDBSharp.Models.DAO.DataProvider.GetXDocumentFromUrl(String url) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\DAO\DataProvider.cs:line 48
at TVDBSharp.Models.DAO.DataProvider.Search(String query) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\DAO\DataProvider.cs:line 38
at TVDBSharp.Models.Builder.Search(String query, Int32 results) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\Builder.cs:line 63
at NzbDrone.Core.MetadataSource.TvDbProxy.SearchTvdb(String title) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\TvDbProxy.cs:line 61
at NzbDrone.Core.MetadataSource.TvDbProxy.SearchForNewSeries(String title) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\TvDbProxy.cs:line 68

Thanks

The network connection appears to be getting closed on TVDB’s side, but that may be misleading.

Which version of Sonarr?
Does restarting Sonarr make a difference?
Have you tried adding by TVDB ID?

Version 2.0.0.2663

Restarting does not make any difference, and yes I have tried to add by TVDB ID

I have tried a fresh install and the problem is still there. Also I get a similar error if I try to update a series I already have:

Task Error: The underlying connection was closed: An unexpected error occurred on a receive.

Exception
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 85
at NzbDrone.Common.Http.HttpClient.Get[T](HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 160
at NzbDrone.Core.MetadataSource.SkyHook.SkyHookProxy.GetSeriesInfo(Int32 tvdbSeriesId) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\SkyHook\SkyHookProxy.cs:line 30
at NzbDrone.Core.Tv.RefreshSeriesService.RefreshSeriesInfo(Series series) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 51
at NzbDrone.Core.Tv.RefreshSeriesService.Execute(RefreshSeriesCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 133
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](Command command) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 137
at NzbDrone.Core.Messaging.Commands.CommandExecutor.<>c__DisplayClass9`1.b__5() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 86
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

I am having an identical issue to Tstall. My version is 2.0.0.2722 installed on a windows server 2012 system. I cannot identify any major system changes when this started as I dont know exactly when it started however I have tried re-installing the software (maintaining the existing settings) this did not resolve the issue. I then installed it on a windows 7 machine that never had the software on it before the issue does not exist. I know two other people who run Sonarr and one has the same issue and the other does not. In search of similarities/differences all three of us use Server 2012 with all the updates installed, everyone is on the latest version of sonarr, I have a separate ISP - Their ISP is the same. As I cant seem to identify anything specific that would cause the issue I am throwing my hat into this thread as it appears to be the same issue (the show update errors even reference the same program lines). Please let me know if there is additional information required.

My Error (adding new content)

Message

The underlying connection was closed: An unexpected error occurred on a receive.: The underlying connection was closed: An unexpected error occurred on a receive.

Exception

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 85
at TVDBSharp.Models.DAO.DataProvider.GetXDocumentFromUrl(String url) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\DAO\DataProvider.cs:line 48
at TVDBSharp.Models.DAO.DataProvider.GetShow(Int32 showID) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\DAO\DataProvider.cs:line 23
at TVDBSharp.Models.Builder.Search(String query, Int32 results) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\Builder.cs:line 71
at NzbDrone.Core.MetadataSource.TvDbProxy.SearchTvdb(String title) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\TvDbProxy.cs:line 61
at NzbDrone.Core.MetadataSource.TvDbProxy.SearchForNewSeries(String title) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\TvDbProxy.cs:line 68

Counterpart’s Error (updating existing content)

Message

Couldn't refresh info for [211751][Workaholics]: The underlying connection was closed: An unexpected error occurred on a receive.

Exception
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 85
at NzbDrone.Common.Http.HttpClient.Get[T](HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 160
at NzbDrone.Core.MetadataSource.SkyHook.SkyHookProxy.GetSeriesInfo(Int32 tvdbSeriesId) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\SkyHook\SkyHookProxy.cs:line 30
at NzbDrone.Core.Tv.RefreshSeriesService.RefreshSeriesInfo(Series series) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 51
at NzbDrone.Core.Tv.RefreshSeriesService.Execute(RefreshSeriesCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 145

I was having what appears to be the same issue with refreshing (adding wasn’t a problem). I tracked it down to a CloudFlare issue and have disabled CF for Skyhook now and everything seems to be refreshing properly on my end now.

If you’re still having issues, let me know (and let me know what IP you get when you ping skyhook.sonarr.tv), but the DNS records should be propagated soon if they haven’t already.

Still Having the same issue. I have recreated my setup on a Windows 8 machine and it works fine, Windows Server 2012 still not working. Here is the IP when I ping skyhook.sonarr.tv:

Pinging fw.sonarr.tv [142.4.222.131] with 32 bytes of data:
Reply from 142.4.222.131: bytes=32 time=34ms TTL=56
Reply from 142.4.222.131: bytes=32 time=36ms TTL=56
Reply from 142.4.222.131: bytes=32 time=18ms TTL=56
Reply from 142.4.222.131: bytes=32 time=17ms TTL=56

Still the same issues for me. I tried flushing the DNS to ensure the latest is being used (which it is). The IP I get is fw.sonarr.tv [142.4.222.131]. If it is a problem in windows do you have a recommended location for me to start troubleshooting?

Could you restart Sonarr and/or your computer?

Thats the correct IP, so DNS has propagated properly at least (but its possible its cached by Sonarr, even though it should have cleared by now).

If you’re still having issues we may need more information and to run a live log of the requests on our Firewall.

Spent some time troubleshooting the issues and the “Underlying connection was forced closed” issue is also happening on Mediabrowser3 (mediabrowser.tv). Mediabrowser logs provide a little more feedback than the sonarr ones in that they actually tell me what the link they were trying to access.

For my testing I used the initial link of “http://image.tmdb.org/t/p/original/a0phhoaFskKNICOLjniYpIO9072.jpg” later moving into “http://thetvdb.com/” and “http://tmdb.org/

Upon further testing I have confirmed that I cannot access anything relating to tmdb.org or thetvdb.com from my server machine (home) using Google Chrome however my client machines at home and work can both access can access the site tmdb.com. Upon further investigation I have noticed that the when accessing the link using IE10 on my server machine will actually load the link up where Google Chrome did not. When digging slightly further into the issue on Google Chrome if I spam the refresh button eventually all three of the above links did load; the pages now appear to be cached however I can once it finally loads browse the page more or less normally (some images don’t load initially).

@markus101 Is there a way to identify exactly what the link is that was called before the error occurred? I know that not to long ago there was some complications with Trakt and you guys developed some links to thetvdb.com

@Tstall if you go onto your server and try to access the link using both Chrome and IE what are the outcomes? Does it load in both cases?

Thoughts? Opinions?

It looks like trace logging will log the request its making, which should include the full path.

I know for certain TheTVDB uses CloudFlare and we were for skyhook as well, so I think this is due to something on their end blocking (not sure why though).

http://pastebin.com/6kYrhZ0r

The above link is a copy of the log file. It seems to happen when updating shows and adding new ones.

I tested through Chrome and IE no difference, both come back with the error

including if you spam the refresh button 10-30 times? (Eventually it loaded for me but it seems to be somewhat situational, however the conditions escape me)

I just installed Sonarr and am also unable to add any new shows with the above error.

I am also experiencing the same behavior. Old installation that just stopped working.

@kramed @scr

OS and version or Sonarr?

@markus101

version 2.0.0.2722
Windows Server 2012 Standard

thanks

Are you able to connect from a browser on your system? You can get the URL Sonarr is calling from trace logs.

@markus101

Just tested some random serie I dont have:

15-1-30 10:45:52.7|Trace|DataProvider|Req: [GET] http://thetvdb.com/api/GetSeries.php?seriesname=hawaii+five-0
15-1-30 10:45:52.7|Warn|TvDbProxy|The underlying connection was closed: An unexpected error occurred on a receive.

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 85
at TVDBSharp.Models.DAO.DataProvider.GetXDocumentFromUrl(String url) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\DAO\DataProvider.cs:line 48
at TVDBSharp.Models.DAO.DataProvider.Search(String query) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\DAO\DataProvider.cs:line 38
at TVDBSharp.Models.Builder.Search(String query, Int32 results) in m:\BuildAgent\work\6c3239faf2b92630\src\TVDBSharp\Models\Builder.cs:line 63
at NzbDrone.Core.MetadataSource.TvDbProxy.SearchTvdb(String title) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\TvDbProxy.cs:line 61
at NzbDrone.Core.MetadataSource.TvDbProxy.SearchForNewSeries(String title) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MetadataSource\TvDbProxy.cs:line 68

From the same machine I can successfully browse http://thetvdb.com/api/GetSeries.php?seriesname=hawaii+five-0 and get the xml results.

thanks