Merge pull request #1731 from paperless-ngx/fix/1624

Documentation: Adds troubleshooting note about Kubernetes and ports
This commit is contained in:
shamoon 2022-10-06 13:22:58 -07:00 committed by GitHub
commit 0b5c6d3532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,3 +317,12 @@ Uploading or consuming multiple files at once results in many workers attempting
Consider changing to the PostgreSQL database if you will be processing many documents at once often. Otherwise,
try tweaking the ``PAPERLESS_DB_TIMEOUT`` setting to allow more time for the database to unlock. This may have
minor performance implications.
gunicorn fails to start with "is not a valid port number"
#########################################################
You are likely running using Kubernetes, which automatically creates an environment variable named `${serviceName}_PORT`.
This is the same environment variable which is used by Paperless to optionally change the port gunicorn listens on.
To fix this, set `PAPERLESS_PORT` again to your desired port, or the default of 8000.