Sonarr Task Error

Hello,

Every since the latest update I am getting a Task Error for sonarr in unRaid. Below is the log files from sonarr. I’ve already tried deleting and reinstalling sonarr and it is still occurring… Any help would be great!

[Error] TaskExtensions: Task Error

[v2.0.0.4613] System.Data.SQLite.SQLiteException (0x80004005): database is locked
database is locked
at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x00088] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] 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.ExecuteScalar (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteCommand.ExecuteScalar () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at Marr.Data.QGen.InsertQueryBuilder1[T].Execute () [0x00051] in <30f4abfe5d1448dd922cbba0c19f0033>:0 at Marr.Data.DataMapper.Insert[T] (T entity) [0x0005d] in <30f4abfe5d1448dd922cbba0c19f0033>:0 at NzbDrone.Core.Datastore.BasicRepository1[TModel].Insert (TModel model) [0x00033] in <1a123115ce924c0e8bc0fcbfb1d4964d>:0
at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Push[TCommand] (TCommand command, NzbDrone.Core.Messaging.Commands.CommandPriority priority, NzbDrone.Core.Messaging.Commands.CommandTrigger trigger) [0x0013d] in <1a123115ce924c0e8bc0fcbfb1d4964d>:0
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandQueueManager,object,NzbDrone.Core.Messaging.Commands.CommandPriority,NzbDrone.Core.Messaging.Commands.CommandTrigger)
at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) [0x0003e] in <63992662b765477a898ef49cdcc99ee2>:0
at (wrapper delegate-invoke) System.Func6[System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandQueueManager,System.Object,NzbDrone.Core.Messaging.Commands.CommandPriority,NzbDrone.Core.Messaging.Commands.CommandTrigger,System.Object]:invoke_TResult_T1_T2_T3_T4_T5 (System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandQueueManager,object,NzbDrone.Core.Messaging.Commands.CommandPriority,NzbDrone.Core.Messaging.Commands.CommandTrigger) at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandQueueManager,object,NzbDrone.Core.Messaging.Commands.CommandPriority,NzbDrone.Core.Messaging.Commands.CommandTrigger) at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Push (System.String commandName, System.Nullable1[T] lastExecutionTime, NzbDrone.Core.Messaging.Commands.CommandPriority priority, NzbDrone.Core.Messaging.Commands.CommandTrigger trigger) [0x00141] in <1a123115ce924c0e8bc0fcbfb1d4964d>:0
at NzbDrone.Core.Jobs.Scheduler.ExecuteCommands () [0x0005a] in <1a123115ce924c0e8bc0fcbfb1d4964d>:0
at System.Threading.Tasks.Task.InnerInvoke () [0x00012] in :0
at System.Threading.Tasks.Task.Execute () [0x00016] in :0

Sonarr version (exact version):
Mono version (if Sonarr is not running on Windows):
OS:
((Debug logs)):
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)

In this case we’ll need to see ((trace logs)).

It’d also be worth trying to ((restore)) a backup of Sonarr. Nothing has changed with this behavior in the latest update.

I have tried to restore from a backup already and it didn’t change it. That was the information from the log file.

Sonarr version is 2.0.0.4613

unRaid version is 6.3.1

This is what was right before the error

17-3-3 12:33:00.1|Info|Router|Application mode: Interactive
17-3-3 12:33:00.1|Info|OwinHostController|Listening on the following URLs:
17-3-3 12:33:00.1|Info|OwinHostController| http://*:8989/
17-3-3 12:33:00.2|Info|NancyBootstrapper|Starting Web Server
17-3-3 12:33:01.1|Info|ProfileService|Setting up default quality profiles
17-3-3 12:35:32.0|Error|TaskExtensions|Task Error

Did the user running Sonarr change or do the permissions on nzbdrone.db not allow Sonarr to write to it?

How could I check that?

Not sure on the former, on the latter check the permissions on the file (google should be able to tell you how to do that if you’re not sure), though you’ll need to know the user/group to confirm.

@PhAzE any ideas on this?

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