Benoit Anastay Add-on: Paperless-ngx

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

Great plugin! Thanks for all the effort you have put in!

I am running Home Assistant OS. When I am on my wifi, I am able to connect to Paperless via the browser, but when I do it via the HA iPhone app, I get a CSRF error.

I see some other replies about this error, but I think these are all about running your own docker container.

Is there a way to get access to the plugin from the HA app?

And another question, is it possible to connect from an iPhone app like Paperparrot or Swift Paperless?

I do not have this issue, but there’s one issue with core API when URLs are set to automatic, the current workaround is to manually add your domain to the allowed list.

domain list

You’ll need to use direct access, maybe my documentation is not enough

Ingress and API

For API you’ll need to enable direct access to the Add-on by setting up a port under network in configuration tab

What URL should I add to the CSRF allowed list? The internal homeassistant.local? Or the external nabu case url? Both do not have the desired result.

What am I missing?

You’ll need to use direct access, maybe my documentation is not enough

Can you give me a bit more hints on how to configure this?

You need to know with URL is rejected
NB : Since last update this error message was thrown once on my setup but after a page reload I was logged fine.

Dear Benoit,

at some point in the future I want to switch to a system, where some plugins are running „standalone“ outside of HA. Will it be possible to backup your Paperless installation including the „trained ai“ to another docker container running paperless ngx?

Yup,

You’ll just have to copy past folders to your new host

1 Like

Hi heimvon2,

can’t figure it out how you did that.
Is this configuration necessary to get access to paperless-ngx from outside?
How can I get die ip adress of my ha instance?

Hey Benoit,

thank you very much for qour Plug-In.

Does this mean I have to set up the add-on by advanced remote tunnel?

I do not use tunneling but reverse proxy with Nginx Proxy Manager I do set it that way

Fresh install and get:

[2024-03-08 08:53:22,150] [WARNING] [django.security.csrf] Forbidden (Origin checking failed - http://hass.domain.com:8123 does not match any trusted origins.): /api/hassio_ingress/LI2n4k9PHSfniOfKM38ppmyMWWvAeSe4KP-058drv78/accounts/login/

image

When URLs are set to automatic in Home Assistant OS, the domain isn’t reported to the addon, you have to add it manually to the CSRF allowed list in the addon configuration tab

thank you Benoit, I will try it

Not entirely sure what to do where, can you elevorate or show?

Put your domains here
domain list
Capture-more options

I solved the CSRF error by taking the following steps:

  • Copy the Nabu Casa URL in Settings / Home Assistant Cloud

  • Go to Settings / Add-ons / Paperless-ngx and in the configuration tab, paste the copied value in the CSRF Allowed domains. Be sure to remove the https:// part of the url! If you leave that in, it will not work.
1 Like

yep, my router has a network share support and USB is in the router plugged. Can you give me some hints what I have do change/edit now?

I’m in the same boat. I just migrated from another instance of Paperless-ngx HA addon and this is missing the option to change paths. I’ve tried a couple different ways and can’t get it to read my external drive like the other instance did. Please help!

I’ll add an option to host files in media directory

1 Like