[OSX] Automatic update not working

I’m using Sonarr on OSX (El Capitan) and installed it using brew cask. The system runs w/o problems, but when a new update is available, I cannot update it from the web interface. The following error appears in the log:

Error occurred while executing task ApplicationUpdate: ApplicationName=‘mono’, CommandLine=’–debug /var/folders/bf/jzyxsfbd7vq00lxbgxdll8q40000gn/T/nzbdrone_update/NzbDrone.Update.exe 382 /var/folders/bf/jzyxsfbd7vq00lxbgxdll8q40000gn/T/nzbdrone_update /opt/homebrew-cask/Caskroom/sonarr/latest/Sonarr.app/Contents/MacOS/NzbDrone.exe ‘, CurrentDirectory=’’, Native error= Cannot find the specified file

System.ComponentModel.Win32Exception: ApplicationName=‘mono’, CommandLine=’–debug /var/folders/bf/jzyxsfbd7vq00lxbgxdll8q40000gn/T/nzbdrone_update/NzbDrone.Update.exe 382 /var/folders/bf/jzyxsfbd7vq00lxbgxdll8q40000gn/T/nzbdrone_update /opt/homebrew-cask/Caskroom/sonarr/latest/Sonarr.app/Contents/MacOS/NzbDrone.exe ‘, CurrentDirectory=’’, Native error= Cannot find the specified file
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00352] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Diagnostics/Process.cs:1105
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x0008b] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Diagnostics/Process.cs:1169
at System.Diagnostics.Process.Start () [0x0002c] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Diagnostics/Process.cs:1179
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) [0x0012b] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Processes\ProcessProvider.cs:167
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x00207] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:126
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00070] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:206
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

My typical workaround is to use the command in the error message and execute it manually:
mono --debug /var/folders/bf/jzyxsfbd7vq00lxbgxdll8q40000gn/T/nzbdrone_update/NzbDrone.Update.exe 382 /var/folders/bf/jzyxsfbd7vq00lxbgxdll8q40000gn/T/nzbdrone_update /opt/homebrew-cask/Caskroom/sonarr/latest/Sonarr.app/Contents/MacOS/NzbDrone.exe

This works and afterwards the system gets updated. Is there a way to fix the update process also within the UI?
FWIW: The issue remained for all Sonarr versions I tried so far, everytime an update is available, the automatic process fails but I can do it manually.

We typically see this error when mono is not available on the PATH for the user running Sonarr, adding it should correct the issue.

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