Code Monkey home page Code Monkey logo

docker-paperless-ngx's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

DEPRECATION NOTICE

This image is deprecated. We will not offer support for this image and it will not be updated. We recommend switching to the new official container: https://github.com/paperless-ngx/paperless-ngx

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

Paperless-ngx is an application by Daniel Quinn and contributors that indexes your scanned documents and allows you to easily search for documents and store metadata alongside your documents."

paperless-ngx

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/paperless-ngx:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf arm32v7-<version tag>

Application Setup

Default login is admin:admin via the webui, accessible at http://SERVERIP:PORT More info at paperless-ngx. For convenience this container provides an alias to perform administration management commands. Available administration commands are documented upstream here and can be accessed with this container thus: docker exec -it <container_name> manage <command>. For example, docker exec -it paperless manage document_retagger -tT.

Usage

Here are some example snippets to help you get started creating a container.

docker-compose (recommended, click here for more info)

---
version: "2.1"
services:
  paperless-ngx:
    image: lscr.io/linuxserver/paperless-ngx:latest
    container_name: paperless-ngx
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - REDIS_URL= #optional
    volumes:
      - /path/to/appdata/config:/config
      - /path/to/appdata/data:/data
    ports:
      - 8000:8000
    restart: unless-stopped
docker run -d \
  --name=paperless-ngx \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=America/New_York \
  -e REDIS_URL= `#optional` \
  -p 8000:8000 \
  -v /path/to/appdata/config:/config \
  -v /path/to/appdata/data:/data \
  --restart unless-stopped \
  lscr.io/linuxserver/paperless-ngx:latest

Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 8000 http gui
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=America/New_York Specify a timezone to use EG America/New_York
-e REDIS_URL= Specify an external redis instance to use. Can optionally include a port (redis:6379) and/or db (redis/foo). If left blank or not included, will use a built-in redis instance. If changed after initial setup will also require manual modification of /config/settings.py
-v /config Contains all relevant configuration files.
-v /data Storage location for all paperless-ngx data files.

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__PASSWORD=/run/secrets/mysecretpassword

Will set the environment variable PASSWORD based on the contents of the /run/secrets/mysecretpassword file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id user as below:

  $ id username
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running: docker exec -it paperless-ngx /bin/bash
  • To monitor the logs of the container in realtime: docker logs -f paperless-ngx
  • container version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' paperless-ngx
  • image version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/paperless-ngx:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update all images: docker-compose pull
    • or update a single image: docker-compose pull paperless-ngx
  • Let compose update all containers as necessary: docker-compose up -d
    • or update a single container: docker-compose up -d paperless-ngx
  • You can also remove the old dangling images: docker image prune

Via Docker Run

  • Update the image: docker pull lscr.io/linuxserver/paperless-ngx:latest
  • Stop the running container: docker stop paperless-ngx
  • Delete the container: docker rm paperless-ngx
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)
  • You can also remove the old dangling images: docker image prune

Via Watchtower auto-updater (only use if you don't remember the original parameters)

  • Pull the latest image at its tag and replace it with the same env variables in one run:

    docker run --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower \
    --run-once paperless-ngx
  • You can also remove the old dangling images: docker image prune

Note: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.

Image Update Notifications - Diun (Docker Image Update Notifier)

  • We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-paperless-ngx.git
cd docker-paperless-ngx
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/paperless-ngx:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 05.09.22: - Deprecate.
  • 16.05.22: - Add correct libqpdf.so to arm builds.
  • 14.05.22: - Fine tune disabling of redis.
  • 12.05.22: - Move migrations to after multilangocr mod. Fix disabling of redis. Add missing dep for postgresql.
  • 12.05.22: - Utilize lsio wheel for pikepdf.
  • 11.05.22: - Update upstream artifact name and utilize lsio wheels for scipy and scikit-learn.
  • 05.05.22: - Add runtime dependencies libxslt1.1 for armhf
  • 30.04.22: - Add runtime dependencies lizbar and poppler-utils
  • 27.04.22: - Add build-dependencies for arm32 builds.
  • 11.04.22: - Replaced uwsgi with gunicorn due to websocket issues.
  • 11.03.22: - Initial Release.

docker-paperless-ngx's People

Contributors

1wilkens avatar alex-phillips avatar aptalca avatar darkmattercoder avatar j0nnymoe avatar nemchik avatar roxedus avatar rynr avatar thespad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-paperless-ngx's Issues

Error while processing gmail account

Expected Behavior

Process mail-attachments in PDF format.

Current Behavior

paperless.log reports: Error while processing mail account
mail.log: Error while authenticating account

Steps to Reproduce

Every 10 minutes I get an error in the logs.

e-mail-account configured in paperless-ngx:

Name: [email protected]
IMAP-Server: imap.gmail.com
IMAP-Port: 993
IMAP-Security: Use SSL
Username: [email protected]
Password: *********

Environment

OS: Ubuntu 20.04 LTS server
CPU architecture: x86_64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

docker-compose.yml:

version: "2.1"
services:
paperless-ngx:
image: lscr.io/linuxserver/paperless-ngx:latest
container_name: paperless-ngx
volumes:
- /home/john/docker/paperless-ngx:/config
- /mnt/nas/paperless-ngx:/data
env_file: docker-compose.env
environment:
- PUID=1000
- PGID=1000
ports:
- 8601:8000
restart: unless-stopped

Docker logs

paperless.log:

[2022-09-02 16:45:50,875] [ERROR] [paperless.mail.tasks] Error while processing mail account [email protected]
Traceback (most recent call last):
File "/app/paperless/src/paperless_mail/mail.py", line 180, in handle_mail_account
M.login(account.username, account.password)
File "/usr/local/lib/python3.8/dist-packages/imap_tools/mailbox.py", line 65, in login
check_command_status(login_result, MailboxLoginError)
File "/usr/local/lib/python3.8/dist-packages/imap_tools/utils.py", line 46, in check_command_status
raise exception(command_result=command_result, expected=expected)
imap_tools.errors.MailboxLoginError: Response status "OK" expected, but "NO" received. Data: [b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)']
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/paperless/src/paperless_mail/tasks.py", line 15, in process_mail_accounts
total_new_documents += MailAccountHandler().handle_mail_account(account)
File "/app/paperless/src/paperless_mail/mail.py", line 212, in handle_mail_account
raise MailError(
paperless_mail.mail.MailError: Error while authenticating account [email protected]

mail.log:

[2022-09-02 16:45:50,598] [DEBUG] [paperless_mail] Processing mail account [email protected]
[2022-09-02 16:45:50,854] [ERROR] [paperless_mail] Error while authenticating account [email protected]: Response status "OK" expected, but "NO" received. Data: [b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)']

Migration from paperless-ng fails, because language is not installed

linuxserver.io


Expected Behavior

As mentioned in the official documentation, ngx should be a "drop-in replacement for Paperless-ng and thus upgrading should be trivial for most users". Sadly it isn't for me 🙃

Current Behavior

I am using unraid as the docker host and haven't found an option to set PAPERLESS_OCR_LANGUAGE or PAPERLESS_OCR_LANGUAGES via variables. This is the error:

The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE

Steps to Reproduce

  1. install old paperless-ng via docker https://github.com/jonaswinkler/paperless-ng
  2. set German language via variable
  3. replace the url as mentioned in the migration-documentation: https://paperless-ngx.readthedocs.io/en/latest/setup.html#migrating-from-paperless-ng
  4. try to open your migrated ngx / logs

Environment

OS: Unraid OS 6.9.2
CPU architecture: x86_64
How docker service was installed: out-of-the-box OS provided

Command used to create docker container (run/create/compose/screenshot)

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='paperless-ngx' --net='bridge' --privileged=true -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'PAPERLESS_REDIS'='redis://:[email protected]:6379' -e 'PAPERLESS_OCR_LANGUAGE'='deu' -e 'PAPERLESS_OCR_LANGUAGES'='deu' -e 'PAPERLESS_FILENAME_FORMAT'='{created}-{correspondent}-{title}' -e 'PAPERLESS_TIME_ZONE'='Europe/Berlin' -e 'PAPERLESS_IGNORE_DATES'='' -e 'PAPERLESS_CONSUMER_POLLING'='0' -e 'PAPERLESS_SECRET_KEY'='notimportant' -e 'USERMAP_UID'='99' -e 'USERMAP_GID'='100' -p '8301:8000/tcp' -v '/mnt/user/appdata/paperless-ng/data':'/usr/src/paperless/data':'rw' -v '/mnt/user/appdata/paperless-ng/media':'/usr/src/paperless/media':'rw' -v '/mnt/user/scannedDocuments/':'/usr/src/paperless/consume':'rw' -v '/mnt/user/appdata/paperless-ng/export':'/usr/src/paperless/export':'rw' 'lscr.io/linuxserver/paperless-ngx'

Docker logs

os: Linux-5.10.28-Unraid #1 SMP Wed Apr 7 08:23:18 PDT 2021
nodename: c1f640325733
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /app/paperless/src
detected binary path: /usr/bin/uwsgi-core
your processes number limit is 256306
your memory page size is 4096 bytes
detected max file descriptor number: 40960
building mime-types dictionary from file /etc/mime.types...567 entry found
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address :8000 fd 3
Python version: 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]

Python main interpreter initialized at 0x55cd0c9801d0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 145840 bytes (142 KB) for 1 cores
*** Operational MODE: single process ***
running "exec:/usr/bin/python3 /app/paperless/src/manage.py collectstatic --noinput" (pre app)...

166 static files copied to '/app/paperless/static', 277 unmodified.
running "exec:/usr/bin/python3 /app/paperless/src/manage.py compilemessages" (pre app)...
File “/app/paperless/src/locale/km_KH/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/sl_SI/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/no_NO/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/pl_PL/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/cs_CZ/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/th_TH/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/nb_NO/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ru_RU/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ko_KR/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/da_DK/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ar_EG/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/lb_LU/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/it_IT/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ar_BH/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/en_GB/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/es_ES/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/xh_ZA/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/la_LA/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ar_SA/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/en_US/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/nl_NL/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/he_IL/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/pt_PT/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/zh_TW/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/el_GR/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/pt_BR/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/fr_FR/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/hu_HU/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/sv_SE/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ro_RO/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/zh_CN/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/ar_YE/LC_MESSAGES/django.po” is already compiled and up to date.
File “/app/paperless/src/locale/de_DE/LC_MESSAGES/django.po” is already compiled and up to date.
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x55cd0c9801d0 pid: 355 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 355)
spawned uWSGI worker 1 (pid: 390, cores: 1)
[uwsgi-daemons] spawning "/usr/bin/python3 /app/paperless/src/manage.py document_consumer" (uid: 911 gid: 911)
[uwsgi-daemons] spawning "/usr/bin/python3 /app/paperless/src/manage.py qcluster" (uid: 911 gid: 911)
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
[uwsgi-daemons] throttling "/usr/bin/python3 /app/paperless/src/manage.py document_consumer" for 1 seconds
[uwsgi-daemons] throttling "/usr/bin/python3 /app/paperless/src/manage.py qcluster" for 1 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 /app/paperless/src/manage.py document_consumer" (uid: 911 gid: 911)
[uwsgi-daemons] respawning "/usr/bin/python3 /app/paperless/src/manage.py qcluster" (uid: 911 gid: 911)
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
[uwsgi-daemons] throttling "/usr/bin/python3 /app/paperless/src/manage.py document_consumer" for 1 seconds
[uwsgi-daemons] throttling "/usr/bin/python3 /app/paperless/src/manage.py qcluster" for 1 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 /app/paperless/src/manage.py document_consumer" (uid: 911 gid: 911)
[uwsgi-daemons] respawning "/usr/bin/python3 /app/paperless/src/manage.py qcluster" (uid: 911 gid: 911)
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
[uwsgi-daemons] throttling "/usr/bin/python3 /app/paperless/src/manage.py document_consumer" for 1 seconds
[uwsgi-daemons] throttling "/usr/bin/python3 /app/paperless/src/manage.py qcluster" for 1 seconds
SystemCheckError: System check identified some issues:

ERRORS:
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.

`libqpdf.so.28: cannot open shared object file: No such file or directory` when importing a document

linuxserver.io

When uploading a document, this error turns up:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/__init__.py", line 13, in <module>
    from . import _qpdf
ImportError: libqpdf.so.28: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pydoc.py", line 347, in safeimport
    module = __import__(path)
  File "/app/paperless/src/documents/tasks.py", line 24, in <module>
    from pikepdf import Pdf
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/__init__.py", line 16, in <module>
    raise ImportError(_msg) from _e
ImportError: pikepdf's extension library failed to import

Expected Behavior

The document can be imported without problems.

Current Behavior

When uploading a document, the UI hangs. In the logs, I can find the above error.

Steps to Reproduce

  1. Upload a document
  2. Wait
  3. Read logs
  4. Find error

Environment

OS: Manjaro
CPU architecture: arm64
How docker service was installed: From distro repo

Command used to create docker container (run/create/compose/screenshot)

docker create -e DOCKER_MODS=linuxserver/mods:papermerge-multilangocr -e OCRLANG="deu,eng" linuxserver/paperless-ngx

Docker logs

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/__init__.py", line 13, in <module>
    from . import _qpdf
ImportError: libqpdf.so.28: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pydoc.py", line 347, in safeimport
    module = __import__(path)
  File "/app/paperless/src/documents/tasks.py", line 24, in <module>
    from pikepdf import Pdf
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/__init__.py", line 16, in <module>
    raise ImportError(_msg) from _e
ImportError: pikepdf's extension library failed to import

Update redis to latest version

linuxserver.io

Expected Behavior

The latest docker-paperless-ngx image should pull the latest redis server.

Current Behavior

The default, ancient redis is installed from ubuntu's repo.
This old version has severe performance issues, increasing the idling CPU resource of paperless-ngx. See also paperless-ngx/paperless-ngx#1084

Steps to Reproduce

Create a new container

The fix

Part 1

Please add the following core (official way to install redis) before this line

curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list

The rest is fine - the apt-get update then apt-get install redis will fetch it from the official redis repo rather than the outdated ubuntu repo.

MUST update the redis config

Part 2

The defaults changed, so you'll also need to add this (disable persistence) to the redis config

appendonly no
save ""

Upload fails with documents.parsers.ParseError: TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

linuxserver.io


Expected Behavior

An uploaded image should be stored and processed by OCR

Current Behavior

The upload crashes on certain images (maybe of a certain size?)

Steps to Reproduce

  1. Capture picture (decent size, e.g. full A4 of text, approx 700KB) in the Android APP
  2. Crop
  3. Upload
  4. Observe the Logs on the server

Environment

OS: Synology
CPU architecture: linux x86_64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker-compose:

version: "3"
services:
  paperless:
    container_name: paperless
    cpu_percent: 25
    mem_limit: 256m
    image: linuxserver/paperless-ngx:latest
    network_mode: "bridge"
    restart: always
    ports:
      - 6688:8000 # host:container
    volumes:
      - ${LOCAL_SOC_LOCATION}/paperless/data:/data
      - ${APP_DATA_LOCATION}/paperless-ngx:/config
    environment:
      - PAPERLESS_DATA_DIR=/config
      - PAPERLESS_MEDIA_ROOT=/data/media
      - PAPERLESS_CONSUMPTION_DIR=/data/consume
 

Docker logs

[2022-07-08 06:29:09,422] [DEBUG] [paperless.parsing.tesseract] Deleting directory /tmp/paperless/paperless-xlzgcu_k

[2022-07-08 06:29:09,454] [ERROR] [paperless.consumer] Error while consuming document crop_5547.jpeg: TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

Traceback (most recent call last):

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_exec/tesseract.py", line 226, in get_deskew

    p = run(args_tesseract, stdout=PIPE, stderr=STDOUT, timeout=timeout, check=True)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/subprocess/__init__.py", line 53, in run

    proc = subprocess_run(args, env=env, **kwargs)

  File "/usr/lib/python3.8/subprocess.py", line 516, in run

    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['tesseract', '-l', 'eng', '--psm', '2', '/tmp/ocrmypdf.io._d8p80vg/000001_rasterize.png', 'stdout']' died with <Signals.SIGKILL: 9>.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/builtin_plugins/concurrency.py", line 135, in _execute

    result = future.result()

  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result

    return self.__get_result()

  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result

    raise self._exception

  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run

    result = self.fn(*self.args, **self.kwargs)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_sync.py", line 192, in exec_page_sync

    ocr_image, preprocess_out = make_intermediate_images(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_sync.py", line 135, in make_intermediate_images

    preprocess_out = preprocess(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_sync.py", line 106, in preprocess

    image = preprocess_deskew(image, page_context)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_pipeline.py", line 488, in preprocess_deskew

    deskew_angle_degrees = ocr_engine.get_deskew(input_file, page_context.options)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/builtin_plugins/tesseract_ocr.py", line 167, in get_deskew

    return tesseract.get_deskew(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_exec/tesseract.py", line 237, in get_deskew

    raise SubprocessOutputError() from e

ocrmypdf.exceptions.SubprocessOutputError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/paperless/src/paperless_tesseract/parsers.py", line 261, in parse

    ocrmypdf.ocr(**args)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/api.py", line 337, in ocr

    return run_pipeline(options=options, plugin_manager=plugin_manager, api=True)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_sync.py", line 385, in run_pipeline

    exec_concurrent(context, executor)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_sync.py", line 274, in exec_concurrent

    executor(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_concurrent.py", line 82, in __call__

    self._execute(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/builtin_plugins/concurrency.py", line 148, in _execute

    executor.shutdown(wait=False, cancel_futures=True)

TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/paperless/src/documents/consumer.py", line 261, in try_consume_file

    document_parser.parse(self.path, mime_type, self.filename)

  File "/app/paperless/src/paperless_tesseract/parsers.py", line 314, in parse

    raise ParseError(f"{e.__class__.__name__}: {str(e)}")

documents.parsers.ParseError: TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

I assume this issue is related to an upgrade of Python to 3.8. A similar issue was reported on this project here: DiscordTime/ggdrive#56

Could you please add the package in public ? Thanks :-)

linuxserver.io


Expected Behavior

Pulling "lscr.io/linuxserver/paperless-ngx:arm64v8-latest" should get the latest image.

Current Behavior

It works with dockerhub image, but fails with ghcr ones (Head "https://ghcr.io/v2/linuxserver/paperless-ngx/manifests/arm32v7-latest": unauthorized)

Steps to Reproduce

  1. Use an incognito browser page, or a browser without being logged
  2. Go to https://ghcr.io/v2/linuxserver/paperless-ngx/manifests/arm32v7-latest

Environment

OS: Linux
CPU architecture: aarch64
How docker service was installed: Using Home Assistant OS

Command used to create docker container (run/create/compose/screenshot)

Docker logs

ARMv7 - libxslt.so.1: cannot open shared object file

linuxserver.io


Expected Behavior

Import PDFs via Drag&Drop when running on a Rhaspberry Pi ARMv7.

Current Behavior

Import fails without an error message.

Steps to Reproduce

  1. Run docker-paperless-ngx on a Rhaspberry Pi ARMv7 like described on docker hub.
  2. Wait for paperless-ngx to start.
  3. Access http://localhost:8000/
  4. Login using admin/admin
  5. Try to upload a pdf with drag&drop.
  6. Checkout the logs.

Environment

OS: Linux / Debian
CPU architecture: ARMv7
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

I started it via ansible. The task is:

- name: Create paperless-ng container
  community.docker.docker_container:
    name: paperless-ng
    image: linuxserver/paperless-ngx:1.7.0
    restart_policy: unless-stopped
    env:
      PUID: "1000"
      PGID: "1000"
      TZ: UTC
    volumes:
      - paperless-ngx-config:/config
      - paperless-ngx-data:/data
    container_default_behavior: compatibility

Docker logs

Process Process-1:9:
Traceback (most recent call last):
  File "/usr/lib/python3.8/pydoc.py", line 347, in safeimport
    module = __import__(path)
  File "/app/paperless/src/documents/tasks.py", line 24, in <module>
    from pikepdf import Pdf
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/__init__.py", line 55, in <module>
    from .models import (
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/models/__init__.py", line 20, in <module>
    from .metadata import PdfMetadata
  File "/usr/local/lib/python3.8/dist-packages/pikepdf/models/metadata.py", line 29, in <module>
    from lxml import etree
ImportError: libxslt.so.1: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/django_q/cluster.py", line 424, in worker
    f = pydoc.locate(f)
  File "/usr/lib/python3.8/pydoc.py", line 1632, in locate
    nextmodule = safeimport('.'.join(parts[:n+1]), forceload)
  File "/usr/lib/python3.8/pydoc.py", line 362, in safeimport
    raise ErrorDuringImport(path, sys.exc_info())
pydoc.ErrorDuringImport: problem in documents.tasks - ImportError: libxslt.so.1: cannot open shared object file: No such file or directory
16:23:55 [Q] ERROR reincarnated worker Process-1:9 after death

(Default) User Account

Hello. Thank you for creating an image for paperless-ngx. It will be very useful to me and I'm sure a lot of people.
I set up the containers using the docker run method (since I'm not that familiar with docker-compose).
Everything looks like it worked like it should, but I can't figure out how to login or create the default admin account. I've read through the docs and tried a few things but nothing worked. I found a method using docker-compose but since I'm using the docker run method wasn't able to try it. Do you have any suggestions or ideas?

Thanks in advance,
Adit

Files (pdf) in the consume folder are not processed automatically

Expected Behavior

Files in consume folder should be automatically processed by paperless-ngx

Current Behavior

Nothing happens after saving pdf files into to consume folder

Steps to Reproduce

Environment

**OS: Ubunti 20.04
**CPU architecture: x86_64
How docker service was installed:
Using the provided docker-compose.yml with some changes regarding the port and paths.

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d

Docker logs

Superfluous "$" in cont-init.d/50-config

linuxserver.io


Expected Behavior

Redis service config should be removed by 50-config if the environment variable REDIS_URL is set

Current Behavior

The redis service is started anyway because of the superfluous "$" that fails the check if REDIS_URL was set. I prepared a quick-fix PR but opened this issue as your PR template suggested (typo in code).

Steps to Reproduce

  1. Set REDIS_URL to anything

Environment

OS: n/a
CPU architecture: n/a
How docker service was installed: n/a

Command used to create docker container (run/create/compose/screenshot)

Docker logs

Missing CIDSubst Fallback font

Expected Behavior

paperless-ngx / ghostscript consumes PDF and correctly rasterizes content

Current Behavior

This particular PDF does not contain embedded fonts or CID fonts (bad practice, but happens). GS tries to find an alternative, finally attempts fallback to CID font "CIDFallBack" but is unable due to to a broken symlink:
/usr/share/ghostscript/9.50/Resource/CIDFSubst/DroidSansFallback.ttf -> ../../../../fonts/truetype/droid/DroidSansFallbackFull.ttf

Steps to Reproduce

  1. Locate PDF as described without fonts, requiring GS to find an alternative (can't provide mine as it contains identifiable info)
  2. Upload via paperless-ngx webgui or console eg. gs /path/to/document.pdf

FIX: confirmed issue is resolved by staging a copy of DroidSansFallbackFull.ttf into /usr/share/fonts/truetype/droid Incidentally, "droid" dir does not exist in docker container, had to create manually, prior to staging the ttf file

Environment

OS: Unraid 6.10.0
CPU architecture: x86_64
How docker service was installed: Community Apps / Unraid Docker Config

Command used to create docker container (run/create/compose/screenshot)

Start container via Unraid dockerman from gui

Docker logs

paperless-ngx-docker.log

webui connection reset

linuxserver.io


Expected Behavior

paperless ngx docker not working on unraid,

Current Behavior

connection reset when opening webui.

Steps to Reproduce

1.install paperless ngx docker from CA
2.
3.
4.

Environment

OS: Unraid
CPU architecture: x86_64
How docker service was installed:

From CA using default parameters, except port mapping

Command used to create docker container (run/create/compose/screenshot)

Docker logs

21:02:06 [Q] INFO Process-1:1 ready for work at 439
21:02:06 [Q] INFO Process-1:2 ready for work at 440
21:02:06 [Q] INFO Process-1:3 ready for work at 441
21:02:06 [Q] INFO Process-1:4 ready for work at 442
21:02:06 [Q] INFO Process-1:5 monitoring at 443
21:02:06 [Q] INFO Process-1 guarding cluster zulu-hot-jupiter-four
21:02:06 [Q] INFO Process-1:6 pushing tasks at 444
21:02:06 [Q] INFO Q Cluster zulu-hot-jupiter-four running.
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
21:02:36 [Q] INFO Enqueued 1
21:02:36 [Q] INFO Process-1 created a task from schedule [Train the classifier]
21:02:36 [Q] INFO Process-1:1 processing [eight-pluto-nuts-montana]
21:02:36 [Q] INFO Enqueued 1
21:02:36 [Q] INFO Process-1 created a task from schedule [Optimize the index]
21:02:36 [Q] INFO Process-1:2 processing [papa-oranges-arizona-earth]
21:02:36 [Q] INFO Enqueued 1
21:02:36 [Q] INFO Process-1 created a task from schedule [Perform sanity check]
21:02:36 [Q] INFO Enqueued 1
21:02:36 [Q] INFO Process-1 created a task from schedule [Check all e-mail accounts]
21:02:36 [Q] INFO Process-1:3 processing [leopard-echo-bacon-uniform]
21:02:36 [Q] INFO Process-1:4 processing [oklahoma-cat-seventeen-jersey]
21:02:36 [Q] INFO Process-1:4 stopped doing work
21:02:36 [Q] INFO Processed [oklahoma-cat-seventeen-jersey]
21:02:36 [Q] INFO Process-1:1 stopped doing work
[2022-04-05 21:02:36,490] [INFO] [paperless.sanity_checker] Sanity checker detected no issues.
21:02:36 [Q] INFO Process-1:3 stopped doing work
21:02:36 [Q] INFO Process-1:2 stopped doing work
21:02:36 [Q] INFO Processed [eight-pluto-nuts-montana]
21:02:36 [Q] INFO Processed [leopard-echo-bacon-uniform]
21:02:36 [Q] INFO Processed [papa-oranges-arizona-earth]
21:02:36 [Q] INFO recycled worker Process-1:1
21:02:36 [Q] INFO Process-1:7 ready for work at 451
21:02:36 [Q] INFO recycled worker Process-1:3
21:02:36 [Q] INFO Process-1:8 ready for work at 452
21:02:37 [Q] INFO recycled worker Process-1:2
21:02:37 [Q] INFO Process-1:9 ready for work at 453
21:02:37 [Q] INFO recycled worker Process-1:4
21:02:37 [Q] INFO Process-1:10 ready for work at 454
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip
invalid HTTP request size (max 4096)...skip

Error loading psycopg2 module: libpq.so.5: cannot open shared object file: No such file or directory

linuxserver.io


Expected Behavior

When configured to run against a Postgresql host, it should be able to connect to the host.

Current Behavior

Paperless-ngx fails to start with the error in the title.

Steps to Reproduce

Compose configuration:

  paperless-ng:
    image: lscr.io/linuxserver/paperless-ngx:latest
    container_name: paperless-ng
    environment:
      - PUID=1001
      - PGID=100
      - TZ=Europe/London
      - PAPERLESS_DBHOST=postgres
      - PAPERLESS_OCR_MODE=skip_noarchive
      - PAPERLESS_FILENAME_FORMAT={document_type}/{title}
      # - DOCKER_MODS=chooban/universal-pip3-install:latest
      # - INSTALL_PACKAGES=psycopg2-binary
    volumes:
      - /share/CACHEDEV1_DATA/Config/paperlessng:/config
      - /share/CACHEDEV2_DATA/documents:/data
    ports:
      - 8000:8000
    restart: unless-stopped
  postgres:
    image: postgres:13
    restart: unless-stopped
    container_name: postgres
    volumes:
      - /share/CACHEDEV1_DATA/Config/postgres/:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: paperless
      POSTGRES_USER: paperless
      POSTGRES_PASSWORD: paperless

Running the container with that fails to start the paperless service. I have a small mod that I use to add python modules in a few containers and by using that (see commented lines above) the service starts, so it seems to be a missing dependancy.

Environment

OS: Linux
CPU architecture: x86_64
How docker service was installed: QNAP NAS provided

Command used to create docker container (run/create/compose/screenshot)

Docker logs

Waiting for redis to become available...
[2022-05-08 09:49:02 +0000] [965] [INFO] Starting gunicorn 20.1.0
[2022-05-08 09:49:02 +0000] [965] [INFO] Listening at: http://0.0.0.0:8000 (965)
[2022-05-08 09:49:02 +0000] [965] [INFO] Using worker: paperless.workers.ConfigurableWorker
[2022-05-08 09:49:02 +0000] [965] [INFO] Server is ready. Spawning workers
[2022-05-08 09:49:02 +0000] [965] [WARNING] Worker with pid 981 was terminated due to signal 15
[2022-05-08 09:49:02 +0000] [965] [INFO] Shutting down: Master
[2022-05-08 09:49:02 +0000] [965] [INFO] Reason: Worker failed to boot.
Waiting for redis to become available...
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/django/db/backends/postgresql/base.py", line 24, in <module>
    import psycopg2 as Database
  File "/usr/local/lib/python3.8/dist-packages/psycopg2/__init__.py", line 51, in <module>
    from psycopg2._psycopg import (                     # noqa
ImportError: libpq.so.5: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 420, in execute
    django.setup()
  File "/usr/local/lib/python3.8/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.8/dist-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.8/dist-packages/django/apps/config.py", line 304, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/dist-packages/django/contrib/auth/models.py", line 3, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File "/usr/local/lib/python3.8/dist-packages/django/contrib/auth/base_user.py", line 49, in <module>
    class AbstractBaseUser(models.Model):
  File "/usr/local/lib/python3.8/dist-packages/django/db/models/base.py", line 141, in __new__
    new_class.add_to_class("_meta", Options(meta, app_label))
  File "/usr/local/lib/python3.8/dist-packages/django/db/models/base.py", line 369, in add_to_class
    value.contribute_to_class(cls, name)
  File "/usr/local/lib/python3.8/dist-packages/django/db/models/options.py", line 235, in contribute_to_class
    self.db_table, connection.ops.max_name_length()
  File "/usr/local/lib/python3.8/dist-packages/django/utils/connection.py", line 15, in __getattr__
    return getattr(self._connections[self._alias], item)
  File "/usr/local/lib/python3.8/dist-packages/django/utils/connection.py", line 62, in __getitem__
    conn = self.create_connection(alias)
  File "/usr/local/lib/python3.8/dist-packages/django/db/utils.py", line 208, in create_connection
    backend = load_backend(db["ENGINE"])
  File "/usr/local/lib/python3.8/dist-packages/django/db/utils.py", line 113, in load_backend
    return import_module("%s.base" % backend_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.8/dist-packages/django/db/backends/postgresql/base.py", line 28, in <module>
    raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: libpq.so.5: cannot open shared object file: No such file or directory
Waiting for redis to become available...
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/django/db/backends/postgresql/base.py", line 24, in <module>
    import psycopg2 as Database
  File "/usr/local/lib/python3.8/dist-packages/psycopg2/__init__.py", line 51, in <module>
    from psycopg2._psycopg import (                     # noqa
ImportError: libpq.so.5: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 420, in execute
    django.setup()
  File "/usr/local/lib/python3.8/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.8/dist-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.8/dist-packages/django/apps/config.py", line 304, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/dist-packages/django/contrib/auth/models.py", line 3, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File "/usr/local/lib/python3.8/dist-packages/django/contrib/auth/base_user.py", line 49, in <module>
    class AbstractBaseUser(models.Model):
  File "/usr/local/lib/python3.8/dist-packages/django/db/models/base.py", line 141, in __new__
    new_class.add_to_class("_meta", Options(meta, app_label))
  File "/usr/local/lib/python3.8/dist-packages/django/db/models/base.py", line 369, in add_to_class
    value.contribute_to_class(cls, name)
  File "/usr/local/lib/python3.8/dist-packages/django/db/models/options.py", line 235, in contribute_to_class
    self.db_table, connection.ops.max_name_length()
  File "/usr/local/lib/python3.8/dist-packages/django/utils/connection.py", line 15, in __getattr__
    return getattr(self._connections[self._alias], item)
  File "/usr/local/lib/python3.8/dist-packages/django/utils/connection.py", line 62, in __getitem__
    conn = self.create_connection(alias)
  File "/usr/local/lib/python3.8/dist-packages/django/db/utils.py", line 208, in create_connection
    backend = load_backend(db["ENGINE"])
  File "/usr/local/lib/python3.8/dist-packages/django/db/utils.py", line 113, in load_backend
    return import_module("%s.base" % backend_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.8/dist-packages/django/db/backends/postgresql/base.py", line 28, in <module>
    raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: libpq.so.5: cannot open shared object file: No such file or directory
Waiting for redis to become available...
[2022-05-08 09:49:13 +0000] [983] [INFO] Starting gunicorn 20.1.0
[2022-05-08 09:49:13 +0000] [983] [INFO] Listening at: http://0.0.0.0:8000 (983)
[2022-05-08 09:49:13 +0000] [983] [INFO] Using worker: paperless.workers.ConfigurableWorker
[2022-05-08 09:49:13 +0000] [983] [INFO] Server is ready. Spawning workers
[2022-05-08 09:49:13 +0000] [983] [WARNING] Worker with pid 998 was terminated due to signal 15
[2022-05-08 09:49:14 +0000] [983] [INFO] Shutting down: Master
[2022-05-08 09:49:14 +0000] [983] [INFO] Reason: Worker failed to boot.
Waiting for redis to become available...

Missing font (LiberationSerif-Regular.ttf) causes Traceback on file import

On a fresh install, when you try to add a .txt document (probably any document), via the web or ./data/consume folder, you get a traceback in the logs and the file is not added.


Expected Behavior

Adding a file should add the file :)

Current Behavior

Adding a file via web or ./data/consume you get the following error

8:49:31 [Q] ERROR Failed [test.txt] - cannot open resource : Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/django_q/cluster.py", line 432, in worker
    res = f(*task["args"], **task["kwargs"])
  File "/app/paperless/src/documents/tasks.py", line 298, in consume_file
    document = Consumer().try_consume_file(
  File "/app/paperless/src/documents/consumer.py", line 265, in try_consume_file
    thumbnail = document_parser.get_optimised_thumbnail(
  File "/app/paperless/src/documents/parsers.py", line 320, in get_optimised_thumbnail
    thumbnail = self.get_thumbnail(document_path, mime_type, file_name)
  File "/app/paperless/src/paperless_text/parsers.py", line 28, in get_thumbnail
    font = ImageFont.truetype(
  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageFont.py", line 878, in truetype
    return freetype(font)
  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageFont.py", line 875, in freetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageFont.py", line 226, in __init__
    self.font = core.getfont(
OSError: cannot open resource

Steps to Reproduce

  1. Fresh install of paperless-ngx from dockerhub
  2. log into web panel
  3. upload a document
  4. check docker logs paperless-ngx

Environment

OS:
CPU architecture: x86_64
How docker service was installed:

dockerhub, via docker run ...

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name paperless-ngx --restart=always \
-p 8844:8000 \
-v /docker/paperless-ngx/config:/config \
-v /docker/paperless-ngx/data:/data \
--env PUID=1000 --env PGID=1000 \
--env TZ=America/Los_Angeles \
-l "diun.enable=true"
linuxserver/paperless-ngx:latest

Docker logs

see above

How to fix

See the config for PAPERLESS_THUMBNAIL_FONT_NAME https://paperless-ngx.readthedocs.io/en/latest/configuration.html?highlight=font#software-tweaks

PAPERLESS_THUMBNAIL_FONT_NAME=<filename>
Paperless creates thumbnails for plain text files by rendering the content of the file on an image and uses a predefined font for that. This font can be changed here.

Note that this won’t have any effect on already generated thumbnails.

Defaults to /usr/share/fonts/liberation/LiberationSerif-Regular.ttf.

Adding the missing file /usr/share/fonts/liberation/LiberationSerif-Regular.ttf allows import to function

Migrations are not executed, when ocr languages are missing (even using ocr-multilang mod)

linuxserver.io

Today I discovered that my e-mail jobs were not executed while listed as successfully in the task overview. Also deleting or modifying rules or accounts for e-mails resulted in a server 500 error. In both cases, the log complained about a missing db table.

Filing a bug in the paperless-ngx project (paperless-ngx/paperless-ngx#936) about this lead to a better understanding what's going on here.

Somehow when the lsio image in the 50-config job finds an error (ocr language is not installed), it does not actually perform the migration steps.

The multilang ocr mod is applied after this script is being run. So probably the docker mod could be loaded earlier?

However once started with the missing ocr language disabled, the container successgfully performed the migrations. I can add the language through the dockermod again afterwards and apparently now it is all back to normal.

Beside being not. Because now everytime you need the migrations, you have to temporarily disable the ocr multilang mod once.


Expected Behavior

Migrations should be executed even when a missing ocr language is detected / the ocr multilang mod is enabled

[cont-init.d] 50-config: executing...
paperless-ngx    | No changes detected
paperless-ngx    | Operations to perform:
paperless-ngx    |   Apply all migrations: admin, auth, authtoken, contenttypes, django_q, documents, paperless_mail, sessions
paperless-ngx    | Running migrations:
paperless-ngx    |   No migrations to apply.
paperless-ngx    | [cont-init.d] 50-config: exited 0.

Current Behavior

Migrations are not run:

[cont-init.d] 50-config: executing... 
paperless-ngx    | SystemCheckError: System check identified some issues:
paperless-ngx    | 
paperless-ngx    | ERRORS:
paperless-ngx    | ?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
paperless-ngx    | SystemCheckError: System check identified some issues:
paperless-ngx    | 
paperless-ngx    | ERRORS:
paperless-ngx    | ?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE.
paperless-ngx    | [cont-init.d] 50-config: exited 0.

Steps to Reproduce

Environment

OS: debian buster
CPU architecture: x86_64
How docker service was installed:

official repo

Command used to create docker container (run/create/compose/screenshot)

env:
DOCKER_MODS=linuxserver/mods:papermerge-multilangocr
OCRLANG=deu
USERMAP_UID=995
USERMAP_GID=995
PAPERLESS_OCR_LANGUAGE=deu+eng
PAPERLESS_FILENAME_FORMAT={correspondent}-{created_year}{created_month}{created_day}-{document_type}-{tag_list}
PAPERLESS_TIME_ZONE=Europe/Berlin

compose:
---
version: "2.1"
services:
  paperless-ngx:
    image: lscr.io/linuxserver/paperless-ngx
    container_name: paperless-ngx
    environment:
      - PUID=${USERMAP_UID}
      - PGID=${USERMAP_GID}
      - TZ=${PAPERLESS_TIME_ZONE}
      - PAPERLESS_TIME_ZONE=${PAPERLESS_TIME_ZONE}
      - DOCKER_MODS=${DOCKER_MODS}
      - OCRLANG=${OCRLANG}
      - PAPERLESS_OCR_LANGUAGE=${PAPERLESS_OCR_LANGUAGE}
      - PAPERLESS_FILENAME_FORMAT=${PAPERLESS_FILENAME_FORMAT}
    volumes:
      - config:/config
      - data:/data
    ports:
      - 8001:8000
    restart: unless-stopped

Docker logs

See in the bug report over at paperless-ngx, there is a full log

UI upload fails, missing libzbar0 package


name: Bug report
about: Create a report to help us improve


linuxserver.io


Expected Behavior

UI upload should work

Current Behavior

UI upload fails

Solution

Missing libzbar0 package. Running

apt install libzbar0

solves the issue.

Steps to Reproduce

Fresh install.

Environment

OS: Ubuntu 21.10
CPU architecture: amd64
How docker service was installed: Installed from official docker repo

Command used to create docker container (run/create/compose/screenshot)

Copied compose text from dockerhub and ran from Portainer stacks.

Docker logs

Process Process-1:1:
Traceback (most recent call last):
File "/usr/lib/python3.8/pydoc.py", line 347, in safeimport
module = import(path)
File "/app/paperless/src/documents/tasks.py", line 25, in
from pyzbar import pyzbar
File "/usr/local/lib/python3.8/dist-packages/pyzbar/pyzbar.py", line 7, in
from .wrapper import (
File "/usr/local/lib/python3.8/dist-packages/pyzbar/wrapper.py", line 151, in
zbar_version = zbar_function(
File "/usr/local/lib/python3.8/dist-packages/pyzbar/wrapper.py", line 148, in zbar_function
return prototype((fname, load_libzbar()))
File "/usr/local/lib/python3.8/dist-packages/pyzbar/wrapper.py", line 127, in load_libzbar
libzbar, dependencies = zbar_library.load()
File "/usr/local/lib/python3.8/dist-packages/pyzbar/zbar_library.py", line 65, in load
raise ImportError('Unable to find zbar shared library')
ImportError: Unable to find zbar shared library
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/dist-packages/django_q/cluster.py", line 424, in worker
f = pydoc.locate(f)
File "/usr/lib/python3.8/pydoc.py", line 1632, in locate
nextmodule = safeimport('.'.join(parts[:n+1]), forceload)
File "/usr/lib/python3.8/pydoc.py", line 362, in safeimport
raise ErrorDuringImport(path, sys.exc_info())
pydoc.ErrorDuringImport: problem in documents.tasks - ImportError: Unable to find zbar shared library

TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

linuxserver.io

I try to upload a simple pdf file via the gui and i get the an error message. I already tried installing afterwards some packages that could be neccessary, from similar issues, but it didn't fix it for me.
I'm working with portainer on a raspberry pi 4. The error message i get:

grafik


Expected Behavior

Upload a file without issues

Current Behavior

Upload a file with issues

Steps to Reproduce

  1. upload a pdf
  2. get the error message

Environment

OS: openmediavault
CPU architecture: ARMv8
How docker service was installed: via openmediavault package management, portainer aswell

Command used to create docker container (run/create/compose/screenshot)

version: "2.1"
services:
  paperless-ngx:
    image: lscr.io/linuxserver/paperless-ngx:latest
    container_name: paperless
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
    volumes:
      - /appdata/paperless:/config
      - /srv/dev-disk-by-uuid-34797fac-e6fb-410c-b5f9-bf6ac6a50b9e/paperless:/data
    ports:
      - 8001:8000
    restart: unless-stopped

Docker logs

[2022-05-29 20:54:39,365] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /data/consume

[2022-05-29 20:55:05,878] [INFO] [paperless.consumer] Consuming kfz.pdf

[2022-05-29 20:55:05,882] [DEBUG] [paperless.consumer] Detected mime type: application/pdf

[2022-05-29 20:55:05,890] [DEBUG] [paperless.consumer] Parser: RasterisedDocumentParser

[2022-05-29 20:55:05,898] [DEBUG] [paperless.consumer] Parsing kfz.pdf...

[2022-05-29 20:55:11,091] [INFO] [paperless.sanity_checker] Sanity checker detected no issues.

[2022-05-29 20:55:11,496] [DEBUG] [paperless.parsing.tesseract] Extracted text from PDF file /tmp/paperless/paperless-upload-m25o3eqb

[2022-05-29 20:55:11,659] [DEBUG] [paperless.parsing.tesseract] Calling OCRmyPDF with args: {'input_file': '/tmp/paperless/paperless-upload-m25o3eqb', 'output_file': '/tmp/paperless/paperless-w60t_auu/archive.pdf', 'use_threads': True, 'jobs': 2, 'language': 'eng', 'output_type': 'pdfa', 'progress_bar': False, 'skip_text': True, 'clean': True, 'deskew': True, 'rotate_pages': True, 'rotate_pages_threshold': 12.0, 'sidecar': '/tmp/paperless/paperless-w60t_auu/sidecar.txt'}

[2022-05-29 20:55:15,716] [DEBUG] [paperless.parsing.tesseract] Deleting directory /tmp/paperless/paperless-w60t_auu

[2022-05-29 20:55:15,728] [ERROR] [paperless.consumer] Error while consuming document kfz.pdf: TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

Traceback (most recent call last):

  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run

    result = self.fn(*self.args, **self.kwargs)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 638, in _pdf_pageinfo_sync

    page = PageInfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 716, in __init__

    self._gather_pageinfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 762, in _gather_pageinfo

    for ci in _process_content_streams(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 565, in _process_content_streams

    yield from _find_regular_images(container, contentsinfo)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 483, in _find_regular_images

    yield ImageInfo(name=draw.name, pdfimage=pdfimage, shorthand=draw.shorthand)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 353, in __init__

    pim_icc = pim.icc

  File "/usr/local/lib/python3.8/dist-packages/pikepdf/models/image.py", line 479, in icc

    self._icc = ImageCms.ImageCmsProfile(iccbytesio)

  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageCms.py", line 202, in __init__

    self._set(core.profile_frombytes(profile.read()))

  File "/usr/local/lib/python3.8/dist-packages/PIL/_util.py", line 19, in __getattr__

    raise self.ex

  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run

    result = self.fn(*self.args, **self.kwargs)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 638, in _pdf_pageinfo_sync

    page = PageInfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 716, in __init__

    self._gather_pageinfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 762, in _gather_pageinfo

    for ci in _process_content_streams(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 565, in _process_content_streams

    yield from _find_regular_images(container, contentsinfo)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 483, in _find_regular_images

    yield ImageInfo(name=draw.name, pdfimage=pdfimage, shorthand=draw.shorthand)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 353, in __init__

    pim_icc = pim.icc

  File "/usr/local/lib/python3.8/dist-packages/pikepdf/models/image.py", line 479, in icc

    self._icc = ImageCms.ImageCmsProfile(iccbytesio)

  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageCms.py", line 202, in __init__

    self._set(core.profile_frombytes(profile.read()))

  File "/usr/local/lib/python3.8/dist-packages/PIL/_util.py", line 19, in __getattr__

    raise self.ex

  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run

    result = self.fn(*self.args, **self.kwargs)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 638, in _pdf_pageinfo_sync

    page = PageInfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 716, in __init__

    self._gather_pageinfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 762, in _gather_pageinfo

    for ci in _process_content_streams(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 565, in _process_content_streams

    yield from _find_regular_images(container, contentsinfo)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 483, in _find_regular_images

    yield ImageInfo(name=draw.name, pdfimage=pdfimage, shorthand=draw.shorthand)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 353, in __init__

    pim_icc = pim.icc

  File "/usr/local/lib/python3.8/dist-packages/pikepdf/models/image.py", line 479, in icc

    self._icc = ImageCms.ImageCmsProfile(iccbytesio)

  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageCms.py", line 202, in __init__

    self._set(core.profile_frombytes(profile.read()))

  File "/usr/local/lib/python3.8/dist-packages/PIL/_util.py", line 19, in __getattr__

    raise self.ex

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/builtin_plugins/concurrency.py", line 135, in _execute

    result = future.result()

  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result

    return self.__get_result()

  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result

    raise self._exception

  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run

    result = self.fn(*self.args, **self.kwargs)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 638, in _pdf_pageinfo_sync

    page = PageInfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 716, in __init__

    self._gather_pageinfo(pdf, pageno, infile, check_pages, detailed_analysis)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 762, in _gather_pageinfo

    for ci in _process_content_streams(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 565, in _process_content_streams

    yield from _find_regular_images(container, contentsinfo)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 483, in _find_regular_images

    yield ImageInfo(name=draw.name, pdfimage=pdfimage, shorthand=draw.shorthand)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 353, in __init__

    pim_icc = pim.icc

  File "/usr/local/lib/python3.8/dist-packages/pikepdf/models/image.py", line 479, in icc

    self._icc = ImageCms.ImageCmsProfile(iccbytesio)

  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageCms.py", line 202, in __init__

    self._set(core.profile_frombytes(profile.read()))

  File "/usr/local/lib/python3.8/dist-packages/PIL/_util.py", line 19, in __getattr__

    raise self.ex

  File "/usr/local/lib/python3.8/dist-packages/PIL/ImageCms.py", line 25, in <module>

    from PIL import _imagingcms

ImportError: cannot import name '_imagingcms' from 'PIL' (/usr/local/lib/python3.8/dist-packages/PIL/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/paperless/src/paperless_tesseract/parsers.py", line 261, in parse

    ocrmypdf.ocr(**args)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/api.py", line 337, in ocr

    return run_pipeline(options=options, plugin_manager=plugin_manager, api=True)

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_sync.py", line 370, in run_pipeline

    pdfinfo = get_pdfinfo(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_pipeline.py", line 163, in get_pdfinfo

    return PdfInfo(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 904, in __init__

    self._pages = _pdf_pageinfo_concurrent(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/pdfinfo/info.py", line 681, in _pdf_pageinfo_concurrent

    executor(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/_concurrent.py", line 82, in __call__

    self._execute(

  File "/usr/local/lib/python3.8/dist-packages/ocrmypdf/builtin_plugins/concurrency.py", line 148, in _execute

    executor.shutdown(wait=False, cancel_futures=True)

TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/paperless/src/documents/consumer.py", line 261, in try_consume_file

    document_parser.parse(self.path, mime_type, self.filename)

  File "/app/paperless/src/paperless_tesseract/parsers.py", line 314, in parse

    raise ParseError(f"{e.__class__.__name__}: {str(e)}")

documents.parsers.ParseError: TypeError: shutdown() got an unexpected keyword argument 'cancel_futures'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.