Benoit Anastay Add-on: Paperless-ngx

I don’t see any commit about ingress, I’ll investigate

It’s now fixed

4 Likes

I read this post and I’m still struggling to get
local network access to my Paperless-ngx add-on
running on HAOS with the Paperless Mobile Android App.

The android app needs the URL and credentials.
What would be the correct URL?

Which configuration in the add-on is necessary?

url: http://ca5234a0_paperless-ngx #?
csrf_allowed:
  - http://192.168.178.XX #?

Port: 8081?

Thank you very much for your support!

This URL can only be used inside Home Assistant,
To access it outside you will need to open a port for the add-on or use a proxy add-on

1 Like

How can I use an external HDD, which is connect to my HA machine (in my case a Dell Optiplex) to store the documents?

You either need to edit fstab or install Samba share addon and mount the share

Samba share addon is running…but how can I mount the share?

1 Like

You click on “Add network storage”, you name it paperless and mount it to share, then you’ll need to set pooling interval in the add-on config since inotify can’t work with shared directories

Open your Home Assistant instance and show storage information.

What do you mean by „it will be mounted?“. Is it automaticly when i Mount the paperless folder from my NAS in HA? Or Must i set something in paperless? Thanks for your work!

File system is managed by the Host, the addon is agnostic of how files are handled, but it does lose the inotify when the files are hosted outside the host machine, that’s why there is the pooling interval option.

Since the addon isn’t notified when new files are put it remote folders, the addon will need to check it regulary.

To use a remote folder you’ll have to use native OS mounting, if you do use HA OS you can do it there

How can I change some “SoftwareTweaks” like the amount of task workers or threads?

I have the terminal Addon installed and can docker exec into the running container of paperless. Inside the container, I could alter the /etc/usr/paperless/paperless.conf file but this won’t be persisted after a restart, so I guess there must be another way to achieve this?
Thanks

Edit: I upgraded to a Pi5 8GB Ram, where did not get any memory errors anymore (regulary before with Pi4 2GB Ram) so I guess increasing the worker to 2 or 3 could speed it up significantly and it would still run smooth

paperless.conf is relocated inside addon_config folder for persistence

Hi Benoit,

the add-om link doesn’t work with my installation. I have 2-factor. Perhaps this is the reason.

Kind reagrds

Roland

I don’t known, you can also add the repository manually

I tried it but it fails. Can you please post the plain link, which I can put into the add on.

The repository URL is https://github.com/BenoitAnastay/home-assistant-addons-repository

Hey there,

i have a strange issue where i cant open my documents anymore - the database still shows every entry but if i try to request a preview i get redirected to a django webpage showing “404 Not found”. I double checked the folders and everything seems to be setup fine. Also consume folder wont work anymore.

So headed towards the paperless.conf where i defined /media/paperless/media and this folder holds all my files. Looking into the django querry feedback it seems to be the case, that the “storage_path: null” could be the problem in my database - but no clue at all here=(

Does somebody encountered the same thing and has an quick solution i overlooked ? I would be very graceful for any help here=)

Try to enable DEBUG in paperless.conf then check your logs when you try to access the files, do you use network share ?

My installation is working well

Hey thanks for replying!

I have enabled Debug an get following output - files are local in the media drive, but i also copied the folder to the addons standard and get the same result:

[2024-06-05 11:30:27,398] [WARNING] [django.request] Not Found: /api/hassio_ingress/asdfasdf-Ebzeasdf/api/documents/83/preview/

the config i have enabled this in the first blocks:

PAPERLESS_CONSUMPTION_DIR=../media/paperless/consume
#PAPERLESS_DATA_DIR=../data
#PAPERLESS_TRASH_DIR=
PAPERLESS_MEDIA_ROOT=../media/paperless/media
#PAPERLESS_STATICDIR=../static
PAPERLESS_FILENAME_FORMAT={document_type}/{created_year}-{created_month} {correspondent} {title}
#PAPERLESS_FILENAME_FORMAT_REMOVE_NONE=

File paths are defined that way

PAPERLESS_CONSUMPTION_DIR=/share/paperless/consume
PAPERLESS_DATA_DIR=/config/data
PAPERLESS_MEDIA_ROOT=/share/paperless/media

The addon isn’t allowed to acess media directories, you have to mount drive into the share directory
If you migrated an existing installation you can try to reset the addon and manually put files in share directory then update the db file in addon_config

1 Like

Hey there,

i changed the path accordingly and it seems to work fine now :blush: