Error with Unable to connect to indexer, check the log for more details

Sonarr version (exact version): 20210717-19
Mono version (if Sonarr is not running on Windows):5,20.1.34-18
OS: Synology NAS Version 7

(NO DOCKER)
Debug logs:`22-5-19 09:57:55.2|Warn|Newznab|Unable to connect to indexer

[v3.0.5.1144] System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.): 'https://api.nzbgeek.info/api?t=caps&apikey=(removed) —> System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) —> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. —> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /spksrc/spk/mono/work-x64-7.0/mono-5.20.1.34/external/boringssl/ssl/handshake_client.c:1132
at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00038] in :0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000a1] in :0
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in :0
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000ff] in :0
at Mono.Net.Security.AsyncProtocolRequest.StartOperation (System.Threading.CancellationToken cancellationToken) [0x0008b] in :0
— End of inner exception stack trace —
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x00252] in :0
at Mono.Net.Security.MonoTlsStream.CreateStream (System.Net.WebConnectionTunnel tunnel, System.Threading.CancellationToken cancellationToken) [0x00126] in :0
at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x001ba] in :0
— End of inner exception stack trace —
at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x0021a] in :0
at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00141] in :0
at System.Net.WebOperation.Run () [0x0009a] in :0
at System.Net.WebCompletionSource1[T].WaitForCompletion () [0x00094] in <c5f4e317158343a5916a953327f92540>:0 at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <c5f4e317158343a5916a953327f92540>:0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in <c5f4e317158343a5916a953327f92540>:0 at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x00123] in <838290d41cb7431fbc4fa8070d0b0648>:0 --- End of inner exception stack trace --- at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001e7] in <838290d41cb7431fbc4fa8070d0b0648>:0 at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x00086] in <838290d41cb7431fbc4fa8070d0b0648>:0 at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in <838290d41cb7431fbc4fa8070d0b0648>:0 at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00007] in <838290d41cb7431fbc4fa8070d0b0648>:0 at NzbDrone.Core.Indexers.Newznab.NewznabCapabilitiesProvider.FetchCapabilities (NzbDrone.Core.Indexers.Newznab.NewznabSettings indexerSettings) [0x000a1] in <eea51fec6dbe458b873ba10bf3c0a405>:0 at NzbDrone.Core.Indexers.Newznab.NewznabCapabilitiesProvider+<>c__DisplayClass4_0.<GetCapabilities>b__0 () [0x00000] in <eea51fec6dbe458b873ba10bf3c0a405>:0 at NzbDrone.Common.Cache.Cached1[T].Get (System.String key, System.Func1[TResult] function, System.Nullable1[T] lifeTime) [0x000b1] in <838290d41cb7431fbc4fa8070d0b0648>:0
at NzbDrone.Core.Indexers.Newznab.NewznabCapabilitiesProvider.GetCapabilities (NzbDrone.Core.Indexers.Newznab.NewznabSettings indexerSettings) [0x00046] in :0
at NzbDrone.Core.Indexers.Newznab.Newznab.get_PageSize () [0x0000c] in :0
at NzbDrone.Core.Indexers.Newznab.Newznab.GetRequestGenerator () [0x0000b] in :0
at NzbDrone.Core.Indexers.HttpIndexerBase`1[TSettings].TestConnection () [0x00007] in :0

22-5-19 09:57:55.2|Warn|SonarrErrorPipeline|Invalid request Validation failed:
– : Unable to connect to indexer, check the log for more details
22-5-19 09:57:55.2|Debug|Api|[POST] /api/v3/indexer/test: 400.BadRequest (210 ms)
22-5-19 09:57:59.4|Debug|Api|[GET] /api/v3/health: 200.OK (1 ms)
22-5-19 09:57:59.4|Debug|Api|[GET] /api/v3/system/status: 200.OK (2 ms)
22-5-19 09:57:59.4|Debug|Api|[GET] /api/v3/diskspace: 200.OK (58 ms)
22-5-19 09:58:00.4|Debug|Api|[GET] /api/v3/log/file: 200.OK (3 ms)`
Description of issue: When trying to add my indexer I get Unable to connect to indexer, check the log for more details, but Radarr works just fine. Tried searching and really cant find a solution. I tried the option of the certificates in Mono, but that also didnt work, so any ideas please?
Thank you

This is an old version of Sonarr.

Looks like an SSL issue: https://wiki.servarr.com/sonarr/faq#sonarr-on-synology-stopped-working-ssl

Thats the only version I could find and on Release sonarr-v3-build · Safihre/spksrc · GitHub that version is behind what I have installed.
I have already done the certificates via SSH and it still dont work

If you’re on DSM7.1 and not DSM7 as you wrote in your post, then there’s nothing you can do. You must use the docker package. The synology community packages are effectively completely broken on DSM7.1 and the mono fix doesn’t work on it either. https://github.com/SynoCommunity/spksrc/issues/5051

@markus101 their sonarr is so old because synocomm have not updated the base package in well over a year and don’t appear to have any near term plans to do so.

Thanks for the info, Will run it with Docker.
Much appreciated.

Reverted it back to 6.2.4 and all OK now. Thanks

I have a similar issue with the current (?) version running on Synology DSM 7.1-42661 Update 2 after running the command line:
sudo /volume1/@appstore/mono/bin/cert-sync /etc/ssl/certs/ca-certificates.crt

Sonarr won’t connect with either Skyhook or my indexer.

Log details
[v3.0.8.1507] System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.): ‘https://services.sonarr.tv/v1/update/main?version=3.0.8.1507&os=linux&runtimeVer=5.20.1.34’ —> System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) —> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. —> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /spksrc/spk/mono/work-x64-7.0/mono-5.20.1.34/external/boringssl/ssl/handshake_client.c:1132
at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00038] in :0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000a1] in :0
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in :0
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000ff] in :0
at Mono.Net.Security.AsyncProtocolRequest.StartOperation (System.Threading.CancellationToken cancellationToken) [0x0008b] in :0
— End of inner exception stack trace —
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x00252] in :0
at Mono.Net.Security.MonoTlsStream.CreateStream (System.Net.WebConnectionTunnel tunnel, System.Threading.CancellationToken cancellationToken) [0x00126] in :0
at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x001ba] in :0
— End of inner exception stack trace —
at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x0021a] in :0
at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00141] in :0
at System.Net.WebOperation.Run () [0x0009a] in :0
at System.Net.WebCompletionSource1[T].WaitForCompletion () [0x00094] in <c5f4e317158343a5916a953327f92540>:0 at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <c5f4e317158343a5916a953327f92540>:0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in <c5f4e317158343a5916a953327f92540>:0 at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x00123] in <bb4bd9a0099f48de84455bcef8e9c0ae>:0 --- End of inner exception stack trace --- at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001ec] in <bb4bd9a0099f48de84455bcef8e9c0ae>:0 at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x00086] in <bb4bd9a0099f48de84455bcef8e9c0ae>:0 at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in <bb4bd9a0099f48de84455bcef8e9c0ae>:0 at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00007] in <bb4bd9a0099f48de84455bcef8e9c0ae>:0 at NzbDrone.Common.Http.HttpClient.Get[T] (NzbDrone.Common.Http.HttpRequest request) [0x00000] in <bb4bd9a0099f48de84455bcef8e9c0ae>:0 at NzbDrone.Core.Update.UpdatePackageProvider.GetLatestUpdate (System.String branch, System.Version currentVersion) [0x000a5] in <f308258701c9443d9f77fbbaa937a672>:0 at NzbDrone.Core.Update.CheckUpdateService.AvailableUpdate () [0x00016] in <f308258701c9443d9f77fbbaa937a672>:0 at NzbDrone.Core.HealthCheck.Checks.UpdateCheck.Check () [0x000f7] in <f308258701c9443d9f77fbbaa937a672>:0 at NzbDrone.Core.HealthCheck.HealthCheckService+<>c.<PerformHealthCheck>b__14_0 (NzbDrone.Core.HealthCheck.IProvideHealthCheck c) [0x00000] in <f308258701c9443d9f77fbbaa937a672>:0 at System.Linq.Enumerable+SelectArrayIterator2[TSource,TResult].ToList () [0x00014] in :0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <b6496d2162cd48e1bb4e6753184b3d82>:0 at NzbDrone.Core.HealthCheck.HealthCheckService.PerformHealthCheck (NzbDrone.Core.HealthCheck.IProvideHealthCheck[] healthChecks) [0x00025] in <f308258701c9443d9f77fbbaa937a672>:0 at NzbDrone.Core.HealthCheck.HealthCheckService.HandleAsync (NzbDrone.Common.Messaging.IEvent message) [0x0013b] in <f308258701c9443d9f77fbbaa937a672>:0 at NzbDrone.Core.Messaging.Events.EventAggregator+<>c__DisplayClass6_11[TEvent].b__1 () [0x00000] in :0
at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in :0
at System.Threading.Tasks.Task.Execute () [0x00000] in :0

That command does not work on DSM7.1

You’ll need to switch to docker or roll back to DSM7.0

The sonarr team has nothing to do with the outdated, broken, poorly maintained SynoCommunity packages. They have a known bud and you should contact them for support.

This was previously mentioned, why ignore it?

I thought it was related to “v3.0.5.1144”

I Reverted it back to 6.2.4 and all OK now. This is what I did from the link
DSM 7 to DSM 6 downgrade (unofficial and unsupported) (blackvoid.club)

I updated to DSM 7.1-42661 Update 2 and had the same problem. Fixed it as follows

After

sudo /volume1/@appstore/mono/bin/cert-sync /etc/ssl/certs/ca-certificates.crt

and then

sudo chmod -R a+rX /usr/share/.mono

It’s working fine again for me.

1 Like