Software & Applications

Paperless-ngx consumer not picking up files: trace and fix

Paperless-ngx consumer not picking up files? Trace one file from the consume directory to Docker, logs, and import, then fix ingestion safely.

Paperless-ngx document consumer directory and scanner workflow
Paperless-ngx document consumer directory and scanner workflow

If Paperless-ngx is not picking up files, trace one completed test file through each stage. Check the host folder, Docker mount, consumer discovery, OCR, and import. Verify the active path, container visibility, user, and permissions. Then make one small, reversible fix and test again with a new file.

Is the consumer missing the file, or failing after it finds it?

A missing document can fail at several layers. The file may stay on the host, fail to mount, remain unseen by the consumer, or fail after discovery. A file that disappears may have entered OCR, parsing, or import without producing a searchable document.

Use one small PDF created locally on the same host as Docker. Name it something simple, such as paperless-test.pdf. Keep the original outside the consume directory until the result is clear. Do not use a scanner or network share for this first test. Do not use a file that is still being written.

Follow the evidence in order:

  • The file is absent on the host: check the transfer or source application.
  • The file exists on the host but not inside the container: check the active path and volume mount.
  • The container can see it but the consumer does nothing: check consumer settings, polling, permissions, and logs.
  • The file disappears but no document appears: check consumer, worker, OCR, parser, Redis, and PostgreSQL logs before retrying it.
  • The test document appears and is searchable: ingestion works. Compare the original source, filename, timing, and share with the known-good test.

Before you start: prove the active consume path and mount

This workflow assumes a self-hosted installation that you can inspect, commonly Docker Compose. Deployment details vary, so use the running configuration instead of an old Compose file or a browser directory name. If you do not use Compose, use your platform's equivalent commands.

  1. From the directory containing the active Compose file, render the resolved configuration. This includes substitutions from environment files.
Linux shell
docker compose config

Find the volume associated with the consume directory. The left side is the host path. The right side is the container path. /usr/src/paperless/consume is usual in Docker setups, but the active mount is authoritative.

  1. Identify the running services and containers.
Linux shell
docker compose ps
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'

Use the service that runs the Paperless consumer. Do not assume its name is webserver, worker, or paperless.

  1. Put the finished local test file in the host directory shown by the resolved mount. Confirm that it exists there.
Linux shell
ls -l /path/to/host/consume/paperless-test.pdf
  1. Check for the same file inside the running consumer container. Substitute the actual container name and container path.
Linux shell
docker exec -it CONTAINER_NAME sh -lc 'ls -l /container/path/to/consume/paperless-test.pdf'

If the host listing succeeds but the container listing fails, stop. Correct the bind mount or the path used by the file-producing process. Then repeat the visibility test. Restarting Paperless without fixing that boundary only repeats the failure. If the file is visible inside the container, continue to the consumer and permission checks.

Check the container user, permissions, polling, and logs

The consumer must traverse the consume directory and read the file. To remove or move a handled file, it also needs write access to that directory. Check the container identity and ownership before changing settings. Paperless documentation points to USERMAP_UID and USERMAP_GID when host and container users or groups differ.

  1. Inspect the container identity and permissions on the directory and test file.
Linux shell
docker exec -it CONTAINER_NAME sh -lc 'id; ls -ld /container/path/to/consume; ls -l /container/path/to/consume/paperless-test.pdf'

On the host, inspect numeric ownership and mode:

Linux shell
stat -c '%U %G %u:%g %a %n' /path/to/host/consume /path/to/host/consume/paperless-test.pdf

The directory must allow traversal and, when required, writing. If identities or modes do not match, change only the relevant owner, group, or access setting. First confirm the intended values for your installation. Do not start with recursive chown or broad chmod commands.

  1. Read recent logs for the consumer and worker services. Use the service names shown by docker compose ps.
Linux shell
docker compose logs --since=10m SERVICE_NAME

The exact message varies by release. Discovery or permission messages point back to the mount, ownership, or access check. OCR and parser messages mean the file was found and failed later. Redis or PostgreSQL messages indicate downstream trouble, not a missing host file.

Before step 3, check service status and recent logs. The consumer may be stopped or repeatedly restarting. A restart alone does not prove that it is healthy.

  1. Compare startup behavior with later behavior. If files present at startup process but new files are ignored, suspect filesystem-event watching, especially on a network filesystem. Paperless documentation recommends PAPERLESS_CONSUMER_POLLING for this symptom. Polling disables filesystem-change listening and checks the directory manually instead. A report involving NFS describes the same startup-only pattern, but it is only a deployment clue.
  2. Check the environment file and running configuration for PAPERLESS_CONSUMER_POLLING before changing it. If you change it, recreate or restart the relevant services according to your Compose setup. Then repeat the one-file test. Confirm the setting's behavior against current official documentation for your installed release.

Do not delete the consume directory, purge queues, or manually reprocess files while the original job may still run. These actions can destroy evidence or create duplicates.

Check the file when it is visible but no document appears

Visibility inside the container proves the mount works, not the import. Use the next log event to separate consumer discovery from OCR, parsing, and downstream processing. Check the test file first, then compare it with the original source file.

Check both files:

  • Use a supported type for your installation, such as a normal PDF, rather than an archive or application-specific file.
  • Avoid unusual punctuation, very long names, and names that begin with a temporary-file pattern.
  • Confirm that the file is not zero bytes and opens in another program.
  • Copy a completed file into the consume directory. Do not expose one that is still being written.
  • Put the test at the top level unless recursive scanning is deliberately configured. PAPERLESS_CONSUMER_RECURSIVE controls subdirectory scanning. Without it, a nested file may be ignored.

If the local test works but a network-share upload does not, test the share or transfer timing next. A share can be readable inside the container but still fail to provide reliable filesystem events. In that case, use the documented polling setting or transfer completed files into a local watched directory. Confirm the exact setting and behavior against current official documentation for your installed release.

If the source file disappears, check the Paperless document list and logs immediately before restoring it. The consumer may have moved it into OCR, parsing, or another worker stage. Look for OCR-language, parser, Redis, and PostgreSQL errors. Install or configure OCR language support only when logs show an OCR-language problem; it will not fix discovery.

Apply the smallest fix and verify it without duplicates

Once you prove the failing boundary, change only that boundary. Fix a wrong host path with the correct bind mount. Fix missing container visibility with a mount or path correction. Fix permissions with a narrow ownership or access change. For startup-only share ingestion, choose polling or adjust the transfer process. For parser or OCR errors, use a valid file or add the missing processing dependency.

  1. Preserve the original test file and any important source files. Search the Paperless document list before retrying a file that disappeared.
  2. Apply one change. Restart or recreate only the affected service when the setting requires it. Record the host path, container path, service name, container UID and GID, and relevant environment values.
  3. Put one new, uniquely named, completed test file into the verified host directory. Do not copy the same file repeatedly while an earlier attempt might still process.
  4. Watch the relevant service logs while the file is handled.
Linux shell
docker compose logs -f SERVICE_NAME
  1. Confirm that the file was handled according to the configured workflow. Confirm that exactly one document appears in the Paperless web interface with the expected filename or content.

If the test still fails, roll back the last change. Return to the first boundary that remains unproven. A working local test with a failing network-share upload points to the share or transfer timing. A file visible in the container but failing in the worker points to processing or service health. This evidence is safer than repeatedly re-importing files.

Conclusion

Keep the verified host path, container path, mount, container identity, permissions, polling choice, and relevant logs with your deployment notes. If ingestion stops again, start with one new local test file. Prove each boundary before changing configuration.

Frequently Asked Questions

Why does Paperless-ngx consume files at startup but ignore new ones?

That pattern separates startup discovery from later filesystem events. If files process after a restart but new files do not, inspect the watched filesystem and consider PAPERLESS_CONSUMER_POLLING, especially for NFS or another network share. Confirm the active environment and release-specific behavior before changing it.

What permissions does the Paperless-ngx consumer need?

The consumer needs to traverse the consume directory and read the document. It may also need directory write access to remove or move a handled file. Check the numeric container identity and host ownership first. If they differ, review USERMAP_UID and USERMAP_GID instead of applying broad recursive changes.

What does it mean if the file disappears but no document appears?

The file may have moved beyond discovery, so ingestion is not necessarily complete. Check consumer and worker logs, the Paperless document list, and OCR, parsing, Redis, and PostgreSQL errors before retrying. Re-adding it too early can create a duplicate if the original task is still finishing.

Sources

Automation & Infrastructure Desk

Think Tech Editorial

Engineering guides focused on reliable self-hosted workflows, reverse proxies, and production diagnostics.