Hi,
I am having problems exporting my paperless-ngx date from my old server to Unraid.
I have both running now, both the latest version 2.5.0 and I created the same users on both.
I then ran an export on the old one: document_exporter ../export
Next I moved ALL files (including the .jsons) to the export folder of the new installation
Then I ran the import on the new one: document_importer ../export
I get these errors:
root@39a32b43a9fe:/usr/src/paperless/src# document_importer ../export
Found existing user(s), this might indicate a non-empty installation
Checking the manifest
Database import failed
No version information present
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/db/backends/sqlite3/base.py", line 328, in execute
return super().execute(query, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.IntegrityError: UNIQUE constraint failed: auth_user.username
My version.json only has this content:
{
"version": "2.5.0"
}
And my manifest.json is full with the tags and user info from my old installation:
{
"model": "auth.user",
"pk": 4,
"fields": {
"password": "REMOVED", <<< removed real password
"last_login": "2024-02-10T18:49:33.728Z",
"is_superuser": true,
"username": "user", <<< removed real username
"first_name": "",
"last_name": "",
"email": "
[email protected]", <<< removed real emailaddress
"is_staff": true,
"is_active": true,
"date_joined": "2024-01-22T11:02:24Z",
"groups": [],
"user_permissions": []
}
},
Does anyone have an idea what I am doing wrong?
Edit: Found the issue and resolved it. Paperless doesn't like it when you import existing users of another instance to the new one, if you have created users there before.
So for anyone wondering, after installing your new image and starting it, do not log in, instead do the document_importer ... routine first,
Much appreciated!