PermissionError: [Errno 13] Permission denied: '/etc/paperless.conf
And i did sudo -u paperless paperless-manage migrate
Git Clone URL: | https://aur.archlinux.org/paperless-ngx-venv.git (read-only, click to copy) |
---|---|
Package Base: | paperless-ngx-venv |
Description: | paperless-ngx: scan, index and archive all your physical documents |
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: | shtrophic |
Votes: | 29 |
Popularity: | 1.09 |
First Submitted: | 2024-11-02 15:19 (UTC) |
Last Updated: | 2025-05-24 19:39 (UTC) |
PermissionError: [Errno 13] Permission denied: '/etc/paperless.conf
And i did sudo -u paperless paperless-manage migrate
@Tweety: Yes, you are right with the missing optional dependency. I added it and it will figure in the next update. Thank you.
As for the documentation: For PAPERLESS_DBSSLMODE
, there is a link you can follow and which leads to a table listing and explaining the possible options. PAPERLESS_CONSUMER_BARCODE_STRING
is simply a string which means that any sequence of characters should work, but I don't really know how to use separator barcodes or how exactly they work. PAPERLESS_LOGROTATE_MAX_SIZE
is to be given in bytes
according to the documentation, so for 1 MiB you could also simply put 1048576.
Anyway, if you feel like the documentation could be improved and you even have suggestions on how to improve it, why not contribute by creating a pull request? This is all the magic of open source!
@amo
I am using mariadb for some other applications, so I wanted to use that for paperless too. I stopped the tests after I was finally able to log into the system. Connection to MariaDB seems to run properly now but further configuration and tests with scan/documents will follow later. Maybe expressed badly from my side. I wanted to provide the hint, that python-mysqlclient is necessary but not mentioned in the dependencies (optional).
For example
PAPERLESS_DBSSLMODE=<mode>
default is <prefer>
PAPERLESS_CONSUMER_BARCODE_STRING=PATCHT
default is <PATCHT>
PAPERLESS_LOGROTATE_MAX_SIZE=<num>
Defautl 1 MiB --> what number format in MiB, MB, KiB, KB? 1GiB entry possible?
No other values mentioned. Some other options are similar undocumented.
However. Hope that it runs now and I can move on to tika/gotenberg setup. [EDIT]: doest not.. - any hints where to correct dependency libavformat.so.60 to .59? <- solved
MissingDependencyError: Ran program 'unpaper' but it exited with an error: unpaper: error while loading shared libraries: libavformat.so.60: cannot open shared object file: No such file or directory
[EDIT]: seems like ffmpeg was not updated while using yay for paperless. Solved that by updating ffmpeg-2:5.1.2-1 manually to ffmpeg-2:6.0.3. Should that be somewhere at the dependency check?
Sorry for texting ;)
greez2all Tweety
@Tweety: I didn't find the documentation to be missing possible values or to leave something unexplained. Which config-entries are you having trouble figuring out?
I haven't tried to make paperless use mariadb yet. I like that it's apparently possible, but the fact that paperless is single-user makes me feel like sqlite should handle even production load easily. Anyway, didn't installing python-mysqlclient solve the dependency issue?
Hi amo
... glad to hear you happily passed your examinations ...
stupid question from a paperless newbie: I am setting it up for the first time but have got a LOT of difficulties to find possible values for many of the config-entries. The https://docs.paperless-ngx.com/configuration/ docu simply tells the default values but all other possible values are not listed. Compared to other config-files (sample configs) where a parameter is listed and above well documented, paperless is -at the moment- really a pain.
Any hints?
Additionally I want to use mariadb. That doesn't work ootb because required dependency is missing:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
pacman -S python-mysqlclient
greez2all Tweety
Sorry for my lack of communication. I had a very busy time with some final examinations, but now everything is done and I am happy to have passed!
I know, 1.13.0 has been released a while ago already. I prepared the package update and noticed a small issue: die paperless.conf file is missing in this release. This was fixed already and the fix will be part of the next release I guess. Pushing a package update that is missing the config file is not a big deal for people only updating their paperless installations. It would require changes to the PKGBUILD which would need to be reverted in the next update. Besides, it creates a disproportionately big fuzz for users installing the package for the first time. For these reasons and because I think that the next release with the fix is coming very soon anyway, I prefer to hold back the update and wait for 1.13.1.
@Tweety: Yes, I noticed that too. The issue has been reported and fixed upstream already. I have asked twice for a new release upstream so that the AUR package can be updated to build without error again, but there has not been any reaction yet.
Hi all,
I just tried that out-of-date version using yay installer. Dependency installation of python-django-celery-results fails due to an error in requirements/test.txt (I have noted a solution here: https://aur.archlinux.org/packages/python-django-celery-results ).
Looking forward to seeing 1.13 Version in the future...
greez2all Tweety
As of Mar 4, I'm still getting the billiard error with this package v1.12.2-1.
celery --version
Solution: sudo pip3 install billiard==3.6.4.0
to downgrade package, as suggested below. Not sure how this will affect future automatic updates.
As of today, celery/conceurrency/asynpool.py still calls for import buf_t from billiard, but that has been removed from recent commits. Celery needs to either update dependency, or force to sync with 3.6.4.0
Thank you very much, sorry that i missed the comment about it. Thanks for your work!
@DudeDu Your error mentions billiard. Please downgrade python-billiard
as advised in the previous comments.
Pinned Comments
shtrophic commented on 2025-04-14 20:22 (UTC) (edited on 2025-04-14 20:32 (UTC) by shtrophic)
For people not using
redis
: there is now an "automated patching mechanism" that will instead use the next best fork ofredis
that is available on your system as theRequires=
dependency in*.service
. This way, anyone can use their favorite fork of it. Keep in mind that upstream does not explicitly say that forks ofredis
work as well, and this further makes the builtpaperless-ngx-venv
package non-portable. Happy experimenting :)