Ich habe auf meiner Synologa per DockerContainer eine paperless-ngx Version 1.9.2 und sqllite am Start und möchte aus dem Export nach paperless-ngx Version 2.8.X mit postgresql Datenbank migrieren.
Irgendwie bekomme ich dies nicht auf die Reihe Fehler wie folgt…
Nach EIngabe auf dem WebServer von:
./manage.py document_importer /usr/src/paperless/export
oder
python3 manage.py document_importer /usr/src/paperless/export
Version mismatch: Currently 2.14.7, importing 1.9.2. Continuing, but import may fail.
Checking the manifest
Database import failed
Version mismatch: Currently 2.14.7, importing 1.9.2
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/django/apps/config.py", line 235, in get_model
return self.models[model_name.lower()]
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'comment'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/django/core/serializers/python.py", line 191, in _get_model
return apps.get_model(model_identifier)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/apps/registry.py", line 213, in get_model
return app_config.get_model(model_name, require_ready=require_ready)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/apps/config.py", line 237, in get_model
raise LookupError(
LookupError: App 'documents' doesn't have a 'comment' model.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/paperless/src/./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/paperless/src/documents/management/commands/document_importer.py", line 280, in handle
self.load_data_to_database()
File "/usr/src/paperless/src/documents/management/commands/document_importer.py", line 218, in load_data_to_database
raise e
File "/usr/src/paperless/src/documents/management/commands/document_importer.py", line 204, in load_data_to_database
call_command("loaddata", manifest_path)
File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 194, in call_command
return command.execute(*args, **defaults)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/management/commands/loaddata.py", line 103, in handle
self.loaddata(fixture_labels)
File "/usr/local/lib/python3.12/site-packages/django/core/management/commands/loaddata.py", line 164, in loaddata
self.load_label(fixture_label)
File "/usr/local/lib/python3.12/site-packages/django/core/management/commands/loaddata.py", line 252, in load_label
for obj in objects:
^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/serializers/json.py", line 70, in Deserializer
yield from PythonDeserializer(objects, **options)
File "/usr/local/lib/python3.12/site-packages/django/core/serializers/python.py", line 114, in Deserializer
Model = _get_model(d["model"])
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/serializers/python.py", line 193, in _get_model
raise base.DeserializationError(
django.core.serializers.base.DeserializationError: Problem installing fixture '/usr/src/paperless/export/manifest.json': Invalid model identifier: 'documents.comment'
Gibt es Vorschläge?