Updating through webgui on freenas

i’m running sonarr 2.0.0.3732 via the plugin on freenas. i want to update sonarr, but the webgui update doesn’t work, as i get the debug message below. can anyone help? is there another way to update sonarr manually, through the shell in the freenas jail maybe?

if i can’t update it, i might try to install sonarr anew, manually, in a different freenas jail. if i do this, can i extract my backup to the newly installed newest version of sonarr? or will that not work because my backup settings are from a different version.

much thanks for the help.

17-11-3 22:28:10.4|Info|InstallUpdateService|Deleting old update files
17-11-3 22:28:10.6|Info|InstallUpdateService|Downloading update 2.0.0.4949
17-11-3 22:28:14.2|Info|InstallUpdateService|Verifying update package
17-11-3 22:28:14.5|Info|InstallUpdateService|Update package verified successfully
17-11-3 22:28:14.5|Info|InstallUpdateService|Extracting Update package
17-11-3 22:28:15.6|Info|InstallUpdateService|Update package extracted successfully
17-11-3 22:28:15.7|Info|BackupService|Starting Backup
17-11-3 22:28:19.9|Info|InstallUpdateService|Preparing client
17-11-3 22:28:20.0|Info|InstallUpdateService|Starting update client /tmp/nzbdrone_update/NzbDrone.Update.exe
17-11-3 22:28:20.3|Info|InstallUpdateService|Sonarr will restart shortly.
17-11-3 22:28:21.8|Error|CommandExecutor|Error occurred while executing task ApplicationUpdate

System.ComponentModel.Win32Exception: ApplicationName=‘mono’, CommandLine=’–debug /tmp/nzbdrone_update/NzbDrone.Update.exe 7274 /tmp/nzbdrone_update /usr/pbi/sonarr-amd64/share/sonarr/NzbDrone.exe /data=/var/db/sonarr /nobrowser’, CurrentDirectory=’’, Native error= Cannot find the specified file
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in :0
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in :0
at System.Diagnostics.Process.Start () [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
at NzbDrone.Common.Processes.ProcessProvider.Start (System.String path, System.String args, System.Collections.Specialized.StringDictionary environmentVariables, System.Action1 onOutputDataReceived, System.Action1 onErrorDataReceived) [0x00000] in :0
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x00000] in :0
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00000] in :0
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[ApplicationUpdateCommand] (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x00000] in :0

17-11-3 22:29:19.3|Info|LifecycleService|Restart requested.

It looks like mono is not available on the PATH for the user running Sonarr.

That’ll work, since your moving from an old version to a new version, Sonarr will just upgrade it.

1 Like

thanks for confirming this. i’ve read elsewhere that a similar problem might have been this, or it might have been a permissions issue (which i didn’t think it was).

i’ve figured out how to solve my issue. when looking into how to install sonarr manually in a jail (not using the plugin), one of the early steps was to execute this in the jail shell:
ln -s /usr/local/bin/mono /usr/bin/mono
so, i went into my sonarr plugin jail’s shell and ran just that one line. i restarted the sonarr plugin, went into the sonarr webgui, and updated. it worked!

thanks for your help. sorry if this issue was simple and solved before; i didn’t see a solution anywhere (here, freenas forums, other web searches) that laid out the simple fix, so i hope this post will help others.

1 Like

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