Package Details: paperless-ngx 2.7.2-1

Git Clone URL: https://aur.archlinux.org/paperless-ngx.git (read-only, click to copy)
Package Base: paperless-ngx
Description: A supercharged version of paperless: scan, index and archive all your physical documents
Upstream URL: https://docs.paperless-ngx.com/
Licenses: GPL3
Conflicts: paperless, paperless-ng
Provides: paperless, paperless-ngx
Submitter: AlphaJack
Maintainer: AlphaJack (atomicfs)
Last Packager: atomicfs
Votes: 22
Popularity: 0.45
First Submitted: 2022-03-11 10:18 (UTC)
Last Updated: 2024-04-11 13:53 (UTC)

Latest Comments

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

amo commented on 2023-04-26 22:25 (UTC) (edited on 2023-04-27 11:47 (UTC) by amo)

Finally the update to 1.14.0 has been pushed and it should install just fine. A few dependencies got added, a few of which I also had to package first.

Note that python-billiard still needs to be downgraded to 3.6.4 until celery catches up... The next stable release of celery will include the compatibility fix for billiard 4 which has already been pusblished as pre-release a year ago

Tweety commented on 2023-04-01 08:11 (UTC)

@amo: thanks for the hint. I actually haven't thought about using AUR for the downgrade. But I also realized that there are a lot of mismatches between pip versions and pacman/AUR.

Besides I am waiting for the next version before I post an issue at github. My /tmp directory gets filled by ocrmypdf.io.### entries which are not cleaned up automatically. Docu says this behavior is when "-k" switch is used. But that doesn't seem to be the case. I ran into "disk out of space" problems system wide, until I used an additional timer script that checks and removes unaccessed paperless directories inside /tmp after 2h.

greez2all Tweety

amo commented on 2023-04-01 07:05 (UTC)

@Tweety: What pip did for you is downgrading billiard, which you are supposed to do anyway at the moment. The more consistent way of doing this is to use the downgrade AUR package instead of pip.

Tweety commented on 2023-03-27 11:36 (UTC) (edited on 2023-03-27 12:15 (UTC) by Tweety)

Hi amo,

just to confirm lorner's comment regarding celery.

Had to "pip" manually before things started to run on a second installation (first one was ok without it).

Procedure to check and repair:

### Check systemd Service:
systemctl status paperless-task-queue.service
× paperless-task-queue.service - Paperless Celery Workers
     Loaded: loaded (/usr/lib/systemd/system/paperless-task-queue.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2023-03-27 13:01:21 CEST; 8s ago
   Duration: 608ms
    Process: 4452 ExecStart=/usr/bin/celery --app paperless worker --loglevel INFO (code=exited, status=1/FAILURE)
   Main PID: 4452 (code=exited, status=1/FAILURE)
        CPU: 593ms

Mär 27 13:01:20 testarch celery[4452]:   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
Mär 27 13:01:20 testarch celery[4452]:   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
Mär 27 13:01:20 testarch celery[4452]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Mär 27 13:01:20 testarch celery[4452]:   File "/usr/lib/python3.10/site-packages/celery/concurrency/prefork.py", line 19>
Mär 27 13:01:20 testarch celery[4452]:     from .asynpool import AsynPool
Mär 27 13:01:20 testarch celery[4452]:   File "/usr/lib/python3.10/site-packages/celery/concurrency/asynpool.py", line 2>
Mär 27 13:01:20 testarch celery[4452]:     from billiard.compat import buf_t, isblocking, setblocking
Mär 27 13:01:20 testarch celery[4452]: ImportError: cannot import name 'buf_t' from 'billiard.compat' (/usr/lib/python3.>
Mär 27 13:01:21 testarch systemd[1]: paperless-task-queue.service: Main process exited, code=exited, status=1/FAILURE
Mär 27 13:01:21 testarch systemd[1]: paperless-task-queue.service: Failed with result 'exit-code'.

### Get python pip
pacman -S python-pip

# Credit to lorner
sudo pip3 install billiard==3.6.4.0 

# Tweetys approach - automatically fetches billiard 3.6.4.0
sudo pip install celery
...
...Collecting billiard<4.0,>=3.6.4.0
...

systemctl restart paperless-task-queue.service

Hope that will be fixed in 1.13 :)

greez2all Tweety

Tweety commented on 2023-03-27 08:54 (UTC)

@DocMAX:

not really helpfull your post. When do you get that error? Output of ls -l /etc/paperless.conf

DocMAX commented on 2023-03-22 16:19 (UTC)

PermissionError: [Errno 13] Permission denied: '/etc/paperless.conf

And i did sudo -u paperless paperless-manage migrate

amo commented on 2023-03-16 09:33 (UTC)

@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!

Tweety commented on 2023-03-15 20:04 (UTC) (edited on 2023-03-15 21:13 (UTC) by Tweety)

@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

amo commented on 2023-03-15 17:28 (UTC)

@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?

Tweety commented on 2023-03-15 16:38 (UTC) (edited on 2023-03-15 17:21 (UTC) by Tweety)

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