[Support] Linuxserver.io - Sonarr


Recommended Posts

On 9/10/2018 at 10:22 AM, Rick Gillyon said:

Anyone know if there's a docker similar to Sonarr that allows you to prioritise x265/HEVC? I've been searching without any joy...

Just add those tags under "must contain" in Settings > Indexers > Restrictions (advanced settings needs to be turned on). My tags are set to not download the following tags:

 

VtIrv3I.png

Edited by ctrlaltd1337
Link to comment
32 minutes ago, ctrlaltd1337 said:

Just add those tags under "must contain" in Settings > Indexers > Restrictions (advanced settings needs to be turned on). My tags are set to not download the following tags:

 

VtIrv3I.png

Thanks, but that's not exactly what I'm looking for unless I've misunderstood. I want to prioritize HEVC but still allow it to download x264 if no x265 is available. 

Link to comment

Unraid problem or Docker Repository Issue - Don't know.  Need help! -

 

This was originally posted in Binhex-Lidarr support page but the problem persists with Linuxserver.io docker containers also. -

 

 

Background:

Last Saturday I decided to swap the 250gb nvme in my main rig for 2 500gb nvme drives in raid 0.  Followed instructions found here https://www.youtube.com/watch?v=ij8AOEF1pTU from Spaceinvader One.  After restoring libvert and disk image from backup, Win10 VM fired up without issues. 

 

Restored appdata using community applications backup and restore app and reinstalled docker images from history.  While the dockers install without error and startup, I am unable to reach the web UI for any of the affected dockers.  (Log for Lidarr posted in images attached).

 

Jumped through hoops. 

 

Deleted docker image file multiple times,

un-installed / re-installed nvme drives and re-formatted. 

Did NOT restore appdata and tried to re-install binhex dockers listed from scratch and still the same results. 

To test if the flash drive for the Main Rig was corrupted, tried to install Binhex-Lidarr on my NAS box (Usually Krusader is the only docker that runs on the NAS).  Same resuts. 

As a test, installed Unraid 6.6.0 -rc4 on the NAS box last night and tried to install Binhex-Lidarr again.  Same results.

 

Essentially the error message in the logs for Radarr, Sonarr and Lidarr seems to be the same:

 

at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\DbFactory.cs:122 is corrupt, restore from backup if available. See: https://github.com/Lidarr/Lidarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed

 

Docker containers affected:

Binhex-Radarr

Binhex-Sonarr

Binhex-Lidarr

Binhex-Plexpass

Linuxserver.io-Sonarr

Linuxserver.io-Radarr

 

Docker containers NOT affected:

Binhex-SABNZBD

Binhex-Deluge

Krusader

Calibre

Cops

Lazylibrarian

 

Any help/input/work around will be greatly appreciated.  Want to avoid having to use some docker from a different repository and go through setting up each from scratch.  Especially Plex.

 

Main Rig - Media Server

UNRAID 6.5.0

Intel Core i9-7900x

Gigabyte Aorus x299 Gaming 9

64gbs Corsair Vengence DDR4 3000

Samsung PM961 M.2 512gbs x 2 - cache in raid 0

 8 port HDD controller

iStarUSA 3.5" x 5 bay hotswap disk cage

EVGA 850W P2 power supply

Seagate Enterprise level 8TB HDD - parity drive

WD Red 8TB HDD - parity drive x 2

Misc HDDs for a total of 20TB storage space

 

Backup Rig - NAS

UNRAID 6.6.0 - rc4

Intel Core i7-4790k

Asus z97 pro gamer

32gbs (gotta check) DDR3

Samsung PM961 M.2 125gbs - cache 

Marvel 8 port HDD controller

Silverstone CS380 hotswap case

EVGA 650W P2 power supply

Seagate 2TB HDD - parity drive

Seagate 2TB HDD - parity drive x 2

Misc HDDs for a total of 6TB storage space

 

2018-09-17 19:34:02.985572 [info] System information Linux 0e75fe0edf53 4.18.8-unRAID #1 SMP Sat Sep 15 09:15:50 PDT 2018 x86_64 GNU/Linux

2018-09-17 19:34:03.003646 [info] PUID defined as '99'

2018-09-17 19:34:03.052851 [info] PGID defined as '100'

2018-09-17 19:34:03.103273 [info] UMASK defined as '000'

2018-09-17 19:34:03.120460 [info] Permissions already set for volume mappings

2018-09-17 19:34:03.139694 [info] Starting Supervisor...

2018-09-17 19:34:03,372 INFO Included extra file "/etc/supervisor/conf.d/lidarr.conf" during parsing

2018-09-17 19:34:03,372 INFO Set uid to user 0 succeeded

2018-09-17 19:34:03,373 INFO supervisord started with pid 8

2018-09-17 19:34:04,375 INFO spawned: 'lidarr' with pid 48

2018-09-17 19:34:04,375 INFO reaped unknown pid 9

2018-09-17 19:34:04,577 DEBG 'lidarr' stdout output:

[Info] Bootstrap: Starting Lidarr - /usr/lib/lidarr/Lidarr.exe - Version 0.3.1.471

 

2018-09-17 19:34:04,884 DEBG 'lidarr' stdout output:

[Info] AppFolderInfo: Data directory is being overridden to [/config]

 

2018-09-17 19:34:04,947 DEBG 'lidarr' stdout output:

[Info] Router: Application mode: Interactive

 

2018-09-17 19:34:05,059 DEBG 'lidarr' stdout output:

[Info] MigrationLogger: *** Migrating data source=/config/lidarr.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***

 

2018-09-17 19:34:05,113 DEBG 'lidarr' stdout output:

 

 

 

2018-09-17 19:34:05,427 DEBG 'lidarr' stdout output:

[Fatal] ConsoleApp: EPIC FAIL!

 

[v0.3.1.471] NzbDrone.Core.Datastore.CorruptDatabaseException: Lidarr failed to start: Database file: System.Data.SQLite.SQLiteException (0x80004005): disk I/O error

disk I/O error

at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x0033c] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x000f6] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at System.Data.SQLite.SQLiteCommand.GetStatement (System.Int32 index) [0x00008] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteCommand.GetStatement(int)

at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0011e] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)

at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at System.Data.SQLite.SQLiteConnection.Open () [0x00959] in <61a20cde294d4a3eb43b9d9f6284613b>:0

at FluentMigrator.Runner.Processors.GenericProcessorBase.EnsureConnectionIsOpen () [0x0000e] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\Processors\GenericProcessorBase.cs:54

at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Exists (System.String template, System.Object[] args) [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\Processors\SQLite\SQLiteProcessor.cs:78

at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.TableExists (System.String schemaName, System.String tableName) [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\Processors\SQLite\SQLiteProcessor.cs:47

at FluentMigrator.Runner.VersionLoader.get_AlreadyCreatedVersionTable () [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:124

at FluentMigrator.Runner.VersionLoader.LoadVersionInfo () [0x00028] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:160

at FluentMigrator.Runner.VersionLoader..ctor (FluentMigrator.Runner.IMigrationRunner runner, FluentMigrator.Infrastructure.IAssemblyCollection assemblies, FluentMigrator.IMigrationConventions conventions) [0x00077] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:50

at FluentMigrator.Runner.MigrationRunner..ctor (FluentMigrator.Infrastructure.IAssemblyCollection assemblies, FluentMigrator.Runner.Initialization.IRunnerContext runnerContext, FluentMigrator.IMigrationProcessor processor) [0x00167] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\MigrationRunner.cs:102

at FluentMigrator.Runner.MigrationRunner..ctor (System.Reflection.Assembly assembly, FluentMigrator.Runner.Initialization.IRunnerContext runnerContext, FluentMigrator.IMigrationProcessor processor) [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\MigrationRunner.cs:72

at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000b5] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:58

at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\DbFactory.cs:122 is corrupt, restore from backup if available. See: https://github.com/Lidarr/Lidarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed

at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\DbFactory.cs:133

at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\DbFactory.cs:81

at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\DbFactory.cs:69

at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in C:\projects\lidarr\src\NzbDrone.Core\Datastore\DbFactory.cs:47

at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in C:\projects\lidarr\src\NzbDrone.Host\ApplicationServer.cs:60

at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in C:\projects\lidarr\src\NzbDrone.Host\Router.cs:55

at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in C:\projects\lidarr\src\NzbDrone.Host\Bootstrap.cs:78

at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00075] in C:\projects\lidarr\src\NzbDrone.Host\Bootstrap.cs:41

at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00029] in C:\projects\lidarr\src\NzbDrone.Console\ConsoleApp.cs:38

 

 

2018-09-17 19:34:05,427 INFO success: lidarr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

2018-09-17 19:34:05,436 DEBG 'lidarr' stdout output:

Press enter to exit...

 

2018-09-17 19:34:06,436 DEBG 'lidarr' stdout output:

Non-recoverable failure, waiting for user intervention...

 

From <https://ba38b4426689c3df9029cd275e6e37518af21f76.unraid.net/plugins/dynamix.docker.manager/include/Events.php?action=log&container=0e75fe0edf53&title=Log%20for:%20binhex-lidarr>

 

 

NAS Box.png

MS Box.png

Lidarr Log.png

Link to comment

All of those containers affected use SQLite, my guess is you've got the /config mount as /mnt/user/appdata/..... 

 

This can break SQLite.  Change the appdata to /mnt/cache/appdata

 

As an aside, not sure why you've posted in our support thread.  Seems that you're a binhex container user and just used our containers to rule out a container issue and confirm it's an issue on your machine.  🙄

Edited by CHBMB
Link to comment
5 hours ago, Do2a-2d said:

This was originally posted in Binhex-Lidarr support page

 

3 hours ago, CHBMB said:

As an aside, not sure why you've posted in our support thread.  Seems that you're a binhex container user and just used our containers to rule out a container issue and confirm it's an issue on your machine.

 

Do2a-2d:

See my response (about crossposting) on that other thread you posted to.

Link to comment
On ‎9‎/‎19‎/‎2018 at 11:53 AM, CHBMB said:

All of those containers affected use SQLite, my guess is you've got the /config mount as /mnt/user/appdata/..... 

 

 

On ‎9‎/‎19‎/‎2018 at 11:53 AM, CHBMB said:

This can break SQLite.  Change the appdata to /mnt/cache/appdata

Ha ha.  Now I see this.  Eventually this is what I ended up doing.  See my post in binhex ;)

 

On ‎9‎/‎19‎/‎2018 at 11:53 AM, CHBMB said:

 

As an aside, not sure why you've posted in our support thread.  Seems that you're a binhex container user and just used our containers to rule out a container issue and confirm it's an issue on your machine.  🙄

Very true.  When I saw "corrupt database" errors in the log, I decided to use a different repository to see if it was local to my machine or to what the docker was pulling.  Tested it on two different machines and got the same errors in the log for both repositories - panicked and posted to your support also.

 

Thanks a lot for your help.

 

Link to comment

Is anyone getting this error with the Linuxserver.io Docker for Sonarr?

 

Request Failed. GET /api/manualimport: Sequence contains no matching element

 

System.InvalidOperationException: Sequence contains no matching element
  at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00070] in <7aa7d6192efc4d31a9896d7a49ef2104>:0 
  at NzbDrone.Api.ManualImport.ManualImportModule.AddQualityWeight (NzbDrone.Api.ManualImport.ManualImportResource item) [0x00020] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Api\ManualImport\ManualImportModule.cs:35 
  at System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].ToList () [0x0002a] in <7aa7d6192efc4d31a9896d7a49ef2104>:0 
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <7aa7d6192efc4d31a9896d7a49ef2104>:0 
  at NzbDrone.Api.ManualImport.ManualImportModule.GetMediaFiles () [0x001c4] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Api\ManualImport\ManualImportModule.cs:28 
  at NzbDrone.Api.REST.RestModule`1[TResource].<set_GetResourceAll>b__32_0 (System.Object options) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Api\REST\RestModule.cs:111 
  at (wrapper dynamic-method) System.Object.CallSite.Target(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Func`2<object, object>,object)
  at Nancy.Routing.Route+<>c__DisplayClass4.<Wrap>b__3 (System.Object parameters, System.Threading.CancellationToken context) [0x00049] in <63c44d6f8d7e4f339a987bf9eb94d931>:0

 

EDIT: NVM, I figured out what it was. For some reason, when I added Childhood's End to Sonarr to import from my rip, it caused this error and once I deleted it from Sonarr, the import feature started working again. Very weird and I'm not really sure why that happened. 

Edited by FredG89
Link to comment

Is there any way to access the phantom branch (sonarr v3) with this container? I know develop is an option, but my gut tells me that the container itself needs to be able to support the given branch for me to be able to just change a tag and update... 

 

Edit: Nevermind. I just changed the repository within the container to lsiodev/sonarr-preview and it started right up!

Edited by kaiguy
Link to comment
  • 1 month later...

Hopefully I can get some help with a weird issue I've started having for the past couple days. I have a cached/encrypted rclone gsuite mount that Sonarr and Radarr are both using to store media. Radarr is working as it should. Sonarr was working fine but now an issue arisen. When it post processes and moves the files to the rclone mount, they are accessible for a few minutes before they disappear from the cache mount. The encrypted files are still visible in the encrypted mount. I've compared the file and folder permissions in the encrypted mount with the working Radarr files and they appear to be the same using ls -l. The Sonarr files reappear once they are uploaded to gsuite. Radarr and Sonarr have the same guid, ect settings. At first, I thought something was wrong with rclone until I noticed Radarr downloads were working normally from the same mount. I did update unraid from 6.6.1 to 6.6.3 before this issue appeared, but I'm not sure why it would effect Sonarr and not Radarr. I've even tried a completely new sonarr install and new config. Anybody know what could be causing this issue? 

Link to comment
  • 2 weeks later...

Was there an update last night to the container?  While I can via the log see activity going on regarding my folders and normal Sonarr activities the web server no longer appears to be reachable (It is hanging on waiting for x.x.x.x:8989).  Going to monitor it for 24 hours and see if I see any changes.  Will attach diagnostic files and additional data at that time if it doesn't course correct.

Link to comment

Help with paths.

I had my system working fine but now that I was required to start over I can't get the configuration to work. I've been trying since yesterday -- tried googling and keep finding things I think will resolve the issue but it doesn't. Hoping someone will be nice enough to help me.

Everything works up to the point where Deluge doesn't signal back to Sonarr that the torrent is finished and ready to move.

 

165075169_2018-11-2714_06_52-Castle_Docker.png.908691d7ee944ab2c83459989ccb3aa2.png897119686_2018-11-2714_07_08-Deluge_WebUI1.3_15.png.acdeb4b8d5e416aef5b7b723a6c84156.png

 

Obviously, there is something that I am not getting and I've tried a dozen variations and none of them work for me. 

Link to comment
13 minutes ago, Naldinho said:

Help with paths.

I had my system working fine but now that I was required to start over I can't get the configuration to work. I've been trying since yesterday -- tried googling and keep finding things I think will resolve the issue but it doesn't. Hoping someone will be nice enough to help me.

Everything works up to the point where Deluge doesn't signal back to Sonarr that the torrent is finished and ready to move.

 

165075169_2018-11-2714_06_52-Castle_Docker.png.908691d7ee944ab2c83459989ccb3aa2.png897119686_2018-11-2714_07_08-Deluge_WebUI1.3_15.png.acdeb4b8d5e416aef5b7b723a6c84156.png

 

Obviously, there is something that I am not getting and I've tried a dozen variations and none of them work for me. 

If that 2nd screenshot is from sonarr, the 1st screenshot doesn't have any sonarr mapping for /data. Do you understand container volume mappings?

 

Why did you have to start over? Did you know that you can reinstall any of your dockers exactly as they were before including all their settings using the Previous Apps feature on the Apps page (Community Applications)?

Link to comment
2 hours ago, trurl said:

If that 2nd screenshot is from sonarr, the 1st screenshot doesn't have any sonarr mapping for /data. Do you understand container volume mappings? 

2

I thought I had a basic understanding of it but apparently not given how I am struggling with this. I am under the impression that my goal is to get both mappings to match which they do in the above configuration. Completed downloads are put in /downloads by Deluge which is mapped to /mnt/user/Downloads/completed/ in Deluge and in Sonnar /downloads is also mapped to /mnt/user/Downloads/completed/   

 

2 hours ago, trurl said:

Why did you have to start over? Did you know that you can reinstall any of your dockers exactly as they were before including all their settings using the Previous Apps feature on the Apps page (Community Applications)?

 

 

No back up and cache SSD stopped working. I think all the configurations were on the cache drive so when it died they were gone.

Link to comment
2 hours ago, Squid said:

I believe I had already tried that and it didn't work for me. I think that is what I have setup here

1944415312_2018-11-2717_32_02-Castle_Docker.png.8d7cd7e0d9b18308789b4ef971dd36f4.png

 

In your post, you mention that there would be an error with the word "import" in the error but I am not finding that in the Sonarr logs. Is that significant?

I have Drone disabled but if I was to enable it then everything works fine so it is not a permissions issue.

Link to comment
3 minutes ago, Naldinho said:

I think all the configurations were on the cache drive

All the docker configurations are on the flash drive. It is just the appdata for each that is typically on cache. Where you are stuck is just with the configuration part. If you had that exactly as before then it would work but it would be starting from a completely new install since the appdata was gone. But at least it would be exactly as configured before.

Link to comment
10 minutes ago, Naldinho said:

I am under the impression that my goal is to get both mappings to match which they do in the above configuration.

I don't actually use any of these dockers (except plex) myself. Whether they work together is one thing. Whether sonarr will work at all is what I was getting at with this:

3 hours ago, trurl said:

If that 2nd screenshot is from sonarr, the 1st screenshot doesn't have any sonarr mapping for /data.

So, is that 2nd screenshot from sonarr or from one of the other applications?

Link to comment
1 minute ago, trurl said:

I don't actually use any of these dockers myself. Whether they work together is one thing. Whether sonarr will work at all is what I was getting at with this:

So, is that 2nd screenshot from sonarr or from one of the other applications?

 

The second screenshot is from Deluge

I have changed things a few times since then but at that time the Deluge setting for Completed was set to /downloads which I has mapped to /mnt/user/Downloads/completed/ and in Sonarr I mapped /downloads to /mnt/user/Downloads/completed/ so my understanding is Deluge would tell Sonarr the file is downloaded and in /downloads and then Sonarr would go to the same place

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.