SQLite Error 5: 'database is locked'

SQLite Error 5: 'database is locked'

avatar
(anonymous user)
Product: PowerShell Universal
Version: 2026.1.5


Hello everyone, I currently have a (serious) problem with a dispatcher script that throws errors when executing around 150 scripts, for some of them:

Status(StatusCode="Unknown", Detail="Exception was thrown by handler.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1778133607.433000000","description":"Error received from peer ipv6:[::1]:50383","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"Exception was thrown by handler.","grpc_status":2}")

Failed to check concurrency limits.: SQLite Error 5: 'database is locked'. ,

Status(StatusCode="Unknown", Detail="Exception was thrown by handler. SqliteException: SQLite Error 5: 'database is locked'.")
and
SQLite Error 5: 'database is locked'.

It is only a handful of scripts, but this could cause major issues in the production environment.

For executing the 150 scripts I use several predefined caches, which save me from constantly querying Active Directory. I have already limited the maximum number of parallel executions to 5. The whole setup runs on IIS and PowerShell 7.

I hope someone can help me as soon as possible.

Should i enable the IIS advanced setting property “Disable Overlapped Recycle” from “false” to “true”?

All Comments (3)

avatar

I have not seen this one in a while. Here is a related issue for an older version.

github.com/ironmansoftware/powershell-universal

avatar

I have now set the grooming interval from 1 to 60 minutes as a test, hoping that this will help.

avatar

a little update - nothing changed. I still have the problem, that the db ist blocked