From 0a1f264c71f463c19c05a3433a25e25477558a88 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sat, 13 Feb 2021 18:09:00 +0100 Subject: [PATCH] Gotenberg troubleshooting --- docs/troubleshooting.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/troubleshooting.rst b/docs/troubleshooting.rst index ae7fe14c7..d2a76e7b3 100644 --- a/docs/troubleshooting.rst +++ b/docs/troubleshooting.rst @@ -94,6 +94,30 @@ If you want to get rid of the warning or actually experience issues with automat the file ``classification_model.pickle`` in the data directory and let paperless recreate it. +504 Server Error: Gateway Timeout when adding Office documents +############################################################## + +You may experience these errors when using the optional TIKA integration: + +.. code:: + + requests.exceptions.HTTPError: 504 Server Error: Gateway Timeout for url: http://gotenberg:3000/convert/office + +Gotenberg is a server that converts Office documents into PDF documents and has a default timeout of 10 seconds. +When conversion takes longer, Gotenberg raises this error. + +You can increase the timeout by configuring an environment variable for gotenberg (see also `here `__). +If using docker-compose, this is achieved by the following configuration change in the ``docker-compose.yml`` file: + +.. code:: yaml + + gotenberg: + image: thecodingmachine/gotenberg + restart: unless-stopped + environment: + DISABLE_GOOGLE_CHROME: 1 + DEFAULT_WAIT_TIMEOUT: 30 + Permission denied errors in the consumption directory #####################################################