Package Details: paperless-ngx-venv 2.14.7-2

Git Clone URL: https://aur.archlinux.org/paperless-ngx-venv.git (read-only, click to copy)
Package Base: paperless-ngx-venv
Description: A supercharged version of paperless: scan, index and archive all your physical documents (version with bundled dependencies)
Upstream URL: https://docs.paperless-ngx.com/
Keywords: documents paperless
Licenses: GPL-3.0-or-later
Conflicts: paperless, paperless-ng, paperless-ngx
Provides: paperless, paperless-ngx-venv
Replaces: paperless-ngx
Submitter: AlphaJack
Maintainer: AlphaJack (atomicfs, shtrophic)
Last Packager: AlphaJack
Votes: 27
Popularity: 0.87
First Submitted: 2024-11-02 15:19 (UTC)
Last Updated: 2025-03-08 20:39 (UTC)

Required by (0)

Sources (12)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 Next › Last »

amo commented on 2023-11-21 22:44 (UTC)

@MarsSeed: Thank you for your remarks. I don't think the onboarding experience for paperless-ngx on archlinux is any bad. Just read carefully what is written on the paperless archwiki. The highlighted note in the Configuration section clearly states that there is no need to run paperless-manage as root. You are meant to run it as the paperless user, which is reasonable as @hashworks already pointed out. Having dedicated system users for separate applications is standard security practice.

MarsSeed commented on 2023-11-21 20:39 (UTC)

+1 remark: I came here after trying to build its alternatives, the legacy papermerge, and the successor, papermerge-core.

But both failed, disappointingly. Their upstream project apparently does not support the current Python version and environment that is available on Arch.

So I've recommended this package for users of the old papermerge. The fact alone that this complex build was a full success was in itself very encouraging!

The idea about the privilege checking wrapper that I've recommended would lead to a much better "onboarding" experience for new people trying this one out for the first time, instead of the long exception stack trace.

Btw, I think that /etc/paperless.conf does not contain any sensitive data, so it might not be harmful to give read access to that at least, to all users.

MarsSeed commented on 2023-11-21 20:02 (UTC)

Thank you for enlightening me about this.

But in that case, wouldn't it be good to implement some kind of minimal wrapper that checks if the needed resources are accessible for the current user? And if not, the wrapper would just return a message about insufficient read privileges. Instead of the current wall of text consisting of the Python exception stack trace.

I know it is more of an upstream issue, but this should be very easy to implement even in Bash.

Just an improvement idea on my part. Feel free to do or not do anything with it. :)

Anyway, thank you for maintaining it. I am not currently a user of this, but I can see potential in this for myself at a later time.

hashworks commented on 2023-11-21 18:31 (UTC) (edited on 2023-11-21 18:32 (UTC) by hashworks)

It makes absolute sense that no other users on a server can read /var/lib/paperless/data/, it's quite personal data.

Try sudo -u paperless -H paperless-manage.

MarsSeed commented on 2023-11-21 15:30 (UTC)

Hi! Me again.

I am just an outsider when it comes to this server application, but I'd like to give some packaging feedback that might be useful to others.

The way this is installed, some files / dirs don't have read access for users.

Consequently, running paperless-manage without superuser privileges just leads to crash due to Python exceptions because of read access denials by the file system.

The resources that are need for paperless-manage to read without su/sudo are:

/etc/paperless.conf # (file exists but not readable)
/var/lib/paperless/data/ # (directory)
/var/lib/paperless/data/log/ # (this dir does not even exist by default)

If you decided to add read privileges for these, and also created a new empty dir /var/lib/paperless/data/log/ with those privileges, then paperless-manage would be able to run as a regular user, and would display its basic commands and configuration options.

amo commented on 2023-09-23 19:58 (UTC)

@MarsSeed: good catch, thank you! I just removed it from the dependencies and updated to 1.17.4.

MarsSeed commented on 2023-09-23 19:46 (UTC)

python-aioredis1 is no longer needed as a dependency.

amo commented on 2023-08-09 20:16 (UTC)

Thank you very much for your work on the python-celery package, @hashworks!

Paperless-ngx 1.17.0 now works just fine without any package modification or downgrades!

hashworks commented on 2023-08-05 13:38 (UTC)

I've released python-celery 5.3.1 with some test skips.

Kakihara73 commented on 2023-07-25 11:18 (UTC)

@hashworks thanks for celery custom build. works great on my paperless-ngx just installed. before i had paperless-task-queue.service fails issue cause the billiard version 4.1.0

many many thanks :)