Sonarr stopped working last week

Sonarr version (exact version): 3.0
Mono version (if Sonarr is not running on Windows): Mono JIT compiler version 6.4.0.198
OS: OS X 10.14.6 Mojave
Debug logs:
Description of issue: I’ve been using Sonarr for a few months now with no issue. I installed using instructions from the r/sonarr forum on reddit. Last week, it just stopped working. Launching Sonarr does nothing. I don’t see Sonarr running in the Activity Monitor. I rebooted my Mac Mini and still nothing.

When I look at the system.log when I try to launch Sonarr, it reports “Service exited with abnormal code: 2”

Since it will not run, I’m not sure if I should be including the log files. Let me know if I do and I’ll try to figure it out. Thanks!

Run mono --version in Terminal.

Have you checked the logs to see if any errors are logged when it’s starting?
Have you read the FAQ? There is a common macOS issue listed there, though it may not be happening here, first check the logs.

Thanks for the help!

Mono version: Mono JIT compiler version 6.4.0.198

When I look at the system.log when I try to launch Sonarr, it reports “Service exited with abnormal code: 2”

If you are referring to logs other than system.log, which ones and where do I find them?

I looked at the Mac issue listed in the FAQ. What does it mean if I don’t have an NzbDrone folder? All that’s listed in .config/ is Jackett, Lidarr and Sonarr directories.

I mean Sonarr’s log files (follow the links for common locations of it).

In v3 it’d be Sonarr.

Thanks.

When this first started happening, I first asked for help elsewhere and they pointed me to that Mac error section of the FAQ, which I followed. The logs have been in Trash for a week and no new logs are generated when I try to run Sonarr.

What would you recommend I use to read the logs on OS X? They look pretty messed up when I try to read them using TextEdit.

And still when I try to run Sonarr, Console replies with “Media-Center-3 com.apple.xpc.launchd[1] (com.osx.sonarr.tv.13156[6108]): Service exited with abnormal code: 2”

Did you try to open logs.db or look at the actual text file logs? Unless they were corrupted (then nothing could have read them and there is something else going on).

If no logs are being generated then Sonarr isn’t beginning to start at all and the issue is likely with mono, but you can open terminal and run mono --debug /path/to/Sonarr.exe replacing /path/to with the actual path and see what happens.

Thanks!

When I look in Logs, I see five files sonarr.txt and sonarr.0-4.txt. sonarr.txt is the newest file. It looks like newer entries are at the end of the file. I don’t understand them much.

maybe the last message I see is “Error occurred while executing task ApplicationUpdate”

I can post the last few lines of the log if that will help.

This is what I got…

Blockquote
Media-Center-3:~ mediauser$ mono --debug /Applications/Sonarr.app
Cannot open assembly ‘/Applications/Sonarr.app’: File does not contain a valid CIL image.

Post the last 100 or so lines and we can look.

Not Sonarr.app, Sonarr.exe which is inside Sonarr.app, it might be /Applications/Sonarr.app/Contents/MacOS/Sonarr.exe

20-2-12 18:55:28.5|Info|RssSyncService|Starting RSS Sync
20-2-12 18:55:31.5|Info|DownloadDecisionMaker|Processing 115 releases
20-2-12 18:55:32.4|Info|RssSyncService|RSS Sync Completed. Reports found: 115, Reports grabbed: 0
20-2-12 19:00:38.6|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from My Transmission

[v3.0.3.684] NzbDrone.Core.Download.Clients.DownloadClientUnavailableException: Unable to connect to Transmission, please check your settings ---> System.Net.WebException: The operation has timed out.: 'http://localhost:9091/transmission/rpc' ---> System.Net.WebException: The operation has timed out.
  at System.Net.HttpWebRequest.GetRequestStream () [0x0000f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/System/System.Net/HttpWebRequest.cs:910 
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x000f7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:75 
   --- End of inner exception stack trace ---
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001bb] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:107 
  at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x00080] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:123 
  at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:59 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.ProcessRequest (System.String action, System.Object arguments, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00072] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:271 
   --- End of inner exception stack trace ---
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.ProcessRequest (System.String action, System.Object arguments, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00138] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:308 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetSessionVariables (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:143 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetConfig (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:117 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionBase.<GetItems>b__2_0 () [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionBase.cs:35 
  at System.Lazy`1[T].ViaFactory (System.Threading.LazyThreadSafetyMode mode) [0x00043] in <b814b509d4ad406fb40c6c93e38929e7>:0 
  at System.Lazy`1[T].ExecutionAndPublication (System.LazyHelper executionAndPublication, System.Boolean useDefaultConstructor) [0x00022] in <b814b509d4ad406fb40c6c93e38929e7>:0 
  at System.Lazy`1[T].CreateValue () [0x00074] in <b814b509d4ad406fb40c6c93e38929e7>:0 
  at System.Lazy`1[T].get_Value () [0x0000a] in <b814b509d4ad406fb40c6c93e38929e7>:0 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionBase.HasReachedSeedLimit (NzbDrone.Core.Download.Clients.Transmission.TransmissionTorrent torrent, System.Nullable`1[T] ratio, System.Lazy`1[T] config) [0x00052] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionBase.cs:125 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionBase.GetItems () [0x00256] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionBase.cs:102 
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads (NzbDrone.Core.Download.IDownloadClient downloadClient) [0x0000c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:92 

20-2-12 19:10:58.7|Info|RssSyncService|Starting RSS Sync
20-2-12 19:11:01.9|Info|DownloadDecisionMaker|Processing 122 releases
20-2-12 19:11:03.0|Info|RssSyncService|RSS Sync Completed. Reports found: 122, Reports grabbed: 0
20-2-12 19:18:28.8|Info|SceneMappingService|Updating Scene mappings
20-2-12 19:26:28.9|Info|RssSyncService|Starting RSS Sync
20-2-12 19:26:32.1|Warn|Torznab|Indexer KickAssTorrents rss sync didn't cover the period between 2/13/2020 1:11:01 AM and 2/13/2020 1:26:32 AM UTC. Search may be required.
20-2-12 19:26:32.1|Info|DownloadDecisionMaker|Processing 134 releases
20-2-12 19:26:33.5|Info|RssSyncService|RSS Sync Completed. Reports found: 134, Reports grabbed: 0
20-2-12 19:30:06.9|Info|InstallUpdateService|Deleting old update files
20-2-12 19:30:06.9|Info|InstallUpdateService|Downloading update 3.0.3.698
20-2-12 19:30:08.4|Info|InstallUpdateService|Verifying update package
20-2-12 19:30:08.7|Info|InstallUpdateService|Update package verified successfully
20-2-12 19:30:08.7|Info|InstallUpdateService|Extracting Update package
20-2-12 19:30:10.7|Info|InstallUpdateService|Update package extracted successfully
20-2-12 19:30:10.7|Info|BackupService|Starting Backup
20-2-12 19:30:11.5|Info|InstallUpdateService|Preparing client
20-2-12 19:30:11.8|Info|InstallUpdateService|Starting update client /var/folders/32/1lfy0_cs3r94v2c2x574zjsr0000gn/T/sonarr_update/Sonarr.Update.exe
20-2-12 19:30:11.8|Info|InstallUpdateService|Sonarr will restart shortly.
20-2-12 19:30:14.7|Info|InstallUpdateService|Deleting old update files
20-2-12 19:30:14.9|Error|CommandExecutor|Error occurred while executing task ApplicationUpdate

[v3.0.3.684] System.IO.IOException: Directory not empty
  at System.IO.FileSystem.RemoveDirectoryInternal (System.IO.DirectoryInfo directory, System.Boolean recursive, System.Boolean throwOnTopLevelDirectoryNotFound) [0x00115] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:441 
  at System.IO.FileSystem.RemoveDirectory (System.String fullPath, System.Boolean recursive) [0x00020] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:364 
  at System.IO.Directory.Delete (System.String path, System.Boolean recursive) [0x00006] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/Directory.cs:298 
  at NzbDrone.Common.Disk.DiskProviderBase.DeleteFolder (System.String path, System.Boolean recursive) [0x00071] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Disk\DiskProviderBase.cs:253 
  at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x000ed] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Update\InstallUpdateService.cs:106 
  at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x000f7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Update\InstallUpdateService.cs:236 
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand] (TCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x000f6] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:95 
  at (wrapper dynamic-method) System.Object.CallSite.Target(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandExecutor,object,NzbDrone.Core.Messaging.Commands.CommandModel)
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands () [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:41 

The Sonarr inside “Sonarr.app/Contents/MacOS/” does not have an .exe extension, and when I run the mono line with the full path to Sonarr inside the MacOS folder, I get the same message

mono --debug /Applications/Sonarr.app/Contents/MacOS/Sonarr
Cannot open assembly ‘/Applications/Sonarr.app/Contents/MacOS/Sonarr’: File does not contain a valid CIL image.

I tried adding .exe to the end of it and terminal said no such file or directory.

There should be a Sonarr.exe in there, if there isn’t that would explain why it’s not working. At this point, grab the latest v3 release from https://sonarr.tv and re-install.

If I reinstall, will Sonarr retain all my settings and preferences? I’d really hate to set up everything all over again.

Yes, it doesn’t touch your settings, but you can backup first if you’re worried.

Okay. I reinstalled, and Sonarr appears to be working again. Thanks!

Sonarr says I have no series being tracked (“Let’s add some”). How do I re-load my previous settings? I don’t see anything like a restore command in the UI.

Whoops! I thought the default download version would be version 3, but somehow I downloaded and installed 2. Trying to get 3 now…

And that appeared to fix it! I launched Sonarr from the browser and all my shows popped up. Thanks!

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