Web UI hanging on epic fail errors running on pi2

Sonarr version (exact version): 2.0.0.5301
Mono version (if Sonarr is not running on Windows): 3.10.0
OS: Raspbisn gnu/Linux 8 Jessie
Debug logs:
https://www.dropbox.com/s/77j96xmy86hl9by/sonarr.debug.0.txt?dl=0
https://www.dropbox.com/s/oebmbqk26uv413q/sonarr.debug.txt?dl=0
https://www.dropbox.com/s/fp2jyrs98klcmyx/sonarr.txt?dl=0
https://www.dropbox.com/s/120qc44o0wqbwal/sonarr.debug.1.txt?dl=0
Description of issue:
Web UI and service keep hanging with out of memory (the system is not out of memory) epic fail errors.

Pi 2 is not overclocked (read that can be a issue). Ran men check overnight, no errors found.
top - 23:21:21 up 22:51, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 138 total, 2 running, 96 sleeping, 0 stopped, 1 zombie
%Cpu(s): 0.7 us, 0.5 sy, 0.0 ni, 98.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 949460 total, 827920 used, 121540 free, 32788 buffers
KiB Swap: 102396 total, 4608 used, 97788 free. 58920 cached Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
681 pi 20 0 89708 42780 10536 S 1.4 4.5 38:40.15 deluged
838 datapli+ 20 0 75992 16608 6204 S 0.9 1.7 5:55.63 python2.7
1023 pi 20 0 94788 19132 14852 S 0.9 2.0 6:32.39 lxpanel
3681 pi 20 0 10096 3504 2796 S 0.9 0.4 0:00.05 sshd
3697 pi 20 0 5112 2408 2036 R 0.9 0.3 0:00.76 top
708 ntp 20 0 5772 3252 2812 S 0.5 0.3 0:11.57 ntpd
1174 pi 20 0 321344 24240 4652 S 0.5 2.6 4:11.94 sabnzbdplus
1 root 20 0 22948 3796 2476 S 0.0 0.4 0:09.03 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.06 kthreadd
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:+
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_+
7 root 20 0 0 0 0 S 0.0 0.0 4:16.11 ksoftirqd/0
8 root 20 0 0 0 0 I 0.0 0.0 0:23.38 rcu_sched
9 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_bh
10 root rt 0 0 0 0 S 0.0 0.0 0:00.07 migration/0
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
Nature of errors
EPIC FAIL.: Out of memory
System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) object:__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr)
at (wrapper alloc) object:AllocVector (intptr,intptr)
at Mono.Security.ASN1…ctor (System.Byte[] data) [0x00000] in :0
at Mono.Security.X509.X509Certificate.get_RSA () [0x00000] in :0
at System.Security.Cryptography.X509Certificates.X509Store.Open (OpenFlags flags) [0x00000] in :0
at System.Security.Cryptography.X509Certificates.X509Chain.get_LMRootStore () [0x00000] in :0

EPIC FAIL.: Out of memory
System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) object:__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr)
at (wrapper alloc) object:AllocVector (intptr,intptr)
at Mono.Security.ASN1…ctor (System.Byte[] data) [0x00000] in :0
at Mono.Security.X509.X509Certificate.get_RSA () [0x00000] in :0
at System.Security.Cryptography.X509Certificates.X509Store.Open (OpenFlags flags) [0x00000] in :0
at System.Security.Cryptography.X509Certificates.X509Chain.get_LMRootStore () [0x00000] in :0
Component Message Time
GlobalExceptionHandlers EPIC FAIL.: Out of memory 11:22pm
GlobalExceptionHandlers EPIC FAIL.: Out of memory 11:21pm
GlobalExceptionHandlers EPIC FAIL.: Out of memory 11:20pm
GlobalExceptionHandlers EPIC FAIL.: Out of memory 11:19pm

Not sure what to do to fix. Thanks.

mono is at 5.18, 3.10 is really old and will have certificate and tls issues anyway. maybe upgrade that and see what happens? or maybe it really is running out of memory?

Yeah, mono 3.10 is too old, you’ll want at least 4.6.

I did add 3.6 mono version but sonarr doesn’t seem to be using it… little out of my depth but newer version dose appear for raspberry pi.

3.6 or 4.6? 3.6 is older than 3.10 (the zero is significant there, it’s not a standard decimal).

It’s definitely not out of memory, top and log confirm.
I tried upedating to mono 5 via
https://www.mono-project.com/
download/stable/#download-lin-raspbian
but afterward version still says
$ mono --version
Mono JIT compiler version 3.10.0 (mono-3.10.0-branch/ce003f4 Tue Nov 25 20:18:29 UTC 2014)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

I tried the same thing with mono 4.6 a while back but sonarr also always only report 3.10.

did you see this page? specifically where you can pick the mono to use as part of the init.d script

its possible the default mono is 3.10 and yours are being installed elsewhere, not upgrading it, and you just have to swap to their location to use them?

Thank you for that, that probable would have saved some time :)… I ended up doing a complete removal of all things mono and then reboot and reinstall but that finally seemed to work. Hopefully that will resolve the stability issue. Sadly it broke jacket and sonarr and some other stuff but I think I have everything mostly recovered now :slight_smile:
Kinda scortched earth.

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