I investigated further. It seems to be a general problem of docker. I'm closing it for now.
Continuing invetigation.
I observed that task #11 is constantly failing:
joplin-server | 08:31:16 0|app | 2024-09-20 08:31:08: [error] TaskService: Failed running task #11 (Process shared items) KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is proba
bly full. Are you missing a .transacting(trx) call?
joplin-server | 08:31:16 0|app | at Object.queryBuilder (/home/joplin/packages/server/node_modules/knex/lib/knex-builder/make-knex.js:112:26)
joplin-server | 08:31:16 0|app | at createQueryBuilder (/home/joplin/packages/server/node_modules/knex/lib/knex-builder/make-knex.js:320:26)
joplin-server | 08:31:16 0|app | at TaskStateModel.knex [as db_] (/home/joplin/packages/server/node_modules/knex/lib/knex-builder/make-knex.js:101:12)
joplin-server | 08:31:16 0|app | at TaskStateModel.<anonymous> (/home/joplin/packages/server/src/models/TaskStateModel.ts:16:15)
joplin-server | 08:31:16 0|app | at Generator.next (<anonymous>)
joplin-server | 08:31:16 0|app | at /home/joplin/packages/server/dist/models/TaskStateModel.js:8:71 {
joplin-server | 08:31:16 0|app | sql: undefined,
joplin-server | 08:31:16 0|app | bindings: undefined,
joplin-server | 08:31:16 0|app | originalStack: 'KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?\n' +
joplin-server | 08:31:16 0|app | ' at Client_SQLite3.acquireConnection (/home/joplin/packages/server/node_modules/knex/lib/client.js:332:26)\n' +
joplin-server | 08:31:16 0|app | ' at runNextTicks (node:internal/process/task_queues:60:5)\n' +
joplin-server | 08:31:16 0|app | ' at processTimers (node:internal/timers:509:9)\n' +
joplin-server | 08:31:16 0|app | ' at Runner.ensureConnection (/home/joplin/packages/server/node_modules/knex/lib/execution/runner.js:305:28)\n' +
joplin-server | 08:31:16 0|app | ' at Runner.run (/home/joplin/packages/server/node_modules/knex/lib/execution/runner.js:30:19)'
joplin-server | 08:31:16 0|app | }
Meanwhlie, the failing task seems to be the same one, because new tasks cannot be scheduled:
joplin-server | 08:38:07 0|app | 2024-09-20 08:38:07: [warn] TaskService: Tried to start #11 (Process shared items) but it was already running
joplin-server | 08:38:18 0|app | 2024-09-20 08:38:18: [warn] TaskService: Tried to start #11 (Process shared items) but it was already running
joplin-server | 08:38:28 0|app | 2024-09-20 08:38:28: [warn] TaskService: Tried to start #11 (Process shared items) but it was already running
joplin-server | 08:38:38 0|app | 2024-09-20 08:38:38: [warn] TaskService: Tried to start #11 (Process shared items) but it was already running
joplin-server | 08:38:48 0|app | 2024-09-20 08:38:48: [warn] TaskService: Tried to start #11 (Process shared items) but it was already running
joplin-server | 08:38:58 0|app | 2024-09-20 08:38:58: [warn] TaskService: Tried to start #11 (Process shared items) but it was already running