binhex / arch-sonarr

Docker build script for Arch Linux base with Sonarr
GNU General Public License v3.0
16 stars 3 forks source link

DNS issue with skyhook.sonarr.tv #18

Closed spewu closed 3 years ago

spewu commented 3 years ago

If I try to add a series, then it fails, because it cannot look up the series on the TV db. I looked at the error I got in the dev tools:

{
  "message": "Search for '402044' failed. Unable to communicate with SkyHook.",
  "description": "NzbDrone.Core.MetadataSource.SkyHook.SkyHookException: Search for '402044' failed. Unable to communicate with SkyHook. ---> System.Net.WebException: DNS Name Resolution Failure: 'skyhook.sonarr.tv'\n  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0015a] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Common\\Http\\Dispatchers\\ManagedHttpDispatcher.cs:95 \n  at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x00086] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Common\\Http\\HttpClient.cs:126 \n  at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Common\\Http\\HttpClient.cs:59 \n  at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00007] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Common\\Http\\HttpClient.cs:281 \n  at NzbDrone.Common.Http.HttpClient.Get[T] (NzbDrone.Common.Http.HttpRequest request) [0x00000] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Common\\Http\\HttpClient.cs:286 \n  at NzbDrone.Core.MetadataSource.SkyHook.SkyHookProxy.SearchForNewSeries (System.String title) [0x000ff] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Core\\MetadataSource\\SkyHook\\SkyHookProxy.cs:108 \n   --- End of inner exception stack trace ---\n  at NzbDrone.Core.MetadataSource.SkyHook.SkyHookProxy.SearchForNewSeries (System.String title) [0x0015c] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\NzbDrone.Core\\MetadataSource\\SkyHook\\SkyHookProxy.cs:120 \n  at Sonarr.Api.V3.Series.SeriesLookupModule.Search () [0x00000] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\Sonarr.Api.V3\\Series\\SeriesLookupModule.cs:29 \n  at Sonarr.Api.V3.Series.SeriesLookupModule.<.ctor>b__3_0 (System.Object x) [0x00000] in M:\\BuildAgent\\work\\63739567f01dbcc2\\src\\Sonarr.Api.V3\\Series\\SeriesLookupModule.cs:24 \n  at Nancy.NancyModule+<>c__DisplayClass14_0`1[T].<Get>b__0 (System.Object args) [0x00047] in <e31b230dbd29407fadcc55713e0bbd0f>:0 \n  at Nancy.NancyModule+<>c__DisplayClass16_0`1[T].<Get>b__0 (System.Object args, System.Threading.CancellationToken ct) [0x00047] in <e31b230dbd29407fadcc55713e0bbd0f>:0 \n  at Nancy.Routing.Route`1[T].Invoke (Nancy.DynamicDictionary parameters, System.Threading.CancellationToken cancellationToken) [0x00017] in <e31b230dbd29407fadcc55713e0bbd0f>:0 \n  at Nancy.Routing.DefaultRouteInvoker.Invoke (Nancy.Routing.Route route, System.Threading.CancellationToken cancellationToken, Nancy.DynamicDictionary parameters, Nancy.NancyContext context) [0x00086] in <e31b230dbd29407fadcc55713e0bbd0f>:0 \n  at Nancy.Routing.DefaultRequestDispatcher.Dispatch (Nancy.NancyContext context, System.Threading.CancellationToken cancellationToken) [0x002b7] in <e31b230dbd29407fadcc55713e0bbd0f>:0 \n  at Nancy.NancyEngine.InvokeRequestLifeCycle (Nancy.NancyContext context, System.Threading.CancellationToken cancellationToken, Nancy.Bootstrapper.IPipelines pipelines) [0x0011d] in <e31b230dbd29407fadcc55713e0bbd0f>:0 "
}

It seems to be a DNS resolution error, and when I try to query it from my normal workstation (not side Docker) it works fine: http://skyhook.sonarr.tv/v1/tvdb/search/en/?term=hvide

How do I resolve this issue in the Docker container?

Btw... thanks a lot for maintaining this Docker image ❤️

spewu commented 3 years ago

Sorry - I figured it out. I had to add a --dns parameter when starting the container ... that solved it