Papermerge Anleitung


Recommended Posts

Ich habe heute Papermerge geupdatet nun kommt immer, nach der Anmeldung, Server Error (500)

 

Hab Papermerge schon neugestartet und auch mal ausgemacht und dann wieder eingeschaltet, ich komme bis zum Login und dann kommt der Server Error.

 

Installiert wurde es genau nach der Anleitung ganz oben...

 

 

Link to comment

hier mal das Log vom Docekr:

 

[2021-02-26 02:24:57,447: ERROR/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.txt2db[ab9edf1a-9e70-4b1e-b87e-211496d0c02f] raised unexpected: OperationalError('no such column: core_page.hocr_step_0')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/sqlite3/base.py", line 413, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such column: core_page.hocr_step_0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 405, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 697, in __protected_call__
return self.run(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/papermerge/core/management/commands/worker.py", line 30, in txt2db
doc.update_text_field()
File "/usr/local/lib/python3.8/dist-packages/papermerge/core/models/document.py", line 728, in update_text_field
for page in self.pages.all():
File "/usr/local/lib/python3.8/dist-packages/django/db/models/query.py", line 287, in __iter__
self._fetch_all()
File "/usr/local/lib/python3.8/dist-packages/django/db/models/query.py", line 1308, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/usr/local/lib/python3.8/dist-packages/django/db/models/query.py", line 53, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/usr/local/lib/python3.8/dist-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/dist-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/dist-packages/django/db/backends/sqlite3/base.py", line 413, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such column: core_page.hocr_step_0

Link to comment

danke für die schnelle Antwort...

 

hab das "force update" ausgeführt - leider keine Änderung...

 

Da ich bisher nur Ordner angelegt habe werde ich einfach alles löschen und neu aufsetzen.

 

Soll ich die Installation nach dieser Anleitung hier noch mal vorgehen oder lieber eine "normale" Installation machen? Nicht das nach dem nächsten Update wieder nichts mehr geht 🙂

 

Danke

Link to comment
3 hours ago, Sedixo said:

Hi, 

Alles funktioniert.

Die scans vom Drucker landen im Import Ordner. Tags und Sortierung läuft. 

Papermerge braucht natürlich eine Zeit um das ocr durchzuführen. Danach wird das Dokument nach Vorgabe verschoben. 

 

Ich teste weiter. 

 

Grüße 

 

 

kannst du mir genau erklären wie du vorgehst und was du eingestellt hast?!

Habe die Belege wieder raus gelöscht und bin mal über den Import Ordner gegangen und hab 4 pdfs zum testen da rein kopiert doch leider passiert mit den pdfs nix, die bleiben einfach drinnen und werden nicht weiterverarbeitet...

 

Danke

Link to comment

Hi,

 

ich bin nach den Anleitungen hier gegangen.

Ich habe Testweise mehrere Dokumente per Scanner in den Ordner gescannt.

Das dauert zwar einen Moment bis alle Dokumente im Posteingang von Papermerge angezeigt werden aber das geht schon.

Danach habe ich in Papermerge unter Dokumente mehrere Ordner erstellt. Wie Strom, Krankenversicherung...

Unter Automatisierung dann die Tags eingerichtet. 

 

Heute hat sich allerdings etwas verändert.

Heute habe ich neue Dokumente , ohne vorhandene Tags, gescannt.

Trotz das ich nach den Scanns die Tags unter Automatisierung eingerichtet habe, verschiebt er die Dokumente nicht in die eingestellten Ordner.

Nur neue Dokumente , nach den Tags, funktionieren ohne Probleme.

 

Auch wenn ich die Dokumente im Posteingang mit den passenden Tags versehe, werden die nicht verschoben.

Irgendwie komisch.

 

Kennt jemand dieses Problem?

 

Noch eine Sache, vielleicht könnt Ihr mir dabei auch helfen.

Ich habe zum Test mehrseitige Scans. Diese werden nicht angezeigt.

Ich sehe über den Explorer den Import Ordner das die Datei während des Scanns generiert wird, allerdings startet der Workflow von Papermerge zu schnell, der Scanner hat den Scann noch nicht beendet und die Datei verschwindet. 

Kann ich die zeit bei Papermerge einstellen?

 

Gruß

 

 

Edited by Sedixo
Link to comment
  • 2 weeks later...

Guten Tag liebe Community,

 

nach langem hin und her muss ich dieses Vorhaben wohl leider aufgeben.

Ich habe zumindest für mein Problem keine Lösung finden können. Wenn Ihr noch Vorschläge habt, gerne her damit. Ich teste alles um meinem Zeil näher zu kommen :-).

 

Papermerge funktioniert zwar wie ich es mir vorgestellt habe, aber leider macht mir hier Windows 10 ein Strich durch die Rechnung. 

Ich habe zugriff per Windows Explorer auf die PDF aber ich erziele trotzdem keine Ergebnisse wenn ich per Windows Search suche.

Hier spielt die Indizierung für Netzwerklaufwerke nicht mit.

 

Die Windows Indizierung funktioniert wohl nur wenn ich die Scans in den Win10 Client speichere und eine OCR Software drüber laufen lasse , oder ich mir einen Windows Server mit dem Rollendienst Search und einer AD Anbindung mache. Was voll der Overkill für den Heimanwender wäre.

 

Wenn Ihr noch ideen habt, gerne her damit. 

 

Grüße

 

 

Link to comment

DMS wäre nicht so wichtig. 

Ich hatte auch erfolgreich Abbyy Finereader auf dem Lokalen Rechner laufen. OCR Erkennung funktioniert sehr gut dabei. Die Indizierung soweit auch i.O. Windows Explorer konnte alle Daten finden die ich darin gesucht hatte.

Allerdings beschränkt sich das Ganze auf Lokale Windows Clients. Ich habe hier noch einen Rechner liegen den ich mit Win10 ausstatten und abbyy dort laufen lassen kann.

Ziel ist es halt die Scans an eine Lokale Maschine zu senden und der übernimmt das OCR und stellt es im Netzwerk bereit.

Da ist wieder das Problem ob dieser Autarke Windows 10 Client die Indizierung an andere Win10 Client weitergeben kann.

 

 

 

 

Link to comment
10 minutes ago, Sedixo said:

Allerdings beschränkt sich das Ganze auf Lokale Windows Clients. Ich habe hier noch einen Rechner liegen den ich mit Win10 ausstatten und abbyy dort laufen lassen kann.

Abby Finereader ist ein PDF Editor/Frontend.

ich weiss nicht, ob sowas üeber einen Tasker o.Ä. automatisiert werden könnte.

 

10 minutes ago, Sedixo said:

Ziel ist es halt die Scans an eine Lokale Maschine zu senden und der übernimmt das OCR und stellt es im Netzwerk bereit.

Da ist wieder das Problem ob dieser Autarke Windows 10 Client die Indizierung an andere Win10 Client weitergeben kann.

...wie gesagt, ein *Editor*...das heisst für mich, das DIng legt die über OCR oder manuell erzeugten "tags/Infos" *im* PDF ab.

Dann kann auch jeder andere Cloient, die Infos finden, wenn er PDF durchsuchen und indizieren kann, solange Abby das im PDF in standardisierten Feldern ablegt.

Evtl. brauchst Du zur Indizierung dann den Abby wieder auf jedem Client.

 

Aber das was Du willst hat mit der Funktion von Papermerge nix zu tun...kann es einfach nicht.

Link to comment

gestern gab es mal wieder ein update von papermerge und es läuft mal wieder nicht mehr nach dem update :-(

 

hier mal das ganze log:

 

File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 79 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 81 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 83 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 85 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 87 seconds
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] respawning "/usr/bin/python3 ./manage.py worker" (uid: 99 gid: 100)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 224, in fetch_command
app_name = commands[subcommand]
KeyError: 'worker'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 231, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/papermerge/config/settings/production.py", line 1, in <module>
from .base import * # noqa
File "/app/papermerge/config/settings/base.py", line 4, in <module>
from mglib.utils import try_load_config
ModuleNotFoundError: No module named 'mglib'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 89 seconds

Link to comment
  • 2 weeks later...
On 2/27/2021 at 3:24 PM, Hoddl said:

kannst du mir genau erklären wie du vorgehst und was du eingestellt hast?!

Habe die Belege wieder raus gelöscht und bin mal über den Import Ordner gegangen und hab 4 pdfs zum testen da rein kopiert doch leider passiert mit den pdfs nix, die bleiben einfach drinnen und werden nicht weiterverarbeitet...

 

Danke

Hi, konntest du das problem lösen? Bis vor kurzem hat der Importer bei mir funktioniert und nun nach einem update werden die pdfs nicht verarbeitet. 

Link to comment
  • 2 weeks later...
On 3/22/2021 at 6:55 PM, chrisgo said:

Hi, konntest du das problem lösen? Bis vor kurzem hat der Importer bei mir funktioniert und nun nach einem update werden die pdfs nicht verarbeitet. 

Bei mir leider das gleiche, nach dem Update geht leider gar nicht mehr. Nach Hochladen eines pdf vrebleibt dieses einfach in der inbox...

 

File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 368, in execute
self.check()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/usr/local/lib/python3.8/dist-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/usr/local/lib/python3.8/dist-packages/papermerge/core/checks.py", line 113, in binaries_check
subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/root/.local/bin/stapler'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 300 seconds

 

 

Er beklagt sich über einen permission error? Weiß jemand, was da los ist? 

 

Frohe Osterfeiertage!!

 

 

Link to comment

ich teste jetzt ecodms - ist zwar hässlich doch bisher funktioniert alles... auch wenn ich mal mehrere hundert belege verarbeiten lasse läuft es durch und bricht nicht irgendwann ab oder bleibt einfach hängen..

 

ich würde ja gerne zu einem schöneren System gehen doch bis jetzt hab ich noch nichts gefunden was so funktioniert...

Link to comment
On 4/3/2021 at 9:44 AM, hundsboog said:

Bei mir leider das gleiche, nach dem Update geht leider gar nicht mehr. Nach Hochladen eines pdf vrebleibt dieses einfach in der inbox...

 


File "./manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 368, in execute
self.check()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/usr/local/lib/python3.8/dist-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/usr/local/lib/python3.8/dist-packages/papermerge/core/checks.py", line 113, in binaries_check
subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/root/.local/bin/stapler'
[uwsgi-daemons] throttling "/usr/bin/python3 ./manage.py worker" for 300 seconds

 

 

Er beklagt sich über einen permission error? Weiß jemand, was da los ist? 

 

Frohe Osterfeiertage!!

 

 

ich habe es so gelöst:

 

BINARY_STAPLER = "/usr/local/bin/stapler"

 

einfach das in das config file dazuschreiben, hat auf anhieb funktioniert.

  • Thanks 1
Link to comment
  • 1 month later...
On 1/4/2021 at 12:07 PM, Niaxa said:

Sollte noch Interesse bestehen, wie man die Automatisierung in Papermerge verwendet... einfach bescheid geben. Die Anleitung wird noch überarbeitet. Ich wollte das jetzt einfach mal schnell schnell zusammenfassen. Ich hoffe es ist verständlich und hilft dem ein oder anderem weiter.

Ich bitte drum🙃

Link to comment

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.