Benoit Anastay Add-on: Paperless-ngx

Thank you for your answer.
When running the command (to retrain the Auto-classifier) it seems to error out.
Is this a problem with the addon or with paperless directly?

It might be a corrupted database or depreciated commands.

It looks like nothing related to the add-on

1 Like

Thanks for the quick reply. I opened the port 8081. The app uses the API homeassistant.local:8081/api/documents/

I have tested the API on my local browser. Every time I use the ā€œnext buttonā€ the address changes to http://ca5234a0-paperless-ngx/api/documents/?page=2

Is there any possible solution for that or? Havenā€™t found anything in the readme and I am not the ultra pro in programming.

Itā€™s weird, django is using the hostname itā€™s maybe an issue with the reverse proxy, Iā€™ll investigate and follow up the issue to paperless-ngx devs if itā€™s not addon related

I have set the the forwarded host and port in the nginx configuration but port is ignored.

Maybe I missed something, Iā€™ll check that later

Hello Benoit,

Is it currently possible to access your Paperless-ngx from outside? Currently, access seems to be only through the Ingress, if I understand correctly. Hereā€™s an example scenario:

Add-on Cloudflared: config:

- hostname: paperlessngx.custom.domain.com
  service: http://177.168.0.75:8729

If I enter paperlessngx. custom. domain. com in the browser, I should arrive at the login screen without having to log in to a Home Assistant instance.

Youā€™ll have to enable a port in the configuration tab or use nginx proxy manager with local docker network to http://ca5234a0-paperless-ngx (check Hotname value of the add-on)

1 Like

Thank you. My issue was actually with Cloudflare. It wasnā€™t recognizing the port when I linked it to a domain.

You may need to setup a reverse proxy to host all yours addons on 443 and 80 ports.

Dear Benoit,
I installed the plugin yesterday and set the internal and external IPs in the network setup to hxxp://192.168.10.16:8123 and the external one to hxxps://mynabucasa.ui.nabu.casa.

On my PC everything works fine, but when I access paperless from my Tablet (while connected to my WLAN), I get the CSRF error (403]. And the following appears in the log:

2024-02-27 05:53:38,583] [WARNING] [django.security.csrf] Forbidden (Origin checking failed - https://xxxxxxx.ui.nabu.casa does not match any trusted origins.): /api/hassio_ingress/WjsR0TurVQ4KQ7w0s6x75sbCgX6axpzzLUMcU-7ywgA/accounts/login/

Did I configure something wrong, or what is the problem here?

I xx-ed the tt in http, because I cannot post more than 2 links in one post.

Edit: It works from my smartphone, as long as I am connected to my WLAN. Using mobile internet brings the same error. But from my Tablet it does not work, even when connected to WLAN.

Hi,
thank you very much for this gread addon :grinning:
I have newest version with Barcodes consuming: disabled and ASN Barcodes enabled.
Whenever I try to archive a document that includes some EAN barcode import crashes with

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/billiard/pool.py", line 1264, in mark_as_worker_lost
    raise WorkerLostError(
billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 6 (SIGABRT) Job: 179.

when I label barcode with blank paper import works correctly.
Any hints what to do?
Same with large PDF > 20 pages

I habe RaspberryPi 4 with 4 GB RAM

regards
Thomas

@Knife Itā€™s because I append the port to the host, Iā€™ll fix that

@Fantomas Itā€™s an issue with Paperless-NGX Iā€™ve seen things related to that error on theirs commits messages.

Iā€™ll set Paperless-NGX to the last release to check if it does fix the barcode issue

1 Like

Iā€™ve fixed all currently known issues.

@Fantomas if your error persist please open a new issue on GitHub with more logs

v1.2.5

:bug: Bug fixes

:rocket: Enhancements

:toolbox: Maintenance

:arrow_up: Dependency updates

  • :arrow_up: Update paperless-ngx/paperless-ngx to v2.5.4 @renovate (#104)
1 Like

External Nabu Casa URL now works perfect.

Thank you very much!

Whatā€™s going wrong if paperless ngx donā€™t wont start?

Show Network Config of myHA > configuration was done

Error:

 502 bad gateway

Log:

chown: cannot access '/share/paperless': No such file or directory
s6-rc: warning: unable to start service init-paperless: command exited 1
Ingress is enabled

Iā€™ll fix that
It should be fixed with v1.2.7 update

1 Like

How can I change the path of the folders (consume/media)? (eq to store the documents on an external drive)

1 Like

Media folder isnā€™t mounted by the addon, you may try to edit your udev script to set the mount point to /share/paperless

If your Router have network share support it might be easier to plug the USB on your router and share it to HA OS via SMB or NFS

Did you solve the issue? Just in case if anyone has the error that the NAS Share is not writable


?: PAPERLESS_CONSUMPTION_DIR is not writeable
HINT: Set the permissions of
drwxr-xr-x root root /share/paperless/consume

Solution: switch from CIFS to NFS share network mount following this thread:

https://community.home-assistant.io/t/new-backup-to-nas-how-to/579606/5

1 Like

I added a chown command but I cannot control ACL from the addon if itā€™s managed by your external storage