This system does not support EnumProcesses

I am running into an error when I try and update my Sonarr to the latest develop version (currently on 2.0.0.2997 going to 2.0.0.3006):

15-3-17 10:10:31.7|Fatal|UpdateApp|An error has occurred while applying update package.

System.NotSupportedException: This system does not support EnumProcesses
  at (wrapper managed-to-native) System.Diagnostics.Process:GetProcesses_internal ()
  at System.Diagnostics.Process.GetProcesses () [0x00000] in /wrkdirs/usr/ports/lang/mono/work/mono-3.12.1/mcs/class/System/System.Diagnostics/Process.cs:837 
  at NzbDrone.Common.Processes.ProcessProvider.GetProcessById (Int32 id) [0x00023] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Processes\ProcessProvider.cs:67 
  at NzbDrone.Common.Processes.ProcessProvider.Exists (Int32 processId) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Processes\ProcessProvider.cs:50 
  at NzbDrone.Update.UpdateEngine.InstallUpdateService.Verify (System.String targetFolder, Int32 processId) [0x0005c] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\InstallUpdateService.cs:64 
  at NzbDrone.Update.UpdateEngine.InstallUpdateService.Start (System.String installationFolder, Int32 processId) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\InstallUpdateService.cs:76 
  at NzbDrone.Update.UpdateApp.Start (System.String[] args) [0x00020] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:59 
  at NzbDrone.Update.UpdateApp.Main (System.String[] args) [0x00042] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:43 

The issue seems to be coming up from Mono. If I look on the Status page it says: 3.10.0 (tarball Mon Jan 26 02:53:37 UTC 2015) but if I look on my server it says Mono JIT compiler version 3.12.1 (tarball Thu Mar 12 03:45:46 UTC 2015).

I am running it on Freenas and haven’t had any issues until today. Thanks for your help, you guys as devs and as a community are amazing!

1 Like

I’ve got the same issue and am also running Sonarr under mono on FreeNAS. I don’t know if its related but I also have to keep restarting Sonarr every few days as it just seems to die.

I ended up copying my /var/db/sonarr folder and re-installing. It then worked correctly. I am still not sure what caused the issue though.

I suspect it might be an issue with mono 3.12 we’ve had a few different issues with it (3.10 is still our recommended version).

The fact that the re-install fixed it is a bit weird as the update process hasn’t changed much recently.