Benoit Anastay Add-on: Paperless-ngx

It look like your subdirectory wasn’t created with 1000:1000 UID:PID

Try to run chown -R 1000:1000 /share/paperless/consume

1 Like

yes thats right, but when i copy an existing folderstructure with PDFs, then he also copies the false rights. Do you have any idea ?

You can create a user with UID and GID set to 1000 then use this user for your copying tasks, or you can use chown at the end of each copy

i would use chown every time, but paperless immediatly starts to convert the files. can i pause this feature until i have chown all files? i also tried to copy the file structure to a different folder inside the paperless folder, then chown everything and then move to the consume folder, but then the consume folder ignores every file.

ok, i stopped paperless addon, make then my copy-thing, and then start the addon again. this works!

Try to restart the addon or free up memory on your host

Yes you can by enabling direct access (Benoit Anastay Add-on: Paperless-ngx - #48 by BenoitAnastay)

By using external authentification provider, like Authelia, you’ll also need a reverse proxy

I would suggest you to use a computer with more hose power if you need to scan a lot of documents every days

Just an idea/question:

In Home Assistant > Settings > Storage I can add a network storage. Can you use this network storage for paperless media data?

grafik

Yes you just have to set it to share nammed paperless it will mount it to /share/paperless

You’ll have to move this directory to your NAS if you already have datas.

For consuming since inotify doesn’t works on shared folders, you need to set a polling interval

First thx a lot for this great integration!

I have a question regarding the following error when trying to preview or download a PDF file from within the Home Assistant Companion App for iOS:

Safari or Chrome Browser for iOS open with:
401: Unauthorized

On Windows 11 with Chrome there is no problem. The documents open and everything is fine.

Is there any solution for this?

I’m sorry but I have absolutly no idea.

I need at least the server side log, it’s maybe how the request is done by IOS

Just checked by opening Home Assistant via the Safari browser for iOS.
Here you can preview and open PDF.
So it must be a bug caused by the iOS Companion app handling over the link to Safari or Chrome browser I guess.

Sadly there are no hints in the Home Assistant log.
In the Paperless log this is coming up every here and then:

[2024-03-16 21:42:34,542] [WARNING] [ocrmypdf.builtin_plugins.ghostscript] The installed version of Ghostscript 10.0.0, contains a remote code execution security vulnerability. Please upgrade to a newer version. For details see CVE-2023-43115. The issue is not known to affect OCRmyPDF or processing PDFs with Ghostscript, but upgrading Ghostscript is recommended.

Maybe you are logged off on your browser and not on the app,

If you are not logged 401 error makes sense

Hello,
addon works great for me. Is there a guide how to add Tika/Gotenborg? Seems I need this for .eml parsing

I don’t had the time to work on this, but it the meanwhile you can try to use the portainer addon to run those services

1 Like

Hello there, I did just try to add a network share, named and mounted it properly, but it gave me the error as PatrickM had earlier

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

I can guarantee the direction is writable, just to be sure it is even drwxrwxrwx

i actually just want to mount the consume folder on a network share, not the media folder

next thing I tried is activating debug mode, for this I changed the config.exemple to only .config and changed debug=true and added the proper mounting direction.
This resulted into error, but did just do… nothing at all

Can you please make this process for us easier with adding the mount points to config tab on the addon directly in the ha ui?

For this purpose it might be easier to run the samba server on the HA side, it let you use inotify.

I did it that way personaly

Wow, thanks for the advice!
It wasn’t the answer I hoped for, but it works out!

It took a lot longer than I originally thought, but that’s what I did for the afterworld:

  • downloaded the samba add-on and created a smb share
  • downloaded the unassigned devices plugin for unraid
  • mounted the home assistant SMB share via the plugin into unraid
  • configured file flows (on unraid) to point to the new direction whilst not losing the existing folder that contains newly scanned documuents
1 Like

Is there a new workaround for the HA mobile app?
The Problem PV-Joe mentioned bricked me as well: open paperless documents via HA app.

*When opening documents, it directs to the phone’s browser and gives you the error 401 not authorized even when logged in to the browser (tested with iOS and android)
it only works when accessed directly via the browser.

*The option to open PDF’s via the web browser is deactivated by default, but seems to be ignored since it will open via the browser viewer anyway.

*When you press and hold the view button in the app for longer, it gives you a rudimentary preview, which is really poor on mobile devices

Hum, seem like more an issue with Companion App than something related to paperless.

There should be a way to fix the ingress integration of companion app but since the main purpose of paperless is to be run standalone as a docker app i’m not sure that I’ll be able to fix it with “good practices” I would avoid patching paperless like Grocy addon did.

My Phone have a different behaviour, the preview tab download the file.
The bahaviour depends on the phone OS, screen size and what apps you use, so it might be hard to replicate the bug

Is Paperless only accessible via the HA app or is it also accessible via browser?