RPi3B rev1.2 locking up / freezing when Radarr is for scraping movie info

Hello all,

I’m not sure if this is related to the network usage, or some software bug, but after scanning all my movies in Radarr, my Pi locks up and all web interfaces are unavailable (not responding), connecting to SSH just ends up with no feedback from the client (No time-out, it manages to reach the Pi, but the cursor blinks, doesn’t ask for a password or gives any feeback) and at this point, the only solution is to unplug the Pi and boot back up, where I then try to change some settings quickly before it locks up again and test some more. All that hard unplugging can’t be good and is scaring me a little though.

I saw lots of similar threads online, some said it was the ethernet adapter causing this issue, others said it was the wifi card, others said it was a threading issue, most said it was a power supply issue (undervoltage). It does feel for my case however that something is overwhelming the pie when Radarr is doing the scraping, but I suspect the network. It can’t be an SD card problem as I’m not using any (dietpi is installed on a Kingston SSDnow 64GB SATA drive).

Here’s everything I tried:

  • 3 different power supplies, one of them an official one from SparkFun (5v-2A and 5v-3A)
  • Checked for undervoltage warnings in dmesg but didn’t see any such message
  • Underclocked the Pi in dietpi-config to 1000MHz (as well as RAM clock and core clock)
  • Plugged my USB SSD using a Y cable (so it has power coming from a different power supply)
  • Used only ethernet and disabled wifi
  • Used only wifi and disabled ethernet
  • Used dropbear instead of openSSH
  • Did not connect to SSH at all to see if it was the cause
  • Set the service priority of Radarr to the lowest

Here’s the content of journalctl but I can’t see any issues there except from a few sqlite errors:

May 01 20:27:33 Servarr Prowlarr[442]: [Info] CommandExecutor: Starting 3 threads for tasks.
May 01 20:27:39 Servarr Radarr[501]: [Info] CommandExecutor: Starting 2 threads for tasks.
May 01 20:27:40 Servarr Bazarr[571]: 2022-05-01 20:27:40,584 - root                             (7ec17c21c0) :  INFO (signalr_client:104) - BAZARR trying to connect to Sonarr SignalR feed...
May 01 20:27:40 Servarr Bazarr[571]: 2022-05-01 20:27:40,586 - root                             (7f8114e040) :  INFO (server:37) - BAZARR is started and waiting for request on http://0.0.0.0:6767
May 01 20:27:43 Servarr Prowlarr[442]: [Info] Microsoft.Hosting.Lifetime: Application started. Press Ctrl+C to shut down.
May 01 20:27:43 Servarr Prowlarr[442]: [Info] Microsoft.Hosting.Lifetime: Hosting environment: Production
May 01 20:27:43 Servarr Prowlarr[442]: [Info] Microsoft.Hosting.Lifetime: Content root path: /
May 01 20:27:43 Servarr Prowlarr[442]: SQLite error (1): near "SHOW": syntax error in "SHOW server_version"
May 01 20:27:46 Servarr Bazarr[571]: Exception in thread Thread-2:
May 01 20:27:46 Servarr Bazarr[571]: Traceback (most recent call last):
May 01 20:27:46 Servarr Bazarr[571]:   File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
May 01 20:27:46 Servarr Bazarr[571]:     self.run()
May 01 20:27:46 Servarr Bazarr[571]:   File "/usr/lib/python3.9/threading.py", line 892, in run
May 01 20:27:47 Servarr Bazarr[571]:     self._target(*self._args, **self._kwargs)
May 01 20:27:47 Servarr Bazarr[571]:   File "/opt/bazarr/bazarr/signalr_client.py", line 107, in start
May 01 20:27:47 Servarr Bazarr[571]:     self.connection.start()
May 01 20:27:47 Servarr Bazarr[571]:   File "/opt/bazarr/bazarr/../libs/signalrcore/hub/base_hub_connection.py", line 44, in start
May 01 20:27:47 Servarr Bazarr[571]:     return self.transport.start()
May 01 20:27:47 Servarr Bazarr[571]:   File "/opt/bazarr/bazarr/../libs/signalrcore/transport/websockets/websocket_transport.py", line 62, in start
May 01 20:27:47 Servarr Bazarr[571]:     self.negotiate()
May 01 20:27:47 Servarr Bazarr[571]:   File "/opt/bazarr/bazarr/../libs/signalrcore/transport/websockets/websocket_transport.py", line 99, in negotiate
May 01 20:27:47 Servarr Bazarr[571]:     raise HubError(response.status_code)\
May 01 20:27:47 Servarr Bazarr[571]: signalrcore.hub.errors.UnAuthorizedHubError
May 01 20:27:47 Servarr jellyfin[495]: [20:27:47] [INF] Loaded plugin: OMDb 10.7.7.0
May 01 20:27:47 Servarr jellyfin[495]: [20:27:47] [INF] Loaded plugin: MusicBrainz 10.7.7.0
May 01 20:27:47 Servarr jellyfin[495]: [20:27:47] [INF] Loaded plugin: AudioDB 10.7.7.0
May 01 20:27:49 Servarr jellyfin[495]: [20:27:49] [INF] Kestrel listening on Any IP4 Address
May 01 20:27:50 Servarr Sonarr[498]: [Warn] MonoDebugCheck: Mono is not running with --debug switch
May 01 20:27:50 Servarr systemd[1]: data-media-series.automount: Got automount request for /data/media/series, triggered by 597 (Thread Pool Wor)
May 01 20:27:50 Servarr systemd[1]: Mounting /data/media/series...
May 01 20:27:50 Servarr kernel: FS-Cache: Netfs 'cifs' registered for caching
May 01 20:27:51 Servarr kernel: Key type cifs.spnego registered
May 01 20:27:51 Servarr kernel: Key type cifs.idmap registered
May 01 20:27:51 Servarr kernel: CIFS: Attempting to mount \\192.168.0.1\tv
May 01 20:27:51 Servarr systemd[1]: Mounted /data/media/series.
May 01 20:27:58 Servarr jellyfin[495]: [20:27:58] [INF] Running startup tasks
May 01 20:28:00 Servarr jellyfin[495]: [20:28:00] [INF] Daily trigger for Extract Chapter Images set to fire at 05/02/2022 02:00, which is 5:31:59.5882813 from now.
May 01 20:28:01 Servarr jellyfin[495]: [20:28:01] [INF] Found ffmpeg version 4.4.1
May 01 20:28:02 Servarr jellyfin[495]: [20:28:02] [INF] Available decoders: ["h264", "hevc", "mpeg2video", "mpeg4", "msmpeg4", "aac", "ac3", "flac", "mp3"]
May 01 20:28:02 Servarr jellyfin[495]: [20:28:02] [INF] Available encoders: ["libx264", "h264_v4l2m2m", "libx265", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"]
May 01 20:28:02 Servarr jellyfin[495]: [20:28:02] [INF] Available hwaccel types: ["vdpau", "drm"]
May 01 20:28:02 Servarr jellyfin[495]: [20:28:02] [INF] FFmpeg: SetByArgument: /usr/lib/jellyfin-ffmpeg/ffmpeg
May 01 20:28:02 Servarr jellyfin[495]: [20:28:02] [INF] ServerId: 2d67db4925434c2b8239e5eb65e4cb46
May 01 20:28:03 Servarr jellyfin[495]: [20:28:03] [INF] StartupTrigger fired for task: Update Plugins
May 01 20:28:03 Servarr jellyfin[495]: [20:28:03] [INF] Queuing task PluginUpdateTask
May 01 20:28:03 Servarr jellyfin[495]: [20:28:03] [INF] Executing Update Plugins
May 01 20:28:05 Servarr jellyfin[495]: [20:28:05] [INF] Registering publisher for urn:schemas-upnp-org:device:MediaServer:1 on 192.168.0.152/24
May 01 20:28:05 Servarr jellyfin[495]: [20:28:05] [INF] Executed all pre-startup entry points in 0:00:02.5330114
May 01 20:28:05 Servarr jellyfin[495]: [20:28:05] [INF] Core startup complete
May 01 20:28:07 Servarr Radarr[501]: [Info] Microsoft.Hosting.Lifetime: Application started. Press Ctrl+C to shut down.
May 01 20:28:07 Servarr Radarr[501]: [Info] Microsoft.Hosting.Lifetime: Hosting environment: Production
May 01 20:28:07 Servarr Radarr[501]: [Info] Microsoft.Hosting.Lifetime: Content root path: /
May 01 20:28:07 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Grizzly Man
May 01 20:28:07 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Gringo
May 01 20:28:07 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Groundhog Day
May 01 20:28:08 Servarr jellyfin[495]: [20:28:08] [INF] Update Plugins Completed after 0 minute(s) and 4 seconds
May 01 20:28:08 Servarr jellyfin[495]: [20:28:08] [INF] Executed all post-startup entry points in 0:00:02.5242219
May 01 20:28:08 Servarr jellyfin[495]: [20:28:08] [INF] Startup complete 0:01:07.6578951
May 01 20:28:08 Servarr jellyfin[495]: [20:28:08] [INF] ExecuteQueuedTasks
May 01 20:28:15 Servarr systemd[1]: data-media-documentaries.automount: Got automount request for /data/media/documentaries, triggered by 1593 (.NET ThreadPool)
May 01 20:28:15 Servarr systemd[1]: Mounting /data/media/documentaries...
May 01 20:28:15 Servarr kernel: CIFS: Attempting to mount \\192.168.0.1\tv
May 01 20:28:15 Servarr systemd[1]: Mounted /data/media/documentaries.
May 01 20:28:15 Servarr systemd[1]: data-media-movies.automount: Got automount request for /data/media/movies, triggered by 1593 (.NET ThreadPool)
May 01 20:28:15 Servarr systemd[1]: Mounting /data/media/movies...
May 01 20:28:15 Servarr kernel: CIFS: Attempting to mount \\192.168.0.1\xbmc
May 01 20:28:15 Servarr kernel: FS-Cache: Duplicate cookie detected
May 01 20:28:15 Servarr kernel: FS-Cache: O-cookie c=00000006 [p=00000004 fl=222 nc=0 na=1]
May 01 20:28:15 Servarr kernel: FS-Cache: O-cookie d=000000003a634d7c{CIFS.super} n=00000000444bb039
May 01 20:28:15 Servarr kernel: FS-Cache: O-key=[4] '78626d63'
May 01 20:28:15 Servarr kernel: FS-Cache: N-cookie c=00000007 [p=00000004 fl=2 nc=0 na=1]
May 01 20:28:15 Servarr kernel: FS-Cache: N-cookie d=000000003a634d7c{CIFS.super} n=00000000ab045dd0
May 01 20:28:15 Servarr kernel: FS-Cache: N-key=[4] '78626d63'
May 01 20:28:15 Servarr systemd[1]: Mounted /data/media/movies.
May 01 20:28:19 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Gringo (2018)][tt3721964, 340022] https://image.tmdb.org/t/p/original/dxeVPklFwng2IowqRPNI4od6aXv.jpg
May 01 20:28:19 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Grizzly Man (2005)][tt0427312, 501] https://image.tmdb.org/t/p/original/nXIV2qGK9KkdkaOTzrpK87CuAGC.jpg
May 01 20:28:19 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Gringo
May 01 20:28:19 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Grizzly Man
May 01 20:28:19 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Groundhog Day (1993)][tt0107048, 137] https://image.tmdb.org/t/p/original/gCgt1WARPZaXnq523ySQEUKinCs.jpg
May 01 20:28:20 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Grizzly Man (2005)][tt0427312, 501] https://image.tmdb.org/t/p/original/hAlB9MaamrP1eDhGA4AkjSAPxAf.jpg
May 01 20:28:20 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Gringo (2018)][tt3721964, 340022] https://image.tmdb.org/t/p/original/cYE68RGfVDk3u435mKEVb8jD1GT.jpg
May 01 20:28:20 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Groundhog Day (1993)][tt0107048, 137] https://image.tmdb.org/t/p/original/oT9diLGD1cgPdvkxqHIJcuSXKUT.jpg
May 01 20:28:20 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Groundhog Day
May 01 20:28:30 Servarr Radarr[501]: SQLite error (261): database is locked in "PRAGMA cache_size=-20000"
May 01 20:28:30 Servarr Radarr[501]: [Info] MovieService: Assigning file [Groundhog Day (1993).avi] to movie [[Groundhog Day (1993)][tt0107048, 137]]
May 01 20:28:30 Servarr Radarr[501]: [Info] MovieService: Assigning file [Gringo (2018).mkv] to movie [[Gringo (2018)][tt3721964, 340022]]
May 01 20:28:30 Servarr Radarr[501]: [Info] MovieService: Assigning file [Grizzly Man (2005).avi] to movie [[Grizzly Man (2005)][tt0427312, 501]]
May 01 20:28:30 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Groundhog Day
May 01 20:28:30 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Grizzly Man
May 01 20:28:30 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Gringo
May 01 20:28:30 Servarr Radarr[501]: [Info] MovieScannedHandler: [Gringo] was recently added, performing post-add actions
May 01 20:28:30 Servarr Radarr[501]: [Info] MovieScannedHandler: [Groundhog Day] was recently added, performing post-add actions
May 01 20:28:30 Servarr Radarr[501]: [Info] MovieScannedHandler: [Grizzly Man] was recently added, performing post-add actions
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 1 existing subtitle files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:28:31 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:28:32 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Grown Ups 2
May 01 20:28:32 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Growing Up Smith
May 01 20:28:32 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Grown Ups
May 01 20:28:33 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Grown Ups 2 (2013)][tt2191701, 109418] https://image.tmdb.org/t/p/original/5vLeJchL3zosBj10CJP1h54xyBs.jpg
May 01 20:28:33 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Grown Ups 2
May 01 20:28:33 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Growing Up Smith (2017)][tt1105355, 426469] https://image.tmdb.org/t/p/original/ncALkAajnctju0CYKH4bFm40QJD.jpg
May 01 20:28:33 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Grown Ups 2 (2013)][tt2191701, 109418] https://image.tmdb.org/t/p/original/epVPiaRsLhJMinNRWUFWMudZ9ba.jpg
May 01 20:28:34 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Growing Up Smith
May 01 20:28:35 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Growing Up Smith (2017)][tt1105355, 426469] https://image.tmdb.org/t/p/original/1ynsTXScpFPuvYqwAledg8RFe3p.jpg
May 01 20:28:35 Servarr Radarr[501]: [Info] MovieService: Assigning file [Growing Up Smith (2015).mkv] to movie [[Growing Up Smith (2017)][tt1105355, 426469]]
May 01 20:28:35 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Growing Up Smith
May 01 20:28:35 Servarr Radarr[501]: [Info] MovieScannedHandler: [Growing Up Smith] was recently added, performing post-add actions
May 01 20:28:35 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:28:35 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:28:35 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:28:35 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:28:36 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Guardians of the Galaxy
May 01 20:28:42 Servarr Radarr[501]: [Info] MovieService: Assigning file [Grown Ups 2 (2013).mp4] to movie [[Grown Ups 2 (2013)][tt2191701, 109418]]
May 01 20:28:42 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Grown Ups 2
May 01 20:28:42 Servarr Radarr[501]: [Info] MovieScannedHandler: [Grown Ups 2] was recently added, performing post-add actions
May 01 20:28:42 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:28:42 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:28:42 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:28:42 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:28:45 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Grown Ups (2010)][tt1375670, 38365] https://image.tmdb.org/t/p/original/cQGM5k1NtU85n4TUlrOrwijSCcm.jpg
May 01 20:28:45 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Grown Ups
May 01 20:28:46 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Grown Ups (2010)][tt1375670, 38365] https://image.tmdb.org/t/p/original/kEpK8oY9UfzOrKXPyfZ6NMea2EH.jpg
May 01 20:28:49 Servarr Radarr[501]: [Info] MovieService: Assigning file [Grown Ups (2010).avi] to movie [[Grown Ups (2010)][tt1375670, 38365]]
May 01 20:28:49 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Grown Ups
May 01 20:28:49 Servarr Radarr[501]: [Info] MovieScannedHandler: [Grown Ups] was recently added, performing post-add actions
May 01 20:28:49 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:28:49 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:28:49 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:28:49 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:28:50 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Guardians of the Galaxy Vol. 2
May 01 20:28:54 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Gulliver's Travels
May 01 20:29:00 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Guardians of the Galaxy (2014)][tt2015381, 118340] https://image.tmdb.org/t/p/original/r7vmZjiyZw9rpJMQJdXpjgiCOk9.jpg
May 01 20:29:00 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Guardians of the Galaxy
May 01 20:29:01 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Guardians of the Galaxy (2014)][tt2015381, 118340] https://image.tmdb.org/t/p/original/2UFxrUHVuSK3Tth7DvQQlF4mGTd.jpg
May 01 20:29:05 Servarr Radarr[501]: [Info] MovieService: Assigning file [Guardians of the Galaxy (2014).mp4] to movie [[Guardians of the Galaxy (2014)][tt2015381, 118340]]
May 01 20:29:05 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Guardians of the Galaxy
May 01 20:29:05 Servarr Radarr[501]: [Info] MovieScannedHandler: [Guardians of the Galaxy] was recently added, performing post-add actions
May 01 20:29:06 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:29:06 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:29:06 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:29:06 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:29:08 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Gun
May 01 20:29:10 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Gun (2010)][tt1560954, 51250] https://image.tmdb.org/t/p/original/u9dUF1YjDPL5OOlR6GbeYcvu6Q0.jpg
May 01 20:29:10 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Gun
May 01 20:29:11 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Gun (2010)][tt1560954, 51250] https://image.tmdb.org/t/p/original/cvHvamW0dggql9Myw894S4xaKEe.jpg
May 01 20:29:13 Servarr Radarr[501]: [Info] MovieService: Assigning file [Gun (2010).avi] to movie [[Gun (2010)][tt1560954, 51250]]
May 01 20:29:14 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Gun
May 01 20:29:14 Servarr Radarr[501]: [Info] MovieScannedHandler: [Gun] was recently added, performing post-add actions
May 01 20:29:14 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:29:14 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:29:14 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:29:14 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:29:16 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Gun Woman
May 01 20:29:22 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Gun Woman
May 01 20:29:23 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Gun Woman (2014)][tt3141912, 258750] https://image.tmdb.org/t/p/original/3St85rezNW0xoTdijB38TQ3qxMv.jpg
May 01 20:29:25 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Gulliver's Travels
May 01 20:29:26 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Gulliver's Travels (2010)][tt1320261, 38745] https://image.tmdb.org/t/p/original/tazLyiF4q2w07jXjg4z4CQZgvY.jpg
May 01 20:29:35 Servarr Radarr[501]: [Info] MovieService: Assigning file [Gun Woman (2014).mp4] to movie [[Gun Woman (2014)][tt3141912, 258750]]
May 01 20:29:46 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Gun Woman
May 01 20:29:46 Servarr Radarr[501]: [Info] MovieScannedHandler: [Gun Woman] was recently added, performing post-add actions
May 01 20:29:46 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Gun Woman (2014)][tt3141912, 258750] https://image.tmdb.org/t/p/original/gDSkgz56Dg0T5SXBC0HrmXO6AHl.jpg
May 01 20:29:46 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Gulliver's Travels (2010)][tt1320261, 38745] https://image.tmdb.org/t/p/original/1EnX8qIJUYv6mG0Asub6Om8158z.jpg
May 01 20:29:46 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:29:47 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:29:47 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:29:47 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:29:47 Servarr Radarr[501]: [Info] MovieService: Assigning file [Gulliver's Travels (2010).mp4] to movie [[Gulliver's Travels (2010)][tt1320261, 38745]]
May 01 20:29:47 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Guardians of the Galaxy Vol. 2
May 01 20:29:47 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Gulliver's Travels
May 01 20:29:47 Servarr Radarr[501]: [Info] MovieScannedHandler: [Gulliver's Travels] was recently added, performing post-add actions
May 01 20:29:48 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:29:48 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:29:48 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:29:48 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:29:48 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Guns Akimbo
May 01 20:29:50 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Guardians of the Galaxy Vol. 2 (2017)][tt3896198, 283995] https://image.tmdb.org/t/p/original/y4MBh0EjBlMuOzv9axM4qJlmhzz.jpg
May 01 20:29:54 Servarr Radarr[501]: [Info] MovieService: Assigning file [Guardians of the Galaxy Vol. 2 (2017).mkv] to movie [[Guardians of the Galaxy Vol. 2 (2017)][tt3896198, 283995]]
May 01 20:29:54 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Guardians of the Galaxy Vol. 2
May 01 20:29:54 Servarr Radarr[501]: [Info] MovieScannedHandler: [Guardians of the Galaxy Vol. 2] was recently added, performing post-add actions
May 01 20:29:54 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:29:54 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:29:54 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:29:54 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:29:54 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Hacksaw Ridge
May 01 20:29:55 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Hairspray
May 01 20:29:56 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Guardians of the Galaxy Vol. 2 (2017)][tt3896198, 283995] https://image.tmdb.org/t/p/original/xpFIaHL7Rm5kKLcEPDEMpjh4Xq6.jpg
May 01 20:30:05 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Hairspray (2007)][tt0427327, 2976] https://image.tmdb.org/t/p/original/cOE6rQJxPXc0Tp1VFfg5bJh3blV.jpg
May 01 20:30:05 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Hairspray
May 01 20:30:06 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Hairspray (2007)][tt0427327, 2976] https://image.tmdb.org/t/p/original/oO55Z71apssUy4Cf0obsK2kX3oK.jpg
May 01 20:30:06 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Guns Akimbo (2020)][tt6902676, 457335] https://image.tmdb.org/t/p/original/2kNnf7BwRCEm4bcFkdiE0T4U25s.jpg
May 01 20:30:06 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Guns Akimbo
May 01 20:30:07 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Guns Akimbo (2020)][tt6902676, 457335] https://image.tmdb.org/t/p/original/fssCO59bqU5f0zngeYKex0g1vyb.jpg
May 01 20:30:07 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Hacksaw Ridge (2016)][tt2119532, 324786] https://image.tmdb.org/t/p/original/fTuxNlgEm04PPFkr1xfK94Jn8BW.jpg
May 01 20:30:07 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Hacksaw Ridge
May 01 20:30:07 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Hacksaw Ridge (2016)][tt2119532, 324786] https://image.tmdb.org/t/p/original/rshlQ6LfPRSWFhpGL4s5ZkIPR51.jpg
May 01 20:30:08 Servarr Radarr[501]: [Info] MovieService: Assigning file [Hacksaw Ridge (2016).mkv] to movie [[Hacksaw Ridge (2016)][tt2119532, 324786]]
May 01 20:30:08 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Hacksaw Ridge
May 01 20:30:08 Servarr Radarr[501]: [Info] MovieScannedHandler: [Hacksaw Ridge] was recently added, performing post-add actions
May 01 20:30:08 Servarr Radarr[501]: [Info] MovieService: Assigning file [Guns Akimbo (2019).mkv] to movie [[Guns Akimbo (2020)][tt6902676, 457335]]
May 01 20:30:08 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Guns Akimbo
May 01 20:30:08 Servarr Radarr[501]: [Info] MovieScannedHandler: [Guns Akimbo] was recently added, performing post-add actions
May 01 20:30:08 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:30:08 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:30:08 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:30:08 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:30:09 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:30:09 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:30:09 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:30:09 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:30:09 Servarr Radarr[501]: [Info] MovieService: Assigning file [Hairspray (2007).avi] to movie [[Hairspray (2007)][tt0427327, 2976]]
May 01 20:30:09 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Hairspray
May 01 20:30:09 Servarr Radarr[501]: [Info] MovieScannedHandler: [Hairspray] was recently added, performing post-add actions
May 01 20:30:09 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Half Baked
May 01 20:30:10 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:30:10 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:30:10 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:30:10 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:30:11 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Hall Pass
May 01 20:30:11 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Half Brothers
May 01 20:30:15 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Half Brothers (2020)][tt10515926, 652962] https://image.tmdb.org/t/p/original/Apl0WFx61trVOoxvc8Erd5cbP8X.jpg
May 01 20:30:16 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Half Brothers
May 01 20:30:17 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Half Brothers (2020)][tt10515926, 652962] https://image.tmdb.org/t/p/original/zHNJC5eWKbJZ9oIl8C0JMvc5r8c.jpg
May 01 20:30:18 Servarr Radarr[501]: [Info] MovieService: Assigning file [Half Brothers (2020).mkv] to movie [[Half Brothers (2020)][tt10515926, 652962]]
May 01 20:30:18 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Half Brothers
May 01 20:30:18 Servarr Radarr[501]: [Info] MovieScannedHandler: [Half Brothers] was recently added, performing post-add actions
May 01 20:30:18 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:30:18 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 1 existing subtitle files
May 01 20:30:18 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:30:18 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:30:18 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Poster for [Half Baked (1998)][tt0120693, 9490] https://image.tmdb.org/t/p/original/14TmEac4bquNaEld9t0uIliYoKE.jpg
May 01 20:30:18 Servarr Radarr[501]: [Info] DiskScanService: Scanning disk for Half Baked
May 01 20:30:19 Servarr Radarr[501]: SQLite error (5): database is locked in "PRAGMA cache_size=-20000"
May 01 20:30:20 Servarr Radarr[501]: [Info] MediaCoverService: Downloading Fanart for [Half Baked (1998)][tt0120693, 9490] https://image.tmdb.org/t/p/original/lnE1J6FLYDoP0rg6NtYqUOfoP1t.jpg
May 01 20:30:21 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Seoul Raiders
May 01 20:30:22 Servarr Radarr[501]: [Info] MovieService: Assigning file [Half Baked (1998).avi] to movie [[Half Baked (1998)][tt0120693, 9490]]
May 01 20:30:22 Servarr Radarr[501]: [Info] DiskScanService: Completed scanning disk for Half Baked
May 01 20:30:22 Servarr Radarr[501]: [Info] MovieScannedHandler: [Half Baked] was recently added, performing post-add actions
May 01 20:30:22 Servarr Radarr[501]: [Info] ExistingMetadataImporter: Found 0 existing metadata files
May 01 20:30:22 Servarr Radarr[501]: [Info] ExistingSubtitleImporter: Found 0 existing subtitle files
May 01 20:30:22 Servarr Radarr[501]: [Info] ExistingOtherExtraImporter: Found 0 existing other extra files
May 01 20:30:22 Servarr Radarr[501]: [Info] ExistingExtraFileService: Found 0 extra files
May 01 20:30:23 Servarr Radarr[501]: [Info] RefreshMovieService: Updating info for Hancock

Here’s some links I consulted that seemed related but didn’t fix my issue (Just in case it might be useful)

Hope it rings a bell to someone!

Thanks!

did you tried watching CPU/memory usage while scraping movie info with Radarr? Can be done using htop. Does it reach memory or CPU limits?

There are also a database syntax error and two lock errors reported by SQLite. You you have a database backup (AFAIK autonatically created by Radarr) to test or is it an option to remove/reset the database (which means movies etc have to be re-added for tracking)?

Thanks for your answer friend! Checked htop and top. At the beginning shortly after booting, the usage was very high (All cores at 100% in htop, 160%-200% in top), then things slowed down a bit and I suppose cronjobs and scheduled tasks started at which point it froze. Here’s how it looked like at the freeze time:

htop


top

Actually, here’s some further details how it happened:
1-At first the RPi was stable and didn’t really freeze (I think it might have happened once still) it would only freeze when I tried to import movies. After unplugging, none of the movies were imported and the RPi would be stable again, so there would be no need for restoring a DB backup as no change seemed to have happened before it froze.
2-After several retries (when I was trying with different power supplies, cables, etc), one time I restarted after a freeze and the movies had all been imported, so it was now scraping for all the movies’ info. At that point, the RPi stays on for a few minutes and automatically freezes without me needing to to anything.

So a database backup would only go back at first step and it would freeze up again the moment I tried to import movies.

EDIT: I scrapped the database completely anyways to test, froze again when importing movies.

I’m getting the same error on a brand new install even … server with 64gig ram and Intel(R) Core™ i7-8700K CPU @ 3.70GHz. Database errors left and right like:

SQLite error (1): near "SHOW": syntax error in "SHOW server_version"

I just upgraded radarr … going to try downgrading and see if that’s the issue.

your memory is nearly complete exhausted. Probably your system starts to use SWAP, which would mean increase I/O dramatically. This probably feels like a system freezing as it is that slow while using SWAP.

Is there a solution to that usually? Feels unusual that we can use a software on DietPi that can’t fulfill its purpose because it runs out of memory during the first thing you do right after installing Radarr (import movies). I’m using a SSD, no sd card so I would have imagined SWAP would not be that bad.

Would a solution be for example to force garbage collect more often? Or to insert an sd card to use solely as SWAP (if that’s even possible)?

Well your system is having 1GB of memory only. But for what you are doing it might be to small.

Feels unusual that we can use a software on DietPi that can’t fulfill its purpose because it runs out of memory during the first thing you do right after installing Radarr (import movies).

Memory usage is depending on what you are doing on your SBC. In your case memory is used by Jellyfin, Radarr, Sonarr, Bazarr and Prowlarr. You can see the memory consumption per process using htop.

Or to insert an sd card to use solely as SWAP

This would be an option you should not consider as it might kill the SD card soon or later due to high amount of I/O.

m using a SSD, no sd card so I would have imagined SWAP would not be that bad.

Well all I/O operation are going to the same USB bus/port, which might not be the fastest one on your RPi3B.

Is there a solution to that usually?

There is no global solution but you could try to stop other apps like Sonarr, Bazarr, Prowlarr and Jellyfin. This should free up your memory quite a lot.

Btw your Radarr is using Mono while on RPi3 (ARMv7 resp. ARMv8 depending on image) the .NET based version should have been installed. When did you install it (on which DietPi version at time of installation)? AFAIK the .NET core version requires less memory and performs better.

There is no global solution but you could try to stop other apps like Sonarr, Bazarr, Prowlarr and Jellyfin. This should free up your memory quite a lot.

Thanks for all the answers! I actually did more research on High RAM usage locking up the Pi and saw a lot of threads on Github where you were also taking part, I guess a lot of people had similar issues :stuck_out_tongue:

I restarted the Pi and looked at the memory slowly going up with htop, I’m wondering if there’s a bug with radarr, a memory leak or something. Once a movie is scraped, it should be cleared from memory so maybe I take it to their Github and see if that’s normal.

Another thing I noticed however is that as I saw the memory climbing, I used another SSH window to launch dietpi-launcher and disable the radarr service. However the memory usage never went fully back down:


And while lookin at top, barely any memory is used. Could it be dietpi has trouble clearing unused memory?

I didn’t install .net by myself, it was installed automatically when I installed Radarr/Sonarr etc about 2 weeks ago using dietpi-software I guess. Can you install Radarr by specifying to use .Net core instead?

Just to avoid a misunderstanding. Dietpi is not an own OS. It is a set of bash script on top of a Debian base image. In case of Raspberry PI, we are using Raspberry OS as base.

Btw: could you share some more information on your system

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

Ah ok! I thought you guys branched from Debian, got it!

Required Information

  • DietPi version (I updated 2 times since original install 1-2 weeks ago, after dietpi notified me of an update)
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=4
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version
    bullseye 0
  • Kernel version
    Linux Servarr 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
  • SBC model
    RPi 3 Model B (aarch64) ← It’s the rev 1.2 as I put in my title

I think dietPi is already using the .NET Core version, no? When editing the radarr service via dietpi-services, I see the radarr.service file is already executing Radarr directly:

ExecStart=/opt/radarr/Radarr -nobrowser -data=/mnt/dietpi_userdata/radarr

Instead of the mono way:

/usr/bin/mono /opt/Radarr/Radarr.exe

So it looks like only Sonarr uses mono still, .netcore will be for v4:
https://github.com/Sonarr/Sonarr/issues/948#issuecomment-1047439378

Ah you’re right, I didn’t see that Mono drives only Sonarr in your case. Jep that is still correct, Sonarr v4 will have a .NET version AFAIK.

And ARMv7 + ARMv8 images for RPi use Debian, not Raspbian as base APT repository, that is right as well.

Ok I think I figured it out. I think that during movie scanning, the movies to scrape info for a put in a queue and they are API requests are then sent a certain number at a time so if you import your movies a little at a time, it works out.

What I did was:

  • Kill all other services (Sonarr, Bazarr, Prowlarr, etc) to have the most memory possibly available for Radarr
  • Monitor the memory usage during imports via htop
  • After an import, the memory doesn’t go back to what it was (RAM usage eventually reaches 60% after a few import, while it was 20% at boot) so I don’t know if there are memory leaks or bad code somewhere but at this point, you just have to reboot your RPi to clear the leaked memory then import the next batch of movies.

It seems like this worked well until I after one of the reboots, dietpi said there were updates available so I ran apt update, my RPi froze again but this time permanently and won’t start anymore at all, even for a few seconds like it would with the out-of-memory freezes. If I connect a screen I see the message:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
Google has not been helpful to find a solution for that, can’t even find a result that explains why it’s doing that.

So if you import movies with Radarr using this technique, keep in mind that it’s possible it will freeze permanently and you have to re-flash a new image on your HDD/sdcard to start over. (As I’m not sure if the apt-update caused the permanent freeze or it’s radarr that killed it somehow)

You system memory is simply insufficient for this amount and type of services to run. When memory swapping starts along with high CPU usage and disk I/O aside of swapping, I’m not surprised that it freezes. Btw you can reset memory usage of Radarr by restarting it’s service instead of the whole server:

systemctl restart radarr

Of course when the system freezes in the middle of a critical APT upgrade, e.g. a kernel upgrade, this can make your system unbootable.

It may be wise to have download servers (qBittorrent, Radarr etc) and media servers (Jellyfin) on different systems, or one that has more than 1 GiB physical memory and more CPU power.

Oh yeah good point, I didn’t test restarting the service. Don’t know if all the memory leaks would have been cleaned but that’s worth trying… next time haha.

Sucks for the upgrade though, first time it ever happened to me on a RPi :wink:

And yeah, thought about splitting the apps on different Pis, but I was afraid the I/O and network usage might cause problems since Radarr, Sonarr, qBittorrent and Jellyfin all need to access shared drives and it might get messy.

I am still sad that CouchPotato isn’t there anymore as an alternative to Radarr. Was much more efficient in memory usage :frowning:. Definitely a benefit to have downloaders and consumers on one server, but running it at the edge of available resources isn’t feasible for production.

Not sure whether it would help to split e.g. swap file and data onto different drives. The RPi 3 however has a single bus for all USB ports + Ethernet which is another limit. In case of transcoding when streaming via Jellyfin another large amount of (disk) cache I/O is involved.

You could also try to reduce process priorities for e.g. the download side via dietpi-services, i.e. nice level, but that doesn’t affect memory usage, only concurrent CPU usage and I/O.