I didn’t have to wait too long, all logging stopped at 0235 this morning and the web interface doesn’t load.
Jumping on the box this morning I can see that the process is still up:
root@sonarr_1:/var/db/sonarr/logs # ps -U media
PID TT STAT TIME COMMAND
80283 ?? IsJ 10:09.95 /usr/pbi/sonarr-amd64/bin/mono --debug /usr/pbi/sonarr-amd64/share/sonarr/NzbDrone/NzbDrone.exe --data=/var/db/sonarr --nobrowser (mono-sgen)
and it is idle:
last pid: 10999; load averages: 0.13, 0.05, 0.01 6 processes: 1 running, 5 sleeping
CPU: 0.3% user, 0.0% nice, 1.2% system, 0.1% interrupt, 98.4% idle
Mem: 1957M Active, 607M Inact, 4668M Wired, 99M Cache, 223M Buf, 344M Free
ARC: 3519M Total, 527M MFU, 2337M MRU, 16K Anon, 95M Header, 560M Other
Swap: 4096M Total, 41M Used, 4055M Free, 1% Inuse
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
80283 media 13 20 0 337M 170M usem 3 10:10 0.00% mono-sgen
11697 root 6 38 0 184M 17604K usem 3 0:13 0.00% python2.7
11493 root 1 20 0 14176K 1192K nanslp 0 0:00 0.00% cron
11435 root 1 20 0 12084K 1092K select 3 0:00 0.00% syslogd
10960 root 1 20 0 17564K 2672K pause 0 0:00 0.00% tcsh
10999 root 1 20 0 16596K 2016K CPU1 1 0:00 0.00% top
The log seems to indicate it was scanning my media files at the time, the last few lines are:
15-3-18 02:35:01.9|Trace|EventAggregator|Publishing CommandExecutedEvent
15-3-18 02:35:01.9|Trace|EventAggregator|CommandExecutedEvent -> TaskManager
15-3-18 02:35:01.9|Trace|EventAggregator|CommandExecutedEvent <- TaskManager
15-3-18 02:35:01.9|Trace|EventAggregator|CommandExecutedEvent -> TaskModule
15-3-18 02:35:01.9|Trace|EventAggregator|CommandExecutedEvent <- TaskModule
15-3-18 02:35:01.9|Trace|CommandExecutor|CleanMediaFileDb <- MediaFileTableCleanupService [00:00:00.0317960]
15-3-18 02:35:01.9|Debug|DiskScanService|Scanning '/media/TV/The Real Housewives of Beverly Hills' for video files
15-3-18 02:35:01.9|Trace|HttpClient|Res: [HEAD] http://thetvdb.com/banners/posters/258107-4.jpg : 200.OK (37 ms)
15-3-18 02:35:01.9|Debug|MediaCoverService|Resizing Poster-500 for [258107][The Fall]
15-3-18 02:35:01.9|Trace|DiskProviderBase|Deleting file: /var/db/sonarr/MediaCover/58/poster-500.jpg
15-3-18 02:35:01.9|Debug|MediaCoverService|Couldn't resize media cover Poster-500 for [258107][The Fall], using full size image instead.
15-3-18 02:35:01.9|Debug|MediaCoverService|Resizing Poster-250 for [258107][The Fall]
15-3-18 02:35:01.9|Trace|DiskProviderBase|Deleting file: /var/db/sonarr/MediaCover/58/poster-250.jpg
15-3-18 02:35:01.9|Debug|DiskScanService|95 video files were found in /media/TV/The Real Housewives of Beverly Hills
15-3-18 02:35:01.9|Debug|MediaCoverService|Couldn't resize media cover Poster-250 for [258107][The Fall], using full size image instead.
15-3-18 02:35:01.9|Trace|EventAggregator|Publishing MediaCoversUpdatedEvent
15-3-18 02:35:01.9|Trace|EventAggregator|MediaCoversUpdatedEvent -> MetadataService
15-3-18 02:35:01.9|Debug|CleanMetadataService|Cleaning missing metadata files for series: The Fall
15-3-18 02:35:01.9|Trace|DiskScanService|Finished getting episode files for: [196741][The Real Housewives of Beverly Hills] [00:00:00.0329255]
15-3-18 02:35:02.0|Debug|GlobalExceptionHandlers|Minor Fail: An exception was thrown by the type initializer for System.Drawing.GDIPlus
System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in /usr/wrkdirprefix/usr/ports/lang/mono/work/mono-3.10.0/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:127
--- End of inner exception stack trace ---
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00077] in /usr/wrkdirprefix/usr/ports/lang/mono/work/mono-3.10.0/mcs/class/System.Drawing/System.Drawing/Image.cs:290
at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean useIcm) [0x00006] in /usr/wrkdirprefix/usr/ports/lang/mono/work/mono-3.10.0/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:113
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream,bool)
at ImageResizer.ImageBuilder.DecodeStream (System.IO.Stream s, ImageResizer.ResizeSettings settings, System.String optionalPath) [0x00000] in <filename unknown>:0
at ImageResizer.ImageBuilder.LoadImage (System.Object source, ImageResizer.ResizeSettings settings, Boolean restoreStreamPos) [0x00000] in <filename unknown>:0
15-3-18 02:35:02.0|Debug|GlobalExceptionHandlers|Minor Fail: An exception was thrown by the type initializer for System.Drawing.GDIPlus
System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in /usr/wrkdirprefix/usr/ports/lang/mono/work/mono-3.10.0/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:127
--- End of inner exception stack trace ---
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00077] in /usr/wrkdirprefix/usr/ports/lang/mono/work/mono-3.10.0/mcs/class/System.Drawing/System.Drawing/Image.cs:290
at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean useIcm) [0x00006] in /usr/wrkdirprefix/usr/ports/lang/mono/work/mono-3.10.0/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:113
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream,bool)
at ImageResizer.ImageBuilder.DecodeStream (System.IO.Stream s, ImageResizer.ResizeSettings settings, System.String optionalPath) [0x00000] in <filename unknown>:0
at ImageResizer.ImageBuilder.LoadImage (System.Object source, ImageResizer.ResizeSettings settings, Boolean restoreStreamPos) [0x00000] in <filename unknown>:0
The gdiplus error appears frequently throughout the log and is not always the last thing to appear there when it freezes. I added the --debug switch to mono last night but I’m no sure where I’d find the mono logs if you need them.
Oh, mono version is:
root@sonarr_1:/var/db/sonarr/logs # mono --version
Mono JIT compiler version 3.10.0 (tarball Mon Jan 26 02:53:37 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
and Sonarr is up to date with the develop branch.