On a Synology DS412+ with latest DSM and Mono 4.0.4.1-5 (from synocommunity) I get the following error while trying to update (has always worked before)
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.
Exception System.IO.FileNotFoundException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. File name: 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' at NzbDrone.Common.ArchiveService.Extract (System.String compressedFile, System.String destination) [0x00023] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\ArchiveService.cs:38 at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x0015f] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:108 at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00070] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:207 at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[ApplicationUpdateCommand] (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x0008a] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:77
If you run a backup of Sonarr (System: Backup), does it complete successfully?
Based on the error message it looks like a file used for backups and updates is missing. Running a backup should confirm whether the file is missing or something else is affecting the update.
You’re right, when I run a Back-up I get the same error:
Message Error occurred while executing task Backup: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies.
Exception System.IO.FileNotFoundException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. File name: 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' at NzbDrone.Core.Backup.BackupService.Backup (BackupType backupType) [0x0008f] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Backup\BackupService.cs:76 at NzbDrone.Core.Backup.BackupService.Execute (NzbDrone.Core.Backup.BackupCommand message) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Backup\BackupService.cs:170 at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[BackupCommand] (NzbDrone.Core.Backup.BackupCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x0008a] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:77
It’s missing ICSharpCode.SharpZipLib, how can I fix this?
Its a of a tricky issue on Synology, since removing the Sonarr package would remove the settings as well, the easiest would be to grab the Sonarr tar.gz (https://download.sonarr.tv/v2/master/latest/NzbDrone.master.tar.gz) and copy ICSharpCode.SharpZipLib.dll to Sonarr’s Startup Directory (as shown on System: Status) in Sonarr.
Thx for you’r reply, that worked! now updated succesfully to the latest version.
And now I also found out why it was missing, I’m using Antivirus Essential on my Synology and it had flagged the file and moved it to Quarantaine. Now I’ve whitelisted the file and the problem is gone.