Jump to content
linuxserver.io

[Support] Linuxserver.io - Papermerge

72 posts in this topic Last Reply

Recommended Posts

I also have noticed that the timestamp is 1 hour off.

If I create a folder at "16:31:24", Papermerge shows in the logs that it was created "15:31:24".

If I connect to the Papermerger Docker ('docker exec -ti papermerge bash') and run 'date', it shows the right time.

Also the 'echo $TZ' is showing the correct timezone.

It seems like Papermerge is still running with summer time, 1 hour less than it is now.

Setting TZ should take DST into account automatically, right? Somehow it doesn't work that way in Papermerge.

Share this post


Link to post

Time stamp stuff been off; or sure anyone has found a fix yet.

Have you all played with multiple users? I have a brother printer I upload docs to; can’t figure out how to specify using different upload folders for different users?

Share this post


Link to post

...sorry if these are noop questions, but with working from home now for even longer, I am looking into installing papermerge.

I still don*t get my head around the fact on how to set this up best:

  1. the config files are stored in /mn/user/appdata/paperware by default. Typically this is a cache only DIR. Did you leave it that way?
  2. the data path in the template is where all paperless data resides. Did you first create a user-share "papermerge" and then set the data path to /mnt/user/paperperge" in the docker template?
  3. how did you integrate a scanner dir for importing? I already have my scanner pushing everything to /mnt/user/scan. So should I create another path in the docker template "data/queue" with "/mnt/user/scan" as mapping point?

Many thank in advance!

 

regards,

ford

Share this post


Link to post
16 hours ago, Ford Prefect said:

...sorry if these are noop questions, but with working from home now for even longer, I am looking into installing papermerge.

I still don*t get my head around the fact on how to set this up best:

  1. the config files are stored in /mn/user/appdata/paperware by default. Typically this is a cache only DIR. Did you leave it that way?
  2. the data path in the template is where all paperless data resides. Did you first create a user-share "papermerge" and then set the data path to /mnt/user/paperperge" in the docker template?
  3. how did you integrate a scanner dir for importing? I already have my scanner pushing everything to /mnt/user/scan. So should I create another path in the docker template "data/queue" with "/mnt/user/scan" as mapping point?

Many thank in advance!

 

regards,

ford

Hi, 

im also new here but i managed to get it running on my server

 

1. Yes

2. I did first the share and then set the paths

3. You can set a path for the importer to /mnt/user/scan. I think queue is not the right folder. Change the papermerge.conf in your appdata folder and add this line:

IMPORTER_DIR = "your/path/for/the/scan/input"

 

 

But i have a question:

Dp you have the importer path on cache or the pool? I have the problem that my disc doesnt spin down if the docker is running. Is maybe the importer the reason for this?

 

regards,

Chris

 

 

Edited by chrisgo

Share this post


Link to post

thanks fpr your reply.

 

Yes, I did set it up for a first test. Had some problems to enable another ocr-language, although the docker variables hat been set and from the logs, tesseract got installed. Had to add it to the config file manually.

 

I also can confirm, that the disks where the main papermerge share does reside on, do not go to sleep...even with dynamics cache plugin enabled.

I have set cache to yes, for that share as I want to handle new files and workflow on the cache but when they are processed should go to the array.

This is a no-go for me, if that is the intended behavior.

 

regarding mounting a scan dir, AFAIU papermerge will not open the path as an SMB share but rather as a local path.

So if you configure "IMPORTER_DIR = "/data/queue" in the papermerge config file, the direct path to a user share will not work and the docker command must map the outside user share to it.

 

...will look into trying out teedy,io and ecodms next.

Share this post


Link to post
5 hours ago, Ford Prefect said:

I also can confirm, that the disks where the main papermerge share does reside on, do not go to sleep...even with dynamics cache plugin enabled.

I have set cache to yes, for that share as I want to handle new files and workflow on the cache but when they are processed should go to the array.

This is a no-go for me, if that is the intended behavior.

I have found a solution for this problem:

Set all volume mountings for this docker to the appdata share. Then just move the media folder to another share which has cache prefer and change it in the config. The docker needs this share also mapped. Now the media is on the array and the discs spin down correctly. 

Share this post


Link to post

...cache=prefer does make the mover transfer all files off the array and onto the cache. So nothing gained, as files will end up on cache after some time, won't they?

Gesendet von meinem SM-G960F mit Tapatalk

Share this post


Link to post

thanks again...I'll give it a try ...I had the complete papertree share configured with cache=yes, so the complete tree mapped under /data inside the docker.

I think the problem is the import-Dir, which is also part of the tree....the logs keep saying that the worker is accessing it frequently.

The media-Dir is for already processed documents, I think so they will stay without access until needed.

However, my main scanner-Dir is also on the array and I fear I cannot map it directly then. 

 

...will take some time, very busy atm. thanks again!.

Share this post


Link to post
On 11/12/2020 at 9:53 PM, Adeon said:

Hey,

 

love the docker so far.

I was really excited about the download feature, because it also downloaded to whole folder structure, which made it easier for me to backup the files.

But for some reason i can only successfully download certain folders.

When i try to download the "other" folders i get a damaged 0 byte file.

Unfortunately there is nothing in the logs.

 

 

Hey i figured out what the problem was!

So i'm from germany and we use "umlaute" e.g. "ä, ü, ö".

If the filename of the document has a "umlaut" you can upload and view the document but you can't download it.

Renaming the filename inside papermerge did not work.

I had to delete the document in papermerge and had to reupload the renamed file, that solved the problem.

Edited by Adeon

Share this post


Link to post
On 11/14/2020 at 5:22 AM, Maddeen said:

 

@CorneliousJD I found that parameter in the settings.py.

Maybe you can change this - but I'm not a docker and/or papermerge specialist - so try at your own risk. 

But if you achieve it please leave some feedback for others. 

 


DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": "/data/papermerge.db",
    }
}

 

Bildschirmfoto 2020-11-14 um 11.24.03.png

Thanks! I do believe Ih ad this working where you mentioned actually, however I ended up going with an actual database instead of SQLite for mine.

Share this post


Link to post

@CorneliousJD how did you use another database for papermerge? I looked into the documentation and into the 2 py files in the app folder but got a little confused.

The papermerge.conf.py and the settings.py both contain a part about SQL database. But after I edited the settings.py and set up MariaDB I got errors.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk

Share this post


Link to post
On 10/6/2020 at 12:27 PM, b0mb said:

to get german language for OCR go to docker shell and type


apt-get install tesseract-ocr-deu

Is it normal that I have to install these languages every time the docker gets an update? Or is there maybe a way to let the docker install this languages after it gets started?

 

Edited by chrisgo

Share this post


Link to post
7 hours ago, chrisgo said:

Is it normal that I have to install these languages every time the docker gets an update? Or is there maybe a way to let the docker install this languages after it gets started?

 

I guess you are not using our mod to install the language you need?

Share this post


Link to post
14 hours ago, saarg said:

I guess you are not using our mod to install the language you need?

I tried to install this mod but for some reasons i cant get it running. 

 

Unbenannt.thumb.PNG.b94dc75c294dac2ff44b5513ee7e31ee.PNG

I think the variables are set correctly but if i start the docker, this variables are not shown in the command line.

Unbenannt1.thumb.PNG.bb3ec24fd716910e837c248ab6146205.PNG

 

 

Share this post


Link to post
13 hours ago, chrisgo said:

I tried to install this mod but for some reasons i cant get it running. 

 

Unbenannt.thumb.PNG.b94dc75c294dac2ff44b5513ee7e31ee.PNG

I think the variables are set correctly but if i start the docker, this variables are not shown in the command line.

Unbenannt1.thumb.PNG.bb3ec24fd716910e837c248ab6146205.PNG

 

 

If it's not in the run command, you have done something wrong.

 

Please post the text of the docker run command next time. The screenshot is low quality and hard to read.

Share this post


Link to post
10 hours ago, saarg said:

If it's not in the run command, you have done something wrong.

 

Please post the text of the docker run command next time. The screenshot is low quality and hard to read.

Sorry, my bad

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='papermerge' --net='bridge' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'PUID'='99' -e 'PGID'='100' -p '8080:8000/tcp' -v '/mnt/user/appdata/papermerge/':'/data':'rw' -v '/mnt/user/appdata/papermerge':'/config':'rw' -v '/mnt/user/Papermerge/media/':'/media':'rw' -v '/mnt/user/Transfer/Papermerge/':'/Input':'rw' 'linuxserver/papermerge'

Share this post


Link to post

Can you hit the edit button behind the docker mods entry and show that? I'm not exactly sure, but I believe you haven't set the key value.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk

Share this post


Link to post
2 hours ago, Spooky83 said:

Can you hit the edit button behind the docker mods entry and show that? I'm not exactly sure, but I believe you haven't set the key value.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk
 

yes ... that was the problem. now it works. Thank you very much

Share this post


Link to post
On 11/25/2020 at 1:04 AM, Spooky83 said:

@CorneliousJD how did you use another database for papermerge? I looked into the documentation and into the 2 py files in the app folder but got a little confused.

The papermerge.conf.py and the settings.py both contain a part about SQL database. But after I edited the settings.py and set up MariaDB I got errors.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk
 

I was wrong, I am still using SQLite, I just changed where it's stored at, in settings.py

 

Quote

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": "/config/papermerge.db",
    }

Sorry for the confusion, I was working on a few other projects at the same time and used other databases (MariaDB/PgSQL) for those, and confused myself.

Share this post


Link to post

 

....need more help, as I cannot figure out which dirs are in use and keep my disks spinning.

I tried to move everything to cache, including DBDIR, except MEDIA_DIR, but my disks keep spinning. ☹️

Log indicates that there is a worker task trying to read from local directories every 30mins or so, but the path to that DIR is not given.

...here is my docker run command:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='papermerge' --net='br0' --ip='192.168.0.33' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'PUID'='99' -e 'PGID'='100' -e 'TCP_PORT_8000'='80' -e 'DOCKER_MODS'='linuxserver/mods:papermerge-multilangocr' -e 'OCRLANG'='deu' -e 'TZ'='Europe/Berlin' -v '/mnt/user/papermerge/':'/data':'rw' -v '/mnt/user/appdata/papermerge/conf/':'/config':'rw' -v '/mnt/user/appdata/papermerge/queue/':'/data/queue':'rw' -v '/mnt/user/appdata/papermerge/db/':'/data/db':'rw' 'linuxserver/papermerge'
a656d8b0b28ea13b8c49695af862e9ea85e02e449a2d6425f27c8bb999fee91c

...and a snippet from the logs

[2020-12-03 18:16:15,847: DEBUG/ForkPoolWorker-2] Celery beat: import_from_local_folder
[2020-12-03 18:16:15,848: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.import_from_local_folder[e9e16285-46e0-4abf-952f-b230fcf745ec] succeeded in 0.0009092818945646286s: None
[2020-12-03 18:16:45,279: INFO/Beat] Scheduler: Sending due task import_from_local_folder (papermerge.core.management.commands.worker.import_from_local_folder)
[2020-12-03 18:16:45,892: INFO/MainProcess] Received task: papermerge.core.management.commands.worker.import_from_local_folder[5d215551-01c2-413e-aab7-c867d57abf26]
[2020-12-03 18:16:45,892: DEBUG/ForkPoolWorker-2] Celery beat: import_from_local_folder
[2020-12-03 18:16:45,893: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.import_from_local_folder[5d215551-01c2-413e-aab7-c867d57abf26] succeeded in 0.0009969202801585197s: None
[2020-12-03 18:17:12,929: INFO/Beat] Scheduler: Sending due task txt2db (papermerge.core.management.commands.worker.txt2db)
[2020-12-03 18:17:12,937: INFO/MainProcess] Received task: papermerge.core.management.commands.worker.txt2db[8dc9d3bf-cebb-420b-9b8d-3ab45c96ac35]
[2020-12-03 18:17:12,937: DEBUG/ForkPoolWorker-2] Celery beat: txt2db
[2020-12-03 18:17:12,940: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.txt2db[8dc9d3bf-cebb-420b-9b8d-3ab45c96ac35] succeeded in 0.0032357806339859962s: None
[2020-12-03 18:17:15,279: INFO/Beat] Scheduler: Sending due task import_from_local_folder (papermerge.core.management.commands.worker.import_from_local_folder)
[2020-12-03 18:17:15,942: INFO/MainProcess] Received task: papermerge.core.management.commands.worker.import_from_local_folder[c7ec0e5b-9ed3-4d26-acc9-9b262255c532]
[2020-12-03 18:17:15,943: DEBUG/ForkPoolWorker-2] Celery beat: import_from_local_folder
[2020-12-03 18:17:15,943: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.import_from_local_folder[c7ec0e5b-9ed3-4d26-acc9-9b262255c532] succeeded in 0.0007888674736022949s: None
[2020-12-03 18:17:45,299: INFO/Beat] Scheduler: Sending due task import_from_local_folder (papermerge.core.management.commands.worker.import_from_local_folder)
[2020-12-03 18:17:45,989: INFO/MainProcess] Received task: papermerge.core.management.commands.worker.import_from_local_folder[01e67d66-ac04-4d40-aeae-5fa61c436e97]
[2020-12-03 18:17:45,989: DEBUG/ForkPoolWorker-2] Celery beat: import_from_local_folder
[2020-12-03 18:17:45,990: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.import_from_local_folder[01e67d66-ac04-4d40-aeae-5fa61c436e97] succeeded in 0.0009140409529209137s: None

 

Share this post


Link to post
12 hours ago, chrisgo said:

Sorry, my bad

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='papermerge' --net='bridge' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'PUID'='99' -e 'PGID'='100' -p '8080:8000/tcp' -v '/mnt/user/appdata/papermerge/':'/data':'rw' -v '/mnt/user/appdata/papermerge':'/config':'rw' -v '/mnt/user/Papermerge/media/':'/media':'rw' -v '/mnt/user/Transfer/Papermerge/':'/Input':'rw' 'linuxserver/papermerge'

Is there anything missing in the env variables? That is the only reason I can think of. If not, you should probably open a thread about the issue as this is an unraid issue and not the containers issue.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.