Sonarr V2 - mono unable to find gdb or lldb

Sonarr version: 2.0.0.5344
Mono version:: 6.8.0.15
OS: Linux DietPi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
"Raspberry Pi 3b - running DietPi

in the last few days… Sonarr now keeps fail and i have to then manual restart the service

It will run fine maybe for a couple of hours sometimes no more that 20 mins, i was able
to get it to crash by doing a Health Check… but think it crashes when it doing a RSS parsing.

any ideas… thanks.

[Debug] Api: [GET] /api/health: 200.OK (8 ms)

=================================================================
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 (0x7336c0f4):0x7336c0e4 0a c0 a0 e1 30 40 8a e2 08 50 a0 e1 64 20 8d e5 …0@…P…d …
0x7336c0f4 00 00 9c e5 04 10 9c e5 08 20 9c e5 0c 30 9c e5 … …0…
0x7336c104 05 e0 a0 e1 10 c0 8c e2 04 00 5c e1 0f 00 ae e8 …
0x7336c114 0e 50 a0 e1 f5 ff ff 1a 2b 30 d7 e5 02 00 53 e3 .P…+0…S.

=================================================================
Managed Stacktrace:

      at <unknown> <0xffffffff>
      at System.Data.SQLite.UnsafeNativeMethods:sqlite3_step <0x00037>
      at System.Data.SQLite.SQLite3:Step <0x00117>
      at System.Data.SQLite.SQLiteDataReader:NextResult <0x00823>
      at System.Data.SQLite.SQLiteDataReader:.ctor <0x0031f>
      at System.Data.SQLite.SQLiteDataReader:.ctor <0x0004f>
      at System.Data.SQLite.SQLiteCommand:ExecuteReader <0x0004b>
      at System.Data.SQLite.SQLiteCommand:ExecuteNonQuery <0x00037>
      at System.Data.SQLite.SQLiteCommand:ExecuteNonQuery <0x0001f>
      at NzbDrone.Core.Instrumentation.DatabaseTarget:Write <0x008c7>
      at NLog.Targets.Target:Write <0x00047>
      at NLog.Targets.Target:Write <0x0005f>
      at NLog.Targets.Target:Write <0x0002b>
      at NLog.Targets.Target:WriteAsyncThreadSafe <0x00217>
      at NLog.Targets.Target:WriteAsyncLogEvents <0x00623>
      at NLog.Targets.Target:WriteAsyncLogEvents <0x00037>
      at NLog.Targets.Wrappers.AsyncTargetWrapper:WriteEventsInQueue <0x00127>
      at NLog.Targets.Wrappers.AsyncTargetWrapper:ProcessPendingEvents <0x000bb>
      at Scheduler:TimerCB <0x0017f>
      at System.Threading.QueueUserWorkItemCallback:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem <0x0005f>
      at System.Threading.ThreadPoolWorkQueue:Dispatch <0x00237>
      at System.Threading._ThreadPoolWaitCallback:PerformWaitCallback <0x00037>
      at <Module>:runtime_invoke_bool <0x0007b>

=================================================================

1 Like

another crash … seems Mono keeps taking our Sonarr.

sonarr.service - Sonarr (NzbDrone) Daemon
Loaded: loaded (/etc/systemd/system/sonarr.service; disabled; vendor preset: enabled)
Active: failed (Result: signal) since Sat 2020-05-09 23:29:29 BST; 10h ago
Process: 5769 ExecStart=/usr/bin/mono -O=-aot /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/mnt/dietpi_userdata/sonarr (co
de=killed, signal=ABRT)
Main PID: 5769 (code=killed, signal=ABRT)

May 09 23:29:28 DietPi mono[5769]: [Debug] Parser: Language parsed: English
May 09 23:29:28 DietPi mono[5769]: =================================================================
May 09 23:29:28 DietPi mono[5769]: Basic Fault Address Reporting
May 09 23:29:28 DietPi mono[5769]: =================================================================
May 09 23:29:28 DietPi mono[5769]: Memory around native instruction pointer (0x734480f4):0x734480e4 0a c0 a0 e1 30 40 8a e2 08 50
a0 e1 64 20 8d e5 …0@…P…d …
May 09 23:29:28 DietPi mono[5769]: 0x734480f4 00 00 9c e5 04 10 9c e5 08 20 9c e5 0c 30 9c e5 … …0…
May 09 23:29:28 DietPi mono[5769]: [Debug] QualityParser: Trying to parse quality for Predator.At.Large.S01E04.Were.Talking.About.A
.Serial.Killer.480p.x264-xpost
May 09 23:29:29 DietPi systemd[1]: sonarr.service: Main process exited, code=killed, status=6/ABRT
May 09 23:29:29 DietPi systemd[1]: sonarr.service: Unit entered failed state.
May 09 23:29:29 DietPi systemd[1]: sonarr.service: Failed with result ‘signal’.

Redirect both standard output and error from the mono process to a text file and see what Sonarr is doing when it’s crashing.

Make sure you’re running a recent version of libmediainfo as well, that has lead to mono crashes previously.

Sonarr Version - 2.0.0.5344
Mono Version - 6.8.0.105

used the following to capture some debug… journalctl -u sonarr
saw this in the debug/

Could not exec mono-hang-watchdog, expected on path ‘/etc/…/bin/mono-hang-watchdog’

May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Parsing string 'Jade.Fever.S02E01.Mountains.to.Climb.720p.WEB.h264-CAFFEiNE-xpost'
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Episode Parsed. Jade Fever - S02E01
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Language parsed: English
May 17 11:13:05 DietPi mono[15993]: [Debug] QualityParser: Trying to parse quality for Jade.Fever.S02E01.Mountains.to.Climb.720p.WEB.h264-CAFFEiNE-xpost
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Quality parsed: WEBDL-720p v1
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Release Group parsed: CAFFEiNE
May 17 11:13:05 DietPi mono[15993]: [Debug] ParsingService: No matching series Jade Fever
May 17 11:13:05 DietPi mono[15993]: [Debug] DownloadDecisionMaker: Release rejected for the following reasons: [Permanent] Unknown Series
May 17 11:13:05 DietPi mono[15993]: [Debug] DownloadDecisionMaker: Processing release 'Jade.Fever.S01E12.Its.Not.Easy.Finding.Green.720p.WEB.h264-CAFFEiNE-xpost' from 'Nzb.su'
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Parsing string 'Jade.Fever.S01E12.Its.Not.Easy.Finding.Green.720p.WEB.h264-CAFFEiNE-xpost'
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Episode Parsed. Jade Fever - S01E12
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Language parsed: English
May 17 11:13:05 DietPi mono[15993]: [Debug] QualityParser: Trying to parse quality for Jade.Fever.S01E12.Its.Not.Easy.Finding.Green.720p.WEB.h264-CAFFEiNE-xpost
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Quality parsed: WEBDL-720p v1
May 17 11:13:05 DietPi mono[15993]: [Debug] Parser: Release Group parsed: CAFFEiNE
May 17 11:13:05 DietPi mono[15993]: [Debug] ParsingService: No matching series Jade Fever
May 17 11:13:05 DietPi mono[15993]: [Debug] DownloadDecisionMaker: Release rejected for the following reasons: [Permanent] Unknown Series
May 17 11:13:05 DietPi mono[15993]: [Info] RssSyncService: RSS Sync Completed. Reports found: 66, Reports grabbed: 0
May 17 11:13:05 DietPi mono[15993]: [Debug] PendingReleaseService: Removing failed releases from pending
May 17 11:28:35 DietPi mono[15993]: [Info] RssSyncService: Starting RSS Sync
May 17 11:28:35 DietPi mono[15993]: [Debug] FetchAndParseRssService: Available indexers 1
May 17 11:28:35 DietPi mono[15993]: [Debug] Newznab: Downloading Feed https://api.nzb.su/api?t=tvsearch&cat=5030,5040&extended=1&apikey=REMOVED&offset=0&limit=100
May 17 11:28:35 DietPi mono[15993]: =================================================================
May 17 11:28:35 DietPi mono[15993]:         Native Crash Reporting
May 17 11:28:35 DietPi mono[15993]: =================================================================
May 17 11:28:35 DietPi mono[15993]: Got a SIGSEGV while executing native code. This usually indicates
May 17 11:28:35 DietPi mono[15993]: a fatal error in the mono runtime or one of the native libraries
May 17 11:28:35 DietPi mono[15993]: used by your application.
May 17 11:28:35 DietPi mono[15993]: =================================================================
May 17 11:28:35 DietPi mono[15993]:         Native stacktrace:
May 17 11:28:35 DietPi mono[15993]: =================================================================
May 17 11:28:35 DietPi mono[15993]:          (No frames)
May 17 11:28:35 DietPi mono[15993]: =================================================================
May 17 11:28:35 DietPi mono[15993]:         Telemetry Dumper:
May 17 11:28:35 DietPi mono[15993]: =================================================================
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x709fb440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x710ff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x719ff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x70bfd440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x70dff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x76917440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x71fff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x716ff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x702ff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x76f728e0 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x713ff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x71cff440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x70cfe440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Pkilling 0x72705440 from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Could not exec mono-hang-watchdog, expected on path '/etc/../bin/mono-hang-watchdog' (errno 2)
May 17 11:28:35 DietPi mono[15993]: Entering thread summarizer pause from 0x70afc440
May 17 11:28:35 DietPi mono[15993]: Finished thread summarizer pause from 0x70afc440.
May 17 11:28:35 DietPi mono[15993]: [Debug] FetchAndParseRssService: Found 82 from Newznab
May 17 11:28:35 DietPi mono[15993]: [Debug] FetchAndParseRssService: Found 82 reports
May 17 11:28:35 DietPi mono[15993]: [Info] DownloadDecisionMaker: Processing 82 releases

May 17 11:28:36 DietPi mono[15993]: [Debug] Parser: Parsing string 'Jade.Fever.S03E06.Eyes.on.the.Prize.720p.WEB.h264-CAFFEiNE-xpost'
May 17 11:28:36 DietPi mono[15993]: [Debug] Parser: Episode Parsed. Jade Fever - S03E06
May 17 11:28:36 DietPi mono[15993]: =================================================================
May 17 11:28:36 DietPi mono[15993]:         External Debugger Dump:
May 17 11:28:36 DietPi mono[15993]: =================================================================
May 17 11:28:36 DietPi mono[15993]: mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
May 17 11:28:36 DietPi mono[15993]: [Debug] Parser: Language parsed: English
May 17 11:28:36 DietPi mono[15993]: [Debug] QualityParser: Trying to parse quality for Jade.Fever.S03E06.Eyes.on.the.Prize.720p.WEB.h264-CAFFEiNE-xpost
May 17 11:28:36 DietPi mono[15993]: [Debug] Parser: Quality parsed: WEBDL-720p v1
May 17 11:28:36 DietPi mono[15993]: [Debug] Parser: Release Group parsed: CAFFEiNE
May 17 11:28:36 DietPi mono[15993]: =================================================================
May 17 11:28:36 DietPi systemd[1]: sonarr.service: Main process exited, code=killed, status=6/ABRT
May 17 11:28:36 DietPi systemd[1]: sonarr.service: Unit entered failed state.
May 17 11:28:36 DietPi systemd[1]: sonarr.service: Failed with result 'signal'.
May 17 11:28:36 DietPi systemd[1]: sonarr.service: Service hold-off time over, scheduling restart.
May 17 11:28:36 DietPi systemd[1]: Stopped Sonarr (NzbDrone) Daemon.
May 17 11:28:36 DietPi systemd[1]: Started Sonarr (NzbDrone) Daemon.
May 17 11:28:39 DietPi mono[16881]: [Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.5344
May 17 11:28:41 DietPi mono[16881]: [Info] AppFolderInfo: Data directory is being overridden to [/mnt/dietpi_userdata/sonarr]
May 17 11:28:42 DietPi mono[16881]: [Debug] ProcessProvider: Found 0 processes with the name: NzbDrone.Console
May 17 11:28:42 DietPi mono[16881]: [Debug] ProcessProvider: Found 1 processes with the name: NzbDrone
May 17 11:28:42 DietPi mono[16881]: [Debug] ProcessProvider:  - [16881] NzbDrone
May 17 11:28:42 DietPi mono[16881]: [Info] Router: Application mode: Interactive
May 17 11:28:42 DietPi mono[16881]: [Debug] Router: Tray selected
May 17 11:28:43 DietPi mono[16881]: [Info] MigrationLogger: *** Migrating data source=/mnt/dietpi_userdata/sonarr/nzbdrone.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
May 17 11:28:44 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:01.1122444
May 17 11:28:44 DietPi mono[16881]: [Info] MigrationLogger: *** Migrating data source=/mnt/dietpi_userdata/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
May 17 11:28:44 DietPi mono[16881]: [Info] MigrationLogger: *** VersionMigration migrating ***
May 17 11:28:44 DietPi mono[16881]: [Debug] MigrationLogger: Beginning Transaction
May 17 11:28:44 DietPi mono[16881]: [Debug] MigrationLogger: CreateTable VersionInfo
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CREATE TABLE "VersionInfo" ("Version" INTEGER NOT NULL)
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0550970
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Committing Transaction
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: VersionMigration migrated
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0673490
May 17 11:28:45 DietPi mono[16881]: [Info] MigrationLogger: *** VersionUniqueMigration migrating ***
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Beginning Transaction
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CreateIndex VersionInfo (Version)
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CREATE UNIQUE INDEX "UC_Version" ON "VersionInfo" ("Version" ASC)
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0090220
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: AlterTable VersionInfo
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger:
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0021350
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CreateColumn VersionInfo AppliedOn DateTime
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: ALTER TABLE "VersionInfo" ADD COLUMN "AppliedOn" DATETIME
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0053310
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Committing Transaction
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: VersionUniqueMigration migrated
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0077250
May 17 11:28:45 DietPi mono[16881]: [Info] MigrationLogger: *** VersionDescriptionMigration migrating ***
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Beginning Transaction
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: AlterTable VersionInfo
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger:
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0009000
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CreateColumn VersionInfo Description String
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: ALTER TABLE "VersionInfo" ADD COLUMN "Description" TEXT
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0022750
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Committing Transaction
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: VersionDescriptionMigration migrated
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0046080
May 17 11:28:45 DietPi mono[16881]: [Info] MigrationLogger: *** 1: InitialSetup migrating ***
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Beginning Transaction
May 17 11:28:45 DietPi mono[16881]: [Info] InitialSetup: Starting migration to 1
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CreateTable Logs
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: CREATE TABLE "Logs" ("Id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "Message" TEXT NOT NULL, "Time" DATETIME NOT NULL, "Logger" TEXT NOT NULL, "Method" TEXT, "Exception" TEXT, "ExceptionType" TEXT, "Level" TEXT NOT NULL)
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0046850
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: INSERT INTO "VersionInfo" ("Version", "AppliedOn", "Description") VALUES (1, '2020-05-17T10:28:45', 'InitialSetup')
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Committing Transaction
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: 1: InitialSetup migrated
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Took: 00:00:00.0419040
May 17 11:28:45 DietPi mono[16881]: [Info] MigrationLogger: *** 2: remove_tvrage_imdb_unique_constraint migrating ***
May 17 11:28:45 DietPi mono[16881]: [Debug] MigrationLogger: Beginning Transaction```

I have the exact same problem (on the same OS, latest version of dietpi running on a raspberry pi 4 with 4gb of ram). This is frustrating, and as a workaround I’ve set the sonarr service to always restart automatically on crash…waiting to know how to fix this issue, though.

Alessandro,

come join Discord… (https://discord.gg/M6BvZn5) we having some great support there
trying to get to the bottom of this. I think we are making some progress.

This has now been fixed by Dietpi thanks with the help of Taloth.

It should auto fix itself when you next login…

line was

sed -i “s/*’.db’ /’.db’ /” /boot/dietpi/func/dietpi-logclear

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