Skip to content

Docspell gets stuck on reboot because docspell is trying to insert duplicate housekeeping tasks #2901

@tiborrr

Description

@tiborrr

In the logs you find the following error:

docspell-db          | 2024-12-30 08:12:33.840 UTC [32382] ERROR:  duplicate key value violates unique constraint "periodic_task_pkey"
docspell-db          | 2024-12-30 08:12:33.840 UTC [32382] DETAIL:  Key (id)=(docspell-update-check) already exists.
docspell-db          | 2024-12-30 08:12:33.840 UTC [32382] STATEMENT:  INSERT INTO periodic_task (id, enabled, task, group_, args, subject, submitter, priority, worker, marked, timer, nextrun, created, summary) VALUES ($1,$2,$3,$4,$5, $6,$7,$8,$9, $10,$11,$12,$13,$14 )

Probably caused by JoexAppImpl.scala that uses updateTask instead of updateOneTask.

For user tasks there should only exist at most one task

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or in unexpected ways

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions