Constant Crashing

I am running the latest version of Sonarr in a ubuntu based Docker container. Sonarr will start just fine, but when I access the webgui it starts the RSS search/refresh. It does a few shows then it crashes.

Now it doesn’t always crash in the same spot, and sometimes the error messages are vastly different. But here is one crash I was able to log

Info] RefreshSeriesService: Skipping refresh of series: Avatar: The Last Airbender 
[Info] DiskScanService: Scanning disk for Avatar: The Last Airbender 
[Info] DiskScanService: Completed scanning disk for Avatar: The Last Airbender 
EPIC FAIL: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Threading.EventWaitHandle.Reset () <0x7fd3bd24b270 + 0x00041> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Reset ()
  at System.Threading.Timer+Scheduler.SchedulerThread () <0x7fd3bd24ff40 + 0x000a6> in <filename unknown>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) <0x7fd3bd0b1010 + 0x00099> in <filename unknown>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7fd3bd0af850 + 
0x0016e> in <filename unknown>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7fd3bd0af820 + 0x00020>
 in <filename unknown>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) <0x7fd3bd0af770 + 0x00059> in <filename unknown>:0 
  at System.Threading.ThreadHelper.ThreadStart () <0x7fd3bd0b11d0 + 0x0002e> in <filename unknown>:0 
[Fatal] GlobalExceptionHandlers: EPIC FAIL: Object reference not set to an instance of an object 

System.NullReferenceException: Object reference not set to an instance of an object
  at System.Threading.EventWaitHandle.Reset () <0x7fd3bd24b270 + 0x00041> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Reset ()
  at System.Threading.Timer+Scheduler.SchedulerThread () <0x7fd3bd24ff40 + 0x000a6> in <filename unknown>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) <0x7fd3bd0b1010 + 0x00099> in <filename unknown>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7fd3bd0af850 + 
0x0016e> in <filename unknown>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7fd3bd0af820 + 0x00020> in <filename unknown>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) <0x7fd3bd0af770 + 0x00059> in <filename unknown>:0 
  at System.Threading.ThreadHelper.ThreadStart () <0x7fd3bd0b11d0 + 0x0002e> in <filename unknown>:0 

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Threading.EventWaitHandle.Reset () <0x7fd3bd24b270 + 0x00041> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Reset ()
  at System.Threading.Timer+Scheduler.SchedulerThread () <0x7fd3bd24ff40 + 0x000a6> in <filename unknown>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) <0x7fd3bd0b1010 + 0x00099> in <filename unknown>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7fd3bd0af850 + 
0x0016e> in <filename unknown>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7fd3bd0af820 + 0x00020>
 in <filename unknown>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) <0x7fd3bd0af770 + 0x00059> in <filename unknown>:0 
  at System.Threading.ThreadHelper.ThreadStart () <0x7fd3bd0b11d0 + 0x0002e> in <filename unknown>:0 
[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.3594 
[Info] AppFolderInfo: Data directory is being overridden to [/config] 
[Debug] ProcessProvider: Found 0 processes with the name: NzbDrone.Console 
[Debug] ProcessProvider: Found 1 processes with the name: NzbDrone 
[Debug] ProcessProvider:  - [103] NzbDrone 
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
[Debug] MigrationLogger: Took: 00:00:00.0899554 
[Info] MigrationLogger: *** Migrating data source=/config/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
[Debug] MigrationLogger: Took: 00:00:00.0072424 

I see different variations of the error above, as well as different variants of this one

[Debug] DownloadClientFactory: Initializing Providers. Count 9 
[Trace] EventAggregator: ApplicationStartedEvent <- DownloadClientFactory 
[Trace] EventAggregator: ApplicationStartedEvent -> IndexerFactory 
[Debug] IndexerFactory: Initializing Providers. Count 15 
[Trace] EventAggregator: ApplicationStartedEvent <- IndexerFactory 
[Trace] EventAggregator: ApplicationStartedEvent -> ReconfigureLogging 
[Info] HousekeepingService: Running housecleaning tasks 
[Info] SceneMappingService: Updating Scene mappings 
Stacktrace:


Native stacktrace:

        mono() [0x49cf0c]
        mono() [0x4f2d5e]
        mono() [0x4249dd]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f8c8a970340]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.3594 
[Info] AppFolderInfo: Data directory is being overridden to [/config] 
[Debug] ProcessProvider: Found 0 processes with the name: NzbDrone.Console 
[Debug] ProcessProvider: Found 1 processes with the name: NzbDrone 
[Debug] ProcessProvider:  - [1875] NzbDrone 
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
[Debug] MigrationLogger: Took: 00:00:00.0878531 
[Info] MigrationLogger: *** Migrating data source=/config/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
[Debug] MigrationLogger: Took: 00:00:00.0065101 
[Info] Router: Application mode: Interactive 

I have tried a couple different docker containers now, and it happens in all of them. If I could fix this without having to delete config folder and starting from scratch that would be great.

Its a kernel problem.

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