From 67037cc064d8920c8e86634ccf1897e807a69aea Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 15 Jun 2026 08:23:21 +0200 Subject: [PATCH] paperless: fix OCR lang-pack install (space-separated PAPERLESS_OCR_LANGUAGES) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compose fed the +-joined PAPERLESS_OCR_LANGUAGE (e.g. hun+eng) into PAPERLESS_OCR_LANGUAGES (the install list), so the image tried to apt-install a bogus 'tesseract-ocr-hun+eng' → hun pack missing → Django check crash-loop on the default hun+eng. PAPERLESS_OCR_LANGUAGES must be space-separated; set a fixed superset 'eng hun deu' (verified each installs). Found live deploying paperless on guest 9201. Co-Authored-By: Claude Opus 4.8 (1M context) --- templates/paperless-ngx/docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/paperless-ngx/docker-compose.yml b/templates/paperless-ngx/docker-compose.yml index 0de89c1..7b86d2e 100644 --- a/templates/paperless-ngx/docker-compose.yml +++ b/templates/paperless-ngx/docker-compose.yml @@ -45,8 +45,13 @@ services: - PAPERLESS_SECRET_KEY=${PAPERLESS_SECRET_KEY} - PAPERLESS_URL=https://${SUBDOMAIN}.${DOMAIN} - PAPERLESS_TIME_ZONE=Europe/Budapest + # PAPERLESS_OCR_LANGUAGE selects the OCR engine language(s) — "+"-joined (e.g. hun+eng). + # PAPERLESS_OCR_LANGUAGES is the INSTALL list and must be SPACE-separated (the image apt-installs + # tesseract-ocr-). Reusing the "+"-joined value here installed a bogus "tesseract-ocr-hun+eng" + # → hun pack missing → Django check crash-loop. Fixed: a space-separated superset of every offered + # option (eng bundled; hun/deu installed at boot — verified installable). - PAPERLESS_OCR_LANGUAGE=${PAPERLESS_OCR_LANGUAGE:-eng} - - PAPERLESS_OCR_LANGUAGES=${PAPERLESS_OCR_LANGUAGE:-} + - PAPERLESS_OCR_LANGUAGES=eng hun deu - PAPERLESS_ADMIN_USER=${PAPERLESS_ADMIN_USER:-} - PAPERLESS_ADMIN_PASSWORD=${PAPERLESS_ADMIN_PASSWORD:-} - PAPERLESS_CONSUMER_POLLING=30