Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tiborrr opened this issue Dec 30, 2024 · 0 comments · May be fixed by #2902
Open

Comments

@tiborrr
Copy link
Contributor

tiborrr commented Dec 30, 2024

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

@tiborrr tiborrr linked a pull request Dec 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant