]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Adds possible scary looking log line that is actually fine to troubleshooting
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Mon, 20 Mar 2023 18:08:06 +0000 (11:08 -0700)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 21 Mar 2023 14:46:57 +0000 (07:46 -0700)
docs/troubleshooting.md

index 1ff020d4f9fc3b959b4f0ec7c0799256b214d5a8..63e37a10fddde7dc2c41815f9d428b2b14102e4c 100644 (file)
@@ -332,3 +332,16 @@ change the port gunicorn listens on.
 
 To fix this, set `PAPERLESS_PORT` again to your desired port, or the
 default of 8000.
+
+## Database Warns about unique constraint "documents_tag_name_uniq
+
+You may see database log lines like:
+
+```
+ERROR:  duplicate key value violates unique constraint "documents_tag_name_uniq"
+DETAIL:  Key (name)=(NameF) already exists.
+STATEMENT:  INSERT INTO "documents_tag" ("owner_id", "name", "match", "matching_algorithm", "is_insensitive", "color", "is_inbox_tag") VALUES (NULL, 'NameF', '', 1, true, '#a6cee3', false) RETURNING "documents_tag"."id"
+```
+
+This can happen during heavy consumption when using polling. Paperless will handle it correctly and the file
+will still be consumed