RandomNinjaAtk / docker-sonarr-extended

Sonarr (develop) with bash scripts to automate and extend functionality.
GNU General Public License v3.0
66 stars 15 forks source link

Switch from normal docker image to this image is not possible #6

Closed JVT038 closed 1 year ago

JVT038 commented 1 year ago

When I switched from the usual linuxserver/sonarr to this image, I got an error in my docker logs:

sonarr-extended | [Info] Bootstrap: Starting Sonarr - /app/sonarr/bin/Sonarr.exe - Version 3.0.9.1555
sonarr-extended | [Info] AppFolderInfo: Data directory is being overridden to [/config]
sonarr-extended | [Info] Router: Application mode: Interactive
sonarr-extended | [Info] MigrationLogger: *** Checking database for required migrations data source=/config/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
sonarr-extended | [Info] MigrationLogger: *** 170: add_language_tags_to_subtitle_files migrating ***
sonarr-extended |
sonarr-extended |
sonarr-extended | [Fatal] ConsoleApp: EPIC FAIL!
sonarr-extended |
sonarr-extended | [v3.0.9.1555] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /config/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/sonarr/faq#i-am-getting-an-error-database-disk-image-is-malformed ---> System.Data.SQLite.SQLiteException: attempt to write a readonly database
sonarr-extended | attempt to write a readonly database
sonarr-extended |   at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00088] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0006e] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteDataReader.NextResult () [0x00174] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x0008e] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
sonarr-extended |   at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteTransaction.Begin (System.Boolean deferredLock) [0x0006f] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteTransactionBase..ctor (System.Data.SQLite.SQLiteConnection connection, System.Boolean deferredLock) [0x00033] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.SQLite.SQLiteTransaction..ctor (System.Data.SQLite.SQLiteConnection connection, System.Boolean deferredLock) [0x00000] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteTransaction..ctor(System.Data.SQLite.SQLiteConnection,bool)
sonarr-extended |   at System.Data.SQLite.SQLiteConnection.BeginDbTransaction (System.Data.IsolationLevel isolationLevel) [0x00069] in <cf516e4846354910b3d60749c894b1bf>:0
sonarr-extended |   at System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction () [0x00000] in <225d5b8a6f8f4d178d7cbdfe8b61548d>:0
sonarr-extended |   at FluentMigrator.Runner.Processors.GenericProcessorBase.BeginTransaction () [0x0002e] in <137fb96feee44f379d6a8fba4e172d1c>:0
sonarr-extended |   at FluentMigrator.Runner.TransactionalMigrationScope..ctor (FluentMigrator.IMigrationProcessor migrationProcessor, System.Action disposalAction) [0x0001c] in <137fb96feee44f379d6a8fba4e172d1c>:0
sonarr-extended |   at FluentMigrator.Runner.MigrationScopeHandler.BeginScope () [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
sonarr-extended |   at FluentMigrator.Runner.MigrationScopeHandler.CreateOrWrapMigrationScope (System.Boolean transactional) [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
sonarr-extended |   at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0008a] in <137fb96feee44f379d6a8fba4e172d1c>:0
sonarr-extended |   at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
sonarr-extended |   at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
sonarr-extended |   at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
sonarr-extended |    --- End of inner exception stack trace ---
sonarr-extended |   at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
sonarr-extended |   at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
sonarr-extended |   at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
sonarr-extended |   at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
sonarr-extended |   at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
sonarr-extended |   at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
sonarr-extended |   at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
sonarr-extended |   at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
sonarr-extended |   at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42

I checked and the database file itself isn't corrupt, so I can still open and read the file normally, but sonarr can't. Probably because I'm on the normal main branch, while this image is on the develop branch. Could you make another tag for people on the main branch? That could help me switch.

RandomNinjaAtk commented 1 year ago

I believe it should have upgraded it for you. But by looking at the error seems like it ran into a permission issue. You could try correcting your permissions and try again. Would be a good idea to make a backup of your data.

JVT038 commented 1 year ago

Yeah, you're right, thanks