Update Failure v2.0.0.3565

Hi

I’m now on the Develop Branch, and the latest update is failing constantly.
I have made many attempts to update, but I’m going to share logs of just two, since they’re all identical anyway.

The actual error message is this:

CommandExecutor: Error occurred while executing task ApplicationUpdate: Could not load file or assembly ‘ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73’ or one of its dependencies. The module was expected to contain an assembly manifest.

Further, from the log file:

File name: 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73’
at NzbDrone.Common.ArchiveService.ExtractZip(String compressedFile, String destination)
at NzbDrone.Common.ArchiveService.Extract(String compressedFile, String destination) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\ArchiveService.cs:line 33
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate(UpdatePackage updatePackage) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 107
at NzbDrone.Core.Update.InstallUpdateService.Execute(ApplicationUpdateCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 206
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](TCommand command, CommandModel commandModel) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 91
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 41

Further, logs from the two attempts are here:

http://hastebin.com/sidofesofo.tex

You’ll notice that before the second attempt, I enabled Assembly Binding, since the log of the first attempt mentioned it.
Here’s what that yielded.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\ProgramData\NzbDrone\bin\NzbDrone.Console.exe
— A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
(Fully-specified)
LOG: Appbase = file:///C:/ProgramData/NzbDrone/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : NzbDrone.Common, Version=2.0.0.3546, Culture=neutral, PublicKeyToken=null.

LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\ProgramData\NzbDrone\bin\NzbDrone.Console.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
LOG: Attempting download of new URL file:///C:/ProgramData/NzbDrone/bin/ICSharpCode.SharpZipLib.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

Possibly removed by anti virus.

Hi Markus

So I tried disabling my Antivirus. That didn’t help.

Also tried the solution you described in the related topic you linked.
i.e. I downloaded **https://download.sonarr.tv/v2/develop/latest/NzbDrone.develop.zip **and copied the ICSharpCode.SharpZipLib.dll file to c:\ProgramData\NZBDrone

The update failed again. Same error message

Error occurred while executing task ApplicationUpdate: Could not load file or assembly ‘ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73’ or one of its dependencies. The module was expected to contain an assembly manifest.

And logs again:

15-11-16 01:27:02.8|Info|InstallUpdateService|Verifying update package
15-11-16 01:27:03.0|Info|InstallUpdateService|Update package verified successfully
15-11-16 01:27:03.0|Info|InstallUpdateService|Extracting Update package
15-11-16 01:27:03.0|Debug|ArchiveService|Extracting archive [C:\Users\Krupasagar\AppData\Local\Temp\nzbdrone_update\NzbDrone.develop.2.0.0.3567.windows.zip] to [C:\Users\Krupasagar\AppData\Local\Temp\nzbdrone_update]
15-11-16 01:27:03.1|Error|CommandExecutor|Error occurred while executing task ApplicationUpdate

System.BadImageFormatException: Could not load file or assembly ‘ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73’ or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73’
at NzbDrone.Common.ArchiveService.ExtractZip(String compressedFile, String destination)
at NzbDrone.Common.ArchiveService.Extract(String compressedFile, String destination) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\ArchiveService.cs:line 33
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate(UpdatePackage updatePackage) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 107
at NzbDrone.Core.Update.InstallUpdateService.Execute(ApplicationUpdateCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 206
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](TCommand command, CommandModel commandModel) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 91
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 41

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\ProgramData\NzbDrone\bin\NzbDrone.Console.exe
— A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
(Fully-specified)
LOG: Appbase = file:///C:/ProgramData/NzbDrone/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : NzbDrone.Common, Version=2.0.0.3546, Culture=neutral, PublicKeyToken=null.

LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\ProgramData\NzbDrone\bin\NzbDrone.Console.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
LOG: Attempting download of new URL file:///C:/ProgramData/NzbDrone/bin/ICSharpCode.SharpZipLib.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

How do you have Sonarr running?
Which language is your system set to use?

There is also a default language that is set for all users by default, which is used when Sonarr is running as a service.

Sonarr is running as a service on my Always-On Windows 10 PC.

Windows System Language is English (US) and the Keyboard Input Language switches between English (US) and English (India)

I never thought of language as having something to do with this error!!

Is this issue resolved already?

And did you restart sonarr after copying that .dll ?

Yes, I restarted Sonarr, then tried restarting the machine.
Neither helped.
Even today, trying to update now to 2.0.0.3571 still getting the same error
I am still stuck, as a result, on 2.0.0.3546 - this error has been consistent since then.

Error occurred while executing task ApplicationUpdate: Could not load file or assembly ‘ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73’ or one of its dependencies. The module was expected to contain an assembly manifest.

@markus101 We should check if he doesn’t have a ICSharpcode in his GAC, coz that takes precedence during load. Howerver, I don’t have the path to check here with me. Can you check this with CFAN?
Otherwise I would just clear the bin dir entirely and unzip a fresh set.

Ugh, the GAC.

@CFAN4

For me on Windows 10 it is here: %windir%\Microsoft.NET\assembly\ then you can search for ICSharpCode.SharpZipLib.

If you find something (or not) let us know.

If there is nothing lets do as Taloth suggested, stop Sonarr, remove all the contents of C:\ProgramData\NzbDrone\bin extract the zip contents in there and start up Sonarr once again.

Hi Markus, Hi Taloth

So I looked in *%windir%\Microsoft.NET\assembly\ *which in turn has three GAC folders (_32, _64 and _MSIL)
There’s no ICSharpCode file in any of them.

So let’s try the reinstall solution.
So I wipe *C:\ProgramData\NzbDrone\bin * and extract the contents of https://download.sonarr.tv/v2/develop/latest/NzbDrone.develop.zip into the bin folder?

Yeah, might want to grab an older release to test updating though.

https://download.sonarr.tv/v2/develop/windows/NzbDrone.develop.2.0.0.3570.windows.zip is the second newest release.

Inside the zip there is a NzbDrone folder so put the contents of that folder in C:\ProgramData\NzbDrone\bin

Hi Markus.

I did just that and I managed to get 3570 running.
But update still doesn’t work. However, the error is now a different one.

Logs are here:

http://hastebin.com/epuxogazus.tex

And the error message at the end of a much longer sequence of successful events:

  • Deleting old update files

  • Downloading update 2.0.0.3571

  • Verifying update package

  • Update package verified successfully

  • Extracting Update package

  • Preparing client

  • Starting update client C:\Users\Krupasagar\AppData\Local\Temp\nzbdrone_update\NzbDrone.Update.exe

  • Sonarr will restart shortly.

  • Error occurred while executing task ApplicationUpdate: The system cannot find the file specified

System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at NzbDrone.Common.Processes.ProcessProvider.Start(String path, String args, StringDictionary environmentVariables, Action1 onOutputDataReceived, Action1 onErrorDataReceived) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Processes\ProcessProvider.cs:line 167
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate(UpdatePackage updatePackage) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 126
at NzbDrone.Core.Update.InstallUpdateService.Execute(ApplicationUpdateCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 206
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](TCommand command, CommandModel commandModel) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 91
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 41

Does C:\Users\Krupasagar\AppData\Local\Temp\nzbdrone_update\NzbDrone.Update.exe exist?

Looks like it doesn’t, possibly removed by Anti-virus?

How stupid of me!
This time, I didn’t check the anti-virus.
And what wasn’t the problem last time was the problem this time.
Disabled Avast Shields for 10 minutes, ran the update and it updated perfectly.

Turns out Avast identifies the nzbdrone_update.exe file as FileRepMetagen [Malware]

Thanks a bunch!
I’ve used a lot of software for a lot of things, never have I seen devs so involved and helpful!

Cheers!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.