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 v3: fix for service setup #5601

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

mreid-tt
Copy link
Contributor

@mreid-tt mreid-tt commented Feb 11, 2023

Description

Amends #5591 to update service setup GROUP variable to exclude DSM7 (deprecated in DSM7).

Once published, it is recommended that Sonarr v3 (Version 20221216-21) be unpublished to avoid future use (bug fix was included in #5554).

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Bug fix

@mreid-tt mreid-tt self-assigned this Feb 11, 2023
@mreid-tt mreid-tt force-pushed the sonarr-v3-patch branch 2 times, most recently from cb5867a to a546894 Compare February 12, 2023 00:59
Update Makefile
Update service setup
@mreid-tt mreid-tt merged commit 0b670e9 into SynoCommunity:master Feb 12, 2023
@mreid-tt mreid-tt deleted the sonarr-v3-patch branch February 12, 2023 18:44
@mreid-tt
Copy link
Contributor Author

mreid-tt commented Feb 12, 2023

@hgy59, when this bug fix is published please un-publish Sonarr v3 (Version 20221216-21) to avoid future use.

EDIT: Apologies for the incomplete name on the squash merge. Will be more careful in future if the squash only contains one commit.

@mreid-tt
Copy link
Contributor Author

@th0ma7, @publicarray any chance you guys could assist in getting this published? As it is basically a bug fix to the last release, once the cache servers are updated the previous v20221216-21 can be removed.

@hgy59
Copy link
Contributor

hgy59 commented Feb 18, 2023

@mreid-tt the first run of this package fails. It displays Value cannot be null. Parameter name: returnLabel in the web ui

extract from the nzbdrone.log:


2023-02-18 08:02:34.3|Info|LanguageProfileService|Setting up default language profiles
2023-02-18 08:02:35.4|Warn|MonoDebugCheck|Mono is not running with --debug switch
2023-02-18 08:02:39.3|Fatal|SonarrErrorPipeline|Request Failed. GET /api/v3/qualityprofile

[v3.0.9.1549] System.ArgumentNullException: Value cannot be null.
Parameter name: returnLabel
  at System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters, System.Linq.Expressions.LabelTarget returnLabel) [0x00190] in <9b1717c0b27f441d9bbfb7d67acd2995>:0
  at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T] (System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) [0x00019] in <9b1717c0b27f441d9bbfb7d67acd2995>:0
  at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) [0x00115] in <9b1717c0b27f441d9bbfb7d67acd2995>:0
  at Nancy.Responses.Negotiation.DefaultResponseNegotiator+<GetCompatibleHeaders>d__8.MoveNext () [0x0011d] in <e31b230dbd29407fadcc55713e0bbd0f>:0
  at System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x0005e] in <9b1717c0b27f441d9bbfb7d67acd2995>:0
  at System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00033] in <9b1717c0b27f441d9bbfb7d67acd2995>:0
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <9b1717c0b27f441d9bbfb7d67acd2995>:0
  at Nancy.Responses.Negotiation.DefaultResponseNegotiator.NegotiateResponse (System.Object routeResult, Nancy.NancyContext context) [0x00202] in <e31b230dbd29407fadcc55713e0bbd0f>:0
  at Nancy.Routing.DefaultRouteInvoker+<Invoke>d__2.MoveNext () [0x0011a] in <e31b230dbd29407fadcc55713e0bbd0f>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at Nancy.Routing.DefaultRequestDispatcher+<Dispatch>d__5.MoveNext () [0x002b7] in <e31b230dbd29407fadcc55713e0bbd0f>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0a602cfb3cda43519f373bc4aed57f39>:0
  at Nancy.NancyEngine+<InvokeRequestLifeCycle>d__22.MoveNext () [0x0011d] in <e31b230dbd29407fadcc55713e0bbd0f>:0

After stopping and starting sonarr v3 in DSM package manager, is successfully runs.

I have already uploaded version 20230217-22, but not activated. Shall I delete this?

@mreid-tt
Copy link
Contributor Author

mreid-tt commented Feb 18, 2023

@hgy59, welcome back! thanks for the feedback. I've just re-run a clean install on DSM6 and DSM7 and the installs come up clean:

Can you give me some more details on your setup? For my tests I used:

DSM6: nzbdrone 20230212-22, mono 5.20.1.34-18
DSM7: nzbdrone 20230212-22, mono 5.20.1.34-19 (unpublished from #5604)

For your test, was the first run was a clean install or was it an upgrade from a previous version? I'd really like to be able to re-create the issue on my end.

I also noted that you said version 20230217-22, the build on this PR is version 20230212-22. Can you link me to your build so I can use the same .SPK files?

@hgy59
Copy link
Contributor

hgy59 commented Feb 18, 2023

@mreid-tt 20230217-22 is available on the download page (it is not yet activated to be visible in DSM package center).

Clean install of 20230217-22 shows the error on my DS218 (aarch64-6.1).
Clean install of 20221216-21 does not have this error.

@mreid-tt
Copy link
Contributor Author

@hgy59, thanks for that. I've just done a re-install using v20230217-22 on my (VirtualDSM) DS916+ (x64-6.1) and the results are the same. I've also taken a look into the 6.1 rtd1296 and the aarch64-6.1 packages and besides the expected difference in the INFO and syno_signature.asc files, only a minor difference in the package.tgz was present (though the decompressed contents were identical).

I can't think of a way to resolve this. Perhaps a package rebuild?

@mreid-tt
Copy link
Contributor Author

mreid-tt commented Feb 18, 2023

@mreid-tt the first run of this package fails. It displays Value cannot be null. Parameter name: returnLabel in the web ui

Could this be an issue with Mono? The only other place I've been able to find a similar error is mono/mono#16770 and mono/mono#14080. While these are not identical, I'd be curious as to your Mono setup.

@hgy59
Copy link
Contributor

hgy59 commented Feb 18, 2023

oops, sorry, forget to mention: Installed mono is 5.8.0.108-11

are we ready to define SPK_DEPENDS = "mono>=5.20" ?

@mreid-tt
Copy link
Contributor Author

I've re-run a clean install on my DSM6 setup using mono 5.8.0.108-11 but I could not recreate the error. Did it happen consistently on clean install (more than once)?

As for the upgraded requirements for mono, you previously indicated in #5515 (comment):

there are issues with 5.20 and aarch64 on DSM 6 (built with DSM 6 toolchain)

I'd be happy to change the requirements since within Sonarr v3, the following error is seen: Currently installed Mono version 5.8.0.108 is no longer supported. Please upgrade Mono to version 5.20.
Has the situation with this changed?

@mreid-tt
Copy link
Contributor Author

Value cannot be null. Parameter name: returnLabel

This error is also very unique as I can't seem to find any reference on the Internet for returnLabel in an error. If I expand my search parameters I come across some Microsoft scripting documentation for 'CallSiteBinder' that says:

returnLabel LabelTarget
A LabelTarget used to return the result of the dynamic binding.

I don't know if this sheds any light on the issue but there was not much to be found on this particular error.

@mreid-tt
Copy link
Contributor Author

mreid-tt commented Feb 18, 2023

@hgy59, I believe that across all the changes in the three PRs between v20221216-21 and v20230217-22 there would not be an issue within Sonarr v3 itself contributing to the first run error you cited. My vote would be to activate it. We can also approve and release the fixed Mono in #5604 which resolves the certificate validation errors since the community has been waiting on this for a while.

@hgy59 hgy59 added status/published Published and activated (may take up to 48h until visible in DSM package manager) and removed status/to-publish labels Feb 19, 2023
@mreid-tt
Copy link
Contributor Author

@hgy59, as it's been a couple days I am wondering if the cache servers have been fully updated? If so, gentle reminder to de-activate Version 20221216-21.

@hgy59
Copy link
Contributor

hgy59 commented Feb 21, 2023

My diskstations still show version 20221216-21 in the package center, so I will wait another day (can't remember at which time I activated the packages in the repo. Upload was on 2023-02-18 06:45 UTC)

@hgy59
Copy link
Contributor

hgy59 commented Feb 23, 2023

@hgy59, as it's been a couple days I am wondering if the cache servers have been fully updated? If so, gentle reminder to de-activate Version 20221216-21.

done.

AlexPresso pushed a commit to AlexPresso/spksrc that referenced this pull request Jan 30, 2025
* Update Makefile
* Update service setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/published Published and activated (may take up to 48h until visible in DSM package manager)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants