From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 20 Mar 2023 18:08:06 +0000 (-0700) Subject: Adds possible scary looking log line that is actually fine to troubleshooting X-Git-Tag: v1.14.0-beta.rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4637e333263a7fd1e10395bb725e838959ff4d64;p=thirdparty%2Fpaperless-ngx.git Adds possible scary looking log line that is actually fine to troubleshooting --- diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 1ff020d4f9..63e37a10fd 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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