Recurrent error "Timeout waiting for lock SqliteWriteConnectionMutex to become available" on workflow runs

Describe the problem/error/question

Hi everyone,

We have a specific system of workflow that sometimes return an error after multiple runs.
The workflow “L1” is the main one, and it’s calling the L2 inside à loop.

After some loops, the L2 return an error “Timeout waiting for lock SqliteWriteConnectionMutex to become available”.
And by looking at the Execution history of the workflow L2, I see the failed run, but I also see a running run that is running since 7h (a run shouldn’t take more than 2 minutes).

So it almost look like it’s an overlaping error, where the L1 try to start a new L2 run before the previous L2 run finished, but I’m not sure about that.

What is the error message (if any)?

The error message is:
Timeout waiting for lock SqliteWriteConnectionMutex to become available

Share the output returned by the last node

Timeout waiting for lock SqliteWriteConnectionMutex to become available

Information on your n8n setup

  • n8n version: 1.108.1
  • Database (default: SQLite): SQLite (n8n cloud)
  • n8n EXECUTIONS_PROCESS setting (default: own, main): n8n cloud
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: Windows 11

Anyone can help me with this issue ?
I just upgraded our instance from 1.108.1 to 2.2.4.
Now from time to time I’m having this error just by browsing throught my workflows.