linuxserver / docker-sonarr

GNU General Public License v3.0
809 stars 141 forks source link

Sonarr unable to load, seems to be crashing #258

Closed thewikki closed 1 year ago

thewikki commented 1 year ago

Is there an existing issue for this?

Current Behavior

Sonarr is crashing. Shows running, but unable to access the UI.

found the issue https://github.com/linuxserver/docker-sonarr/issues/251 and was told to write up a new bug report with my information.

Expected Behavior

should be able to access the UI for Sonarr

Steps To Reproduce

Ubuntu 20.04 with docker 23.0.1 installed via docker compose. Running on Sonarr:latest I am unable to get to the IP:8989 of the container and just shows that the container is down or is not able to connect to it. running 'docker container ls' it would show it running and up, but there was no way to access it.

I ended up rolling back to a previous image I still had to get it back up and running.

Environment

- OS:Ubuntu 20.04.5 LTS
- How docker service was installed: Docker-Compose... Currently on Docker 23.0.1
- docker was installed via digital oceans guide (https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04)

CPU architecture

x86-64

Docker creation

sonarr:
    container_name: sonarr
    hostname: sonarr
    image: linuxserver/sonarr:latest
    networks:
      - internal
    ports:
      - 8989:8989
    volumes:
      - /mnt/media:/mnt/media
      - /opt/dockerconfigs/sonarr:/config
    environment:
      - TZ=America/Denver
      - PGID=1000
      - PUID=1000
    restart: always

Container logs

from Portainer I was seeing the following... however... docker logs sonarr did not show anything concerning... Only Portainer container logs was I actually able to see this info.

    Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
=================================================================
    Native stacktrace:
=================================================================
    0x55ca9851dffb - mono : 
    0x55ca9851e38d - mono : 
    0x55ca984cb087 - mono : 
    0x55ca9851d57c - mono : 
    0x7f2d52185520 - /lib/x86_64-linux-gnu/libc.so.6 : 
    0x7f2d521d9a7c - /lib/x86_64-linux-gnu/libc.so.6 : pthread_kill
    0x7f2d52185476 - /lib/x86_64-linux-gnu/libc.so.6 : raise
    0x7f2d5216b7f3 - /lib/x86_64-linux-gnu/libc.so.6 : abort
    0x55ca9848d3c4 - mono : 
    0x55ca98772135 - mono : 
    0x55ca9878f5be - mono : 
    0x55ca9878fc73 - mono : monoeg_assertion_message
    0x55ca9870cf08 - mono : 
    0x55ca985fa9f6 - mono : 
    0x55ca98490047 - mono : 
    0x55ca9849e7b6 - mono : mono_main
    0x55ca9848d4df - mono : 
    0x7f2d5216cd90 - /lib/x86_64-linux-gnu/libc.so.6 : 
    0x7f2d5216ce40 - /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main
    0x55ca9848db1e - mono : _start
=================================================================
    Telemetry Dumper:
=================================================================
Entering thread summarizer pause from 0x139832627306624x
Finished thread summarizer pause from 0x139832627306624x.
Failed to create breadcrumb file (null)/crash_hash_0x0
Waiting for dumping threads to resume
=================================================================
    External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7f2d521d9a7c):0x7f2d521d9a6c  05 00 44 89 e2 89 ee 89 c7 b8 ea 00 00 00 0f 05  ..D.............
0x7f2d521d9a7c  41 89 c5 41 f7 dd 3d 00 f0 ff ff b8 00 00 00 00  A..A..=.........
0x7f2d521d9a8c  44 0f 46 e8 e9 6d ff ff ff 0f 1f 00 48 89 ef e8  D.F..m......H...
0x7f2d521d9a9c  10 a8 ff ff e9 29 ff ff ff 0f 1f 00 48 89 ef e8  .....)......H...
=================================================================
    Managed Stacktrace:
=================================================================
=================================================================
* Assertion at gc.c:1005, condition `is_ok (error)' not met, function:mono_gc_init_finalizer_thread, Couldn't create thread. Error 0x0 assembly:<unknown assembly> type:<unknown type> member:(null)
=================================================================
    Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
=================================================================
    Native stacktrace:
=================================================================
    0x56536b02effb - mono : 
    0x56536b02f38d - mono : 
    0x56536afdc087 - mono : 
    0x56536b02e57c - mono : 
    0x7ff51ee58520 - /lib/x86_64-linux-gnu/libc.so.6 : 
    0x7ff51eeaca7c - /lib/x86_64-linux-gnu/libc.so.6 : pthread_kill
    0x7ff51ee58476 - /lib/x86_64-linux-gnu/libc.so.6 : raise
    0x7ff51ee3e7f3 - /lib/x86_64-linux-gnu/libc.so.6 : abort
    0x56536af9e3c4 - mono : 
    0x56536b283135 - mono : 
    0x56536b2a05be - mono : 
    0x56536b2a0c73 - mono : monoeg_assertion_message
    0x56536b21df08 - mono : 
    0x56536b10b9f6 - mono : 
    0x56536afa1047 - mono : 
    0x56536afaf7b6 - mono : mono_main
    0x56536af9e4df - mono : 
    0x7ff51ee3fd90 - /lib/x86_64-linux-gnu/libc.so.6 : 
    0x7ff51ee3fe40 - /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main
    0x56536af9eb1e - mono : _start
=================================================================
    Telemetry Dumper:
=================================================================
Entering thread summarizer pause from 0x140690761797760x
Finished thread summarizer pause from 0x140690761797760x.
Failed to create breadcrumb file (null)/crash_hash_0x0
Waiting for dumping threads to resume
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thespad commented 1 year ago

Does running with seccomp=unconfined as per https://docs.linuxserver.io/faq#jammy allow it to run without crashing?

thewikki commented 1 year ago

yep... missed that part thanks

thespad commented 1 year ago

Out of interest, could you post the output of uname -a and docker info?

While the seccomp fix works for you, it's not a solution per se, it's a workaround, and having the latest docker engine should mean things just work without it, so I'm curious as to why they don't.

phpipam commented 1 year ago

Hi, have the same issue, seccomp=unconfined helped.

Here is my output if it helps:

root@malina-docker:~# uname -a
Linux malina-docker 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 GNU/Linux

root@malina-docker:~# docker info
Client:
 Debug Mode: false

Server:
 Containers: 8
  Running: 8
  Paused: 0
  Stopped: 0
 Images: 9
 Server Version: 19.03.15
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.9.0-19-amd64
 Operating System: Debian GNU/Linux 9 (stretch)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.706GiB
 Name: malina-docker
 ID: 7BCN:CMO6:AV7Y:DGBV:32DL:XDYV:GLSS:DYHS:FN4W:ZEK7:CL3G:I6DY
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support
root@malina-docker:~#