-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
System.ArgumentNullException: Value cannot be null. #2636
Comments
I'm getting this too. I think it's a Mono update as no previous versions of Jackett work. |
Yes same here since the mono update. |
Some problem for me :( |
I downgraded to mono 5.8.0. It works, be careful that this last update messes with sonarr and radarr too. Don't update and wait some clarifications 👍 |
@jenkinsddl How did you manage to downgrade? Ubuntu 14.04 won't let me downgrade to 5.8.0... |
The mono issue is located here |
Someone on the Sonarr Git posted this. I had to remove a bunch of dependencies but was finally able to get things working again. I did something like this (on Ubuntu): apt remove mono-complete mono-devel (or whatever you installed for mono, I did mono-complete) I edited /etc/apt/sources.list.d/mono-xamarin.list to read: deb http://download.mono-project.com/repo/ubuntu xenial/snapshots/5.8.0.127 main Note in the above line, I locked to the 5.8.0.127 version, which still works with sonarr/radarr/jackett. Then I did an apt update. Then I did an apt install mono-complete, that got me back down to 5.8.0.127. Hope this helps someone. |
Same happened here |
Have you cleaned your browser cache? It's weird. |
yeah, didn't help. |
The error Sonarr was getting is related to the ReadOnlySpan implicit cast operator that got added to the string type and NLog didn't handle that until 4.5 Release Candidate (latest official release is 4.4.12 iirc). Not the same error as OP. Also Jackett is already on NLog 5.0 beta releases. An error in Autofac hints at an issue in Reflection, which sounds plausible given the various additions in the .net framework. |
Mono have released an update which should fix this issue |
@Taloth is right, the problem is caused by NLog, apparently the nuget 5.0 beta doesn't contain the fix.
|
@kaso17 Was just about to mention that. The fix in nlog was made in october, and the latest 5.0 beta is from september. Bad assumption on my part that 5.0 would contain all fixes from 4.5 😄 |
using the new NLog.dll file works. |
2nd that. new NLog.dll fixes the issue. I upgraded Mono again ;) |
This works for me as well (using the NLog.dll from @dutch2005). Going forward, will we need to do anything once an official fix is released, or will the files in question just be overwritten by the updater/installer? |
Nice, Jackett, Sonarr and Radarr all working again with that updated NLog.dll file. Thanks! |
@kaso17 They told me nlog 5.0 beta has been abandoned, so it's advisable to switch to 4.5 RC6 (iirc that's likely the last RC before 4.5 final) |
With jackett version v0.8.737 Nlog 4.4.13 is used which contains the fix too, so this should be fixed for good. |
Having this same issue on a new install of jackett on a Raspberry Pi (raspbian) already running Sonarr and Radarr without any issues. Happens for both 0.9.16 and 0.8.1263 on mono '5.12.0.226-0xamarin3+raspbian9b1'. Any ideas? |
System.ArgumentNullException can occur for many reasons, this issue was specific to a Mono update and NLog. It was fixed a while ago Please create a new issue with your problem and a full enhanced log |
Please use the search bar at the top of the page and make sure you are not creating an already submitted issue. Duplicating issues makes it more difficult for everyone to follow. Your issue may have already been solved in the past as well.
Provide a description of the feature request or bug, the more details the better.
If you are experiencing an issue with a tracker, a full log must be included. Instructions for obtaining logs are here: https://github.com/Jackett/Jackett#troubleshooting
Xubuntu 16.04
Jackett version:
v0.8.716
Mono version (if not using Windows):
Mono JIT compiler version 5.10.0.140 (tarball Sat Feb 24 15:33:47 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
After the latest mono update and a reboot I am no longer able to start Jackett
Error:
b__0_1 (Jackett.Common.Models.Config.ConsoleOptions options) [0x00330] in <1ff49239ca8c4e438ca9e858f1a41115>:0Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable
1[T] parameters) [0x00003] in <6b74cc51e42041dba63ed788f99f0cbb>:0 at Autofac.ResolutionExtensions.Resolve (Autofac.IComponentContext context, System.Type serviceType, System.Collections.Generic.IEnumerable
1[T] parameters) [0x00007] in <6b74cc51e42041dba63ed788f99f0cbb>:0at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable
1[T] parameters) [0x00000] in <6b74cc51e42041dba63ed788f99f0cbb>:0 at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context) [0x00000] in <6b74cc51e42041dba63ed788f99f0cbb>:0 at Jackett.Engine.get_Logger () [0x00000] in C:\projects\jackett\src\Jackett.Common\Engine.cs:166 at JackettConsole.Program+<>c.<Main>b__0_1 (Jackett.Common.Models.Config.ConsoleOptions options) [0x00330] in <1ff49239ca8c4e438ca9e858f1a41115>:0 at CommandLine.ParserResultExtensions.WithParsed[T] (CommandLine.ParserResult
1[T] result, System.Action1[T] action) [0x00011] in <450057026f344cf3b18fc8978bc1a7a3>:0 at JackettConsole.Program.Main (System.String[] args) [0x0002f] in <1ff49239ca8c4e438ca9e858f1a41115>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null. Parameter name: context at Autofac.ResolutionExtensions.ResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable
1[T] parameters) [0x00003] in <6b74cc51e42041dba63ed788f99f0cbb>:0at Autofac.ResolutionExtensions.Resolve (Autofac.IComponentContext context, System.Type serviceType, System.Collections.Generic.IEnumerable
1[T] parameters) [0x00007] in <6b74cc51e42041dba63ed788f99f0cbb>:0 at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable
1[T] parameters) [0x00000] in <6b74cc51e42041dba63ed788f99f0cbb>:0at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context) [0x00000] in <6b74cc51e42041dba63ed788f99f0cbb>:0
at Jackett.Engine.get_Logger () [0x00000] in C:\projects\jackett\src\Jackett.Common\Engine.cs:166
at JackettConsole.Program+<>c.
at CommandLine.ParserResultExtensions.WithParsed[T] (CommandLine.ParserResult
1[T] result, System.Action
1[T] action) [0x00011] in <450057026f344cf3b18fc8978bc1a7a3>:0at JackettConsole.Program.Main (System.String[] args) [0x0002f] in <1ff49239ca8c4e438ca9e858f1a41115>:0
The text was updated successfully, but these errors were encountered: