Sonarr unable to connect to indexer after Mono upgrade to 5.20.1.34
For new Package Requests, see the guidelines
Issue appears to be related to mono
Setup
Package Name: mono Package Version: 5.20.1.34
NAS Model: DS418 NAS Architecture: Realtek RTD1296 SoC DSM version: 6.2.3-25426 Update 2
Expected behavior
Sonarr should be able to connect to usenet indexer.
Actual behavior
Sonarr fails to connect to usenet indexer.
Steps to reproduce
1. Update mono 2. Restart NAS 3. Test indexer in Sonarr
Package log
Check Package Center or /usr/local/{package}/var/
N/A
Other logs
E.g. /var/log/messages or /var/log/synopkg.log
20-10-5 21:17:33.1|Info|RssSyncService|Starting RSS Sync
20-10-5 21:17:33.1|Warn|FetchAndParseRssService|No available indexers. check your configuration.
20-10-5 21:17:33.1|Info|DownloadDecisionMaker|No results found
20-10-5 21:17:33.1|Info|RssSyncService|RSS Sync Completed. Reports found: 0, Reports grabbed: 0
20-10-5 21:17:58.6|Warn|Newznab|Unable to connect to indexer
[v2.0.0.5344] System.Net.WebException: Error: SecureChannelFailure (Authentication failed, see inner exception.): 'https://nzbs.in/api?t=caps&apikey=(removed) ---> System.Net.WebException: Error: SecureChannelFailure (Authentication failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:0f000078:elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE
at /spksrc/spk/mono/work-aarch64-6.1/mono-5.20.1.34/external/boringssl/crypto/ec/ec.c:835
at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00038] in <c5f4e317158343a5916a953327f92540>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000a1] in <c5f4e317158343a5916a953327f92540>: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 <c5f4e317158343a5916a953327f92540>:0
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000ff] in <c5f4e317158343a5916a953327f92540>:0
at Mono.Net.Security.AsyncProtocolRequest.StartOperation (System.Threading.CancellationToken cancellationToken) [0x0008b] in <c5f4e317158343a5916a953327f92540>: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 <c5f4e317158343a5916a953327f92540>:0
at Mono.Net.Security.MonoTlsStream.CreateStream (System.Net.WebConnectionTunnel tunnel, System.Threading.CancellationToken cancellationToken) [0x00126] in <c5f4e317158343a5916a953327f92540>:0
at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x001ba] in <c5f4e317158343a5916a953327f92540>: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 <c5f4e317158343a5916a953327f92540>:0
at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00141] in <c5f4e317158343a5916a953327f92540>:0
at System.Net.WebOperation.Run () [0x0009a] in <c5f4e317158343a5916a953327f92540>:0
at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <c5f4e317158343a5916a953327f92540>:0
at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[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) [0x0011b] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
--- End of inner exception stack trace ---
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001f6] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0003c] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x0007e] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x000b2] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00007] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Core.Indexers.Newznab.NewznabCapabilitiesProvider.FetchCapabilities (NzbDrone.Core.Indexers.Newznab.NewznabSettings indexerSettings) [0x0009a] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Core.Indexers.Newznab.NewznabCapabilitiesProvider+<>c__DisplayClass4_0.<GetCapabilities>b__0 () [0x00000] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Common.Cache.Cached`1[T].Get (System.String key, System.Func`1[TResult] function, System.Nullable`1[T] lifeTime) [0x0006a] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Core.Indexers.Newznab.NewznabCapabilitiesProvider.GetCapabilities (NzbDrone.Core.Indexers.Newznab.NewznabSettings indexerSettings) [0x00046] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Core.Indexers.Newznab.Newznab.get_PageSize () [0x0000c] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Core.Indexers.Newznab.Newznab.GetRequestGenerator () [0x0000b] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Core.Indexers.HttpIndexerBase`1[TSettings].TestConnection () [0x00007] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
20-10-5 21:17:58.7|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
-- Unable to connect to indexer, check the log for more details
Same here.
Package Name: mono Package Version: 5.20.1.34-15
NAS Model: DS218 NAS Architecture: Realtek RTD1296 SoC DSM version: 6.2.3-25426 Update 2
same:
Package Name: mono Package Version: 5.20.1.34-15
NAS Model: DS418j NAS Architecture: Realtek RTD1293 SoC DSM version: DSM 6.2.3-25426 Update 2
Same issue with Sonarr and Radarr Synology DS418 Realtek RTD1296 Package Name: mono Package Version: 5.20.1.34-15
Mono SSL issue
"Mono.Btls.MonoBtlsException: Ssl error:0f000078:elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE"
this may help https://github.com/SynoCommunity/spksrc/issues/3666
Mono SSL issue
"Mono.Btls.MonoBtlsException: Ssl error:0f000078:elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE"
this may help #3666
Thanks, similar symptom but my system was working with Mono 5.18, the issue started for me upgrading to Mono 5.20. As posters in that thread mention, you can't downgrade Mono without downgrading Radarr and Sonarr, and even then Radarr and Sonarr force update to newer Mono version. I don't want to start tampering with version numbers and mess up the repo dependencies... Hoping this is fixed, as it seems to be new with 5.20.1.34-15
Same issue with Jackett Tried both with the SynoPKG and just directly running the Jackett mono release via mono --debug JackettConsole.exe
Exception (ettv): Ssl error:0f000078:elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE at /spksrc/spk/mono/work-aarch64-6.1/mono-5.20.1.34/external/boringssl/crypto/ec/ec.c:835: An error occurred while sending the request
Mono 5.20.1.34
What about trying to make a dotnetcore package (and maybe installing via entware) and running those .net apps in "native" mode rather than mono ? or do we have to wait for DSM 7.x ?
I fixed it by rolling back to mono 5.8. Newer versions of Jackett and Sonarr still work with Mono 5.8
OK but 5.8 is really old. With "some hope", I have just published another Mono update with recent OpenSSL and fix for certificates as 5.20.1.34-16
Thanks for update, I installed but still get the POINT_IS_NOT_ON_CURVE error after update and reboot. Same error on both Sonarr and Radarr, and 2 different indexers.
Well here is how I do it and believe it or not, I'm able to run the latest version of Sonarr 3 and Jackett.
- Delete the mono package from the DSM package manager.
- Manually delete the actual mono folder (ie /volume1/@appstore/mono)
- Manually install the older mono 5.8 package from the syno community
- Download the latest releases from Sonarr ( Sonarr.phantom-develop.3.0.4.986.linux.tar.gz ) & Jackett (Jackett.Binaries.Mono.tar.gz) via github
- run those exec ideally via tmux - /volume1/@appstore/mono/bin/mono --debug Jackett/JackettConsole.exe /volume1/@appstore/mono/bin/mono --debug Sonarr/Sonarr.exe
- Make some kind of script to launch them at boot. It's not elegant but at least it'll work until someone fix the newer mono packages.
Fwiw, tried with the lastest mono package update 5.20.1.34-16 and this still spits the same errors about being unable to connect to the indexers.
Yup, same here
same error here
Same same ;-)
Reporting this is broken for DS1515+ and the avoton-x64 architecture. Downgrading to mono v5.8.0.108-11 and sonarr v20200409-16 as mentioned in #3666 has worked for me. Didn't need to go as extensive a downgrade as st1650 or others here mentioned. Just:
- backup sonarr (through the sonarr UI),
- uninstall sonarr
- uninstall mono
- download mono v5.8.0.108-11 and sonarr v20200409-16
- Manually install mono
- Manually install sonarr
- Follow nzbdrone Backup and Restore steps to restore sonarr
This seems to have struck my ds418j (rtd1296) this week as well. @Dirkle's suggestion worked for me, but I'm curious to know why this seems to be such a longstanding issue.
Also happened to my DS918+
@ymartin59 Sonarr Dev here.
OK but 5.8 is really old.
Yeah, and Sonarr v3 has mono 5.18 as supported minimum so downgrade to 5.8 isn't really a workaround.
With "some hope", I have just published another Mono update with recent OpenSSL and fix for certificates as 5.20.1.34-16
Mono doesn't use openssl. It uses boringssl and it's compiled part of mono itself. (/spksrc/spk/mono/work-aarch64-6.1/mono-5.18.0.240/external/boringssl/crypto/ec/ec.c:835)
There have been compiler issues with arm64 in the past, so I suspect the same is happening here with syno's aarch64 crosscompiler. I'm not entirely sure if mono compiles boringssl as a separate .so file, if so then comparing it to an aarch64 mono package compiled without the syno compiler stack.
PS: Small piece of test code https://gist.github.com/Taloth/1e7702be5e1d38675aac099bc40e957d which can be compiled with mcs and run with mono on the affected devices. So it can be tested without running Sonarr/Radarr.
Getting the same error on my DS418. I compiled and ran the test code above from Taloth, and attached the output if it helps.
Hey guys, I don't know if this is the same situation but I've been tracking an issue with mono and certificate validation errors after updating to Mono 5.20.1.34-18. There may be a few options to try if you are willing to help test:
- ~~Install a new version of mono from the PR I've been testing which addresses the certificate verification errors. Download your applicable arch version from the Artifacts section of the build~~
- Install a dotnet based version of Sonarr v4 from the PR I've created. Download your applicable arch version from the Artifacts section of the build
If you are unsure of which architecture you have please refer to this tutorial page -- What kind of CPU does my Synology NAS have? Let me know if either of these helps to resolve this issue.
EDIT: This issue is not the same as the certificate validation errors noted above, this is the OPENSSL_internal:POINT_IS_NOT_ON_CURVE error noted below.