Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarr unable to connect to indexer after Mono upgrade to 5.20.1.34 #4206

Closed
dietevil opened this issue Oct 5, 2020 · 29 comments
Closed

Sonarr unable to connect to indexer after Mono upgrade to 5.20.1.34 #4206

dietevil opened this issue Oct 5, 2020 · 29 comments
Labels

Comments

@dietevil
Copy link

dietevil commented Oct 5, 2020

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
@elmerenges
Copy link

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

@silv3r23
Copy link

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

@omearamd
Copy link

omearamd commented Oct 20, 2020

Same issue with Sonarr and Radarr Synology DS418 Realtek RTD1296
Package Name: mono
Package Version: 5.20.1.34-15

@limdul
Copy link

limdul commented Oct 20, 2020

Mono SSL issue

"Mono.Btls.MonoBtlsException: Ssl error:0f000078:elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE"

this may help #3666

@omearamd
Copy link

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

@st1650
Copy link

st1650 commented Oct 20, 2020

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 ?

@st1650
Copy link

st1650 commented Oct 20, 2020

I fixed it by rolling back to mono 5.8. Newer versions of Jackett and Sonarr still work with Mono 5.8

@ymartin59
Copy link
Contributor

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

@omearamd
Copy link

omearamd commented Oct 22, 2020

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.

@st1650
Copy link

st1650 commented Oct 22, 2020

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.

  1. Delete the mono package from the DSM package manager.
  2. Manually delete the actual mono folder (ie /volume1/@appstore/mono)
  3. Manually install the older mono 5.8 package from the syno community
  4. Download the latest releases from Sonarr ( Sonarr.phantom-develop.3.0.4.986.linux.tar.gz ) & Jackett (Jackett.Binaries.Mono.tar.gz) via github
  5. run those exec ideally via tmux -
    /volume1/@appstore/mono/bin/mono --debug Jackett/JackettConsole.exe
    /volume1/@appstore/mono/bin/mono --debug Sonarr/Sonarr.exe
  6. 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.

@ppouliot
Copy link

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.

@Stanzilla
Copy link
Contributor

Yup, same here

@kirilan
Copy link

kirilan commented Nov 27, 2020

same error here

@sqwal
Copy link

sqwal commented Dec 1, 2020

Same same ;-)

@Dirkle
Copy link

Dirkle commented Dec 7, 2020

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:

  1. backup sonarr (through the sonarr UI),
  2. uninstall sonarr
  3. uninstall mono
  4. download mono v5.8.0.108-11 and sonarr v20200409-16
  5. Manually install mono
  6. Manually install sonarr
  7. Follow nzbdrone Backup and Restore steps to restore sonarr

@tabacco
Copy link

tabacco commented Dec 27, 2020

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.

@plyngby
Copy link

plyngby commented Jan 2, 2021

Also happened to my DS918+

@Taloth
Copy link

Taloth commented Feb 27, 2021

@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.

@CerveloFellow
Copy link

Getting the same error on my DS418. I compiled and ran the test code above from Taloth, and attached the output if it helps.

error.log

@mreid-tt mreid-tt linked a pull request Feb 12, 2023 that will close this issue
6 tasks
@mreid-tt mreid-tt removed a link to a pull request Feb 12, 2023
6 tasks
@mreid-tt
Copy link
Contributor

mreid-tt commented Feb 13, 2023

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:

  1. 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
  2. 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.

@mreid-tt
Copy link
Contributor

mreid-tt commented Feb 20, 2023

@dietevil, on looking into this issue further, for armv8 archs on DSM 6.x this is a known issue with Mono versions greater than 5.8.0. This was noted in #3946 (comment).

  • If you are still running on DSM 6, you can downgrade your Mono version by uninstalling the current version and re-installing v5.8.0.108-11 from the repository (link: 6.1 rtd1296).
  • If you are running on DSM 7 you should be able to install Mono version for 7.1 rtd1296 from the repository.

I'll be closing this issue in a few days if there are no objections.

@mreid-tt
Copy link
Contributor

Closing this issue as a known bug which is unable to be fixed. Workarounds have been presented above.

@mreid-tt mreid-tt removed the wontfix label Apr 1, 2023
@mreid-tt
Copy link
Contributor

mreid-tt commented Apr 1, 2023

Hi @dietevil, I have some great news to share with you! We've recently published version 6.12.0.182 (#5677) which addresses the SSL store problems on aarch64 platforms (#3666) that you reported. This update should be available for download shortly. We would be very interested in hearing your feedback on this release, as we are confident it should resolve the issue you've been experiencing. Thank you for your patience and for bringing this to our attention!

@bootsieke
Copy link

bootsieke commented Jun 25, 2023

Hi @mreid-tt , would this update also work on a DS411 with 88f628x architecture?

When I tried updating the working 5.8 version about 1.5 year ago I got similar issues:

System.Security.Cryptography.CryptographicException: Unable to decode certificate. ---> System.DllNotFoundException: /volume2/@appstore/mono/lib/../lib/libmono-btls-shared.so

@mreid-tt
Copy link
Contributor

@bootsieke, Mono is not my area of expertise but there is a version for your platform for version 6.12 (6.1 88f628x). You can try it to see if by upgrading it resolves the issue. If not you can always roll back to version 5.8 with a manual rollback to the older package (6.1 88f628x). There is a method in the Wiki to downgrade a package without uninstalling (Advanced) if you're into that.

@hyundaimumpsimus
Copy link

@mreid-tt, the version 6.12 for the 628x is no longer available. Do you know were I could get it?

@mreid-tt
Copy link
Contributor

@mreid-tt, the version 6.12 for the 628x is no longer available. Do you know were I could get it?

My guess is that it was removed. Based on the release notes for #5677, the ARMv5 builds were disabled because they don't contain a TLS library. As such, the link I referred to was probably an unintended upload. The version of Mono supporting this architecture (v5.8) is still present however.

@hgy59 is my interpretation of the above correct?

@hgy59
Copy link
Contributor

hgy59 commented Apr 25, 2024

@hgy59 is my interpretation of the above correct?

yes, I think it is related to mono/mono#11422

@hgy59
Copy link
Contributor

hgy59 commented Apr 25, 2024

@hyundaimumpsimus you can try mono v6.12.0.199.
as soon as packages created by github build action are available for #6083

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests