-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 3.0.6.1342 - Certificate validation errors after updating to Mono 5.20.1.34-18 #5051
Comments
Not a bug - you need to sync mono's certs |
a regular installation and update run the following command in
this is shown in the installer log file like this (upgrade with already uptodate list)
If you want to execute this command manually use /var/packages/mono/target/ for SYNOPKG_PKGDEST, i.e. run |
mono 5.8 really isn't supported mono 5.18 or 5.20 are needed |
@mreid-tt analyzing your log file above, i am missing the Probably you can resolve this, by manually installing (updating) the downloaded mono spk with identical version (5.20.1.34-18). |
I know, I know, this is only a sample installation log, that does not depend on mono version. |
It seems to be an issue on DSM 7 tried the same with mono 5.20.1.34-18 on DS218+ with DSM 7.0.1
here an extract of
PS: it is time to port sonarr to .net! |
Hey @hgy59, thanks so much for the analysis. This does seem to be a DSM7 issue since the suggestion below did not work:
I was able to manually import the certificates by putting a
The output looked like this -- https://pastebin.com/ZHgssSSn Once this was completed, Sonarr is once again fully functional.
I agree, but I think I recall one of the devs saying that Sonarr is unlikely to do that anytime soon. EDIT This is also evident in the source repository since they seem to have pushed this to v4 consideration based on Sonarr/Sonarr#948 |
Sonarr will not be moving to .net anytime soon Based on the time it took for v3 to replace v2 I would not expect Sonarr in .net for several years at best. Maybe I'll be wrong 🤷♂️ Sonarr on .Net also already exists for internal testing. For this SSL issue it seems that SynoCommunity's mono package has a bug and fails to sync certs upon install. This should be corrected as soon as it can given all the support issues it's causing. |
Any timeframe to fix this bug? we're up to a lot of users on a daily basis posting about this bug both for Sonarr help and on the various Synology sites with the SynoCommunity mono package. |
I guess I could summarise the workaround for the community to follow in the meantime:
Once complete the errors in Sonarr should disappear on their own in a few minutes. EDIT: Thanks to the contribution from @mmdriley below, step 6 was added to support DSM 7.1. |
|
DSM 7.1 for those this isn't fixing by chance? it seems DSM 7.1 is causing a lot of package issues then. |
Yep, 7.1. |
Another 7.1 victim here. |
Mono 5.20.1.34-17 |
What about it |
I downgraded to this version and it works now. Maybe you could elaborate a bit more on your comments ;) |
I can confirm this fixed it for me as well, you can download older versions from https://synocommunity.com/package/mono |
I have the same issue on DSM7.1. I did downgrade mono to Mono 5.20.1.34-17, and ran the cert-sync command. But still the same problem. Could someone explain what they did to get it to work on 7.1? |
It generally seems DSM7.1 is not supported for fresh installs and mono's certs cannot be synced. |
I basically only uninstalled 5.20.1.34-18 and manually installed 17. Didnt run the cert-sync. |
Thanks for the response, bakerboy448 and Patrick010. I also did an uninstall and manually install, but still couldn't get it to work. I switched to Docker for now and got it working. |
I fixed this on DSM 7.1 by updating permissions for Mono's machine certificate store to allow users like $ sudo chmod -R a+rX /usr/share/.mono |
I don't even have this folder, the most similar would be something like |
If that folder doesn't exist, you may need to run the The local machine store is under |
Thank you! That did the trick. |
Worked like a charme. Thx |
Thankx very much, this is the solution, now i'm very happy. |
How is this package still broken half a year later if the fix is this simple? I just got the same error again after having solved it months ago... |
I guess #5070 has to be completed and merged first...? |
Right, the workaround in my comments above is only "simple" because we can run it as |
chmod -R a+rX /usr/share/.mono worked for me too! |
Thanks a lot, both commands :
did it for me. Was wondering why Radarr was able to reach indexers but not Sonarr, this thread brought the answer. |
You're the man! I already thought I'd have to switch everything to docker... Thanks! |
Worked for me as well! Thank you guys! |
Is anyone actually looking into those nontrivial changes? Is there anything the community can do to help? A DSM update just triggered the Sonarr package to get updated again, which once again broke certificates. It's of course simple to fix whenever it breaks but at this point it's getting annoying. |
For me chmod -R a+rX /usr/share/.mono is not working “no such file or directory” i’m on DSM 7.1.1-42962 Update 2 has the location changed. |
You need to execute both commands mentioned further up! |
Update: this was an issue again today. The same fix worked (again). |
@hgy59, continuing this discussion here... how would you add a script to run as root exactly? In my reading online I get the impression that you cannot run scripts as root in DSM 7 unless your package is signed by Synology. Is there an approach you had in mind for me to try? |
^ User would need to configure it |
DSM7 made it hard to run things as I feel like two good options here are:
Continuing with (2), it also looks like the Mono package already tries to update its certificate store, though only just after installation: spksrc/spk/mono_58/src/service-setup.sh Lines 1 to 5 in 12ebc6c
If we go with the Mono-package-owns-its-cert-store path, we may want to change that command to run on postinstall and every service start. |
Obsolete with v4 and the move to .NET Core anyway though, no? |
No ETA as to when v4 will be officially stable. V3 was in beta for several years |
Packaged Sonarr v4 beta (#5524) is ready to go. Just waiting on the admins to do a final review so it can be published for those who are willing to test it. |
Is this really the same issue going back a whole year? |
Greetings everyone, I am pleased to inform you that we have identified the issue with Mono and have created a new pull request (#5604) to fix it. We have tested the solution and it has been working well so far. As a result, the latest version of Mono (v5.20.1.34-19) is now available for download in the Package Center, or you can manually download it from the repository. Thank you for your patience and understanding. |
Setup
Package Name: Sonarr
Package Version: 20210717-19
NAS Model: DS916+
NAS Architecture: INTEL Pentium N3710
DSM version: DSM 7.0.1-42218
Expected behavior
Following the update of Mono to version 5.20.1.34-18, Sonarr is restarted. Once restarted, I should be able to check for updates without error from System -> Updates
Actual behavior
On checking for updates I only get an error: Failed to fetch updates
I also note in the System -> Events a number of X509CertificateValidationService and SonarrErrorPipeline errors
Steps to reproduce
1. Update Mono to latest version 5.20.1.34-18
2. Sonarr reboots as a dependent package
3. Errors show in the System -> Events
Package log
Installer log: find logfile
/var/log/packages/{package}.log
, for DSM<6:/var/packages/{package}/target/var/{package}_installer.log
and protocol in Package Center.You find service log and other log files in
/var/packages/{package}/target/var
.Other logs
E.g.
/var/log/messages
or/var/log/synopkg.log
Known workaround (see: #5051 (comment))
ssh -l [admin username] [NAS address]
or using Putty (Windows) connect to the network address of your NASsudo /var/packages/mono/target/bin/cert-sync /etc/ssl/certs/ca-certificates.crt
and press entersudo chmod -R a+rX /usr/share/.mono
and press enterexit
and press enterThe text was updated successfully, but these errors were encountered: