Bug 282808 - deskutils/py-paperless-ngx: Missing required django migration
Summary: deskutils/py-paperless-ngx: Missing required django migration
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Michael Gmelin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-17 08:00 UTC by Xin LI
Modified: 2024-11-20 12:29 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (grembo)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2024-11-17 08:00:13 UTC
When uploading documents to paperless-ngx I am seeing the following errors from log:

[WARNING] [paperless.tasks] Classifier error: column documents_document.transaction_id does not exist

The problem is that migration src/documents/migrations/1052_document_transaction_id.py was not applied.

If the port was intentionally held at v2.11.0, the solution would be to add https://github.com/paperless-ngx/paperless-ngx/blob/dev/src/documents/migrations/1052_document_transaction_id.py to the tree.  Otherwise, update to at least v2.11.6 should fix it.

(This is likely to affect all existing installations upgraded from an earlier version).
Comment 1 Michael Gmelin freebsd_committer freebsd_triage 2024-11-17 14:35:28 UTC
(In reply to Xin LI from comment #0)

Thank you for the report.

Seems like this is a side-effect of a dependency update (likely py311-django-soft-delete to 1.0.14), that's why I didn't see the problem when updating the port to 2.11. I'm currently working on a bigger update (which involves django 5), but I will commit one of the solutions you proposed in the meantime (soon).
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-11-20 11:41:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3962e5daf022aa15b5db311eb320477b2e6ce127

commit 3962e5daf022aa15b5db311eb320477b2e6ce127
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-11-20 11:37:09 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-11-20 11:38:58 +0000

    deskutils/py-paperless-ngx: Update to 2.11.6

    This also fixes a problem when updating www/py-django-soft-delete
    to versions >= 1.0.14.

    PR:             282808

 deskutils/py-paperless-ngx/Makefile                |  5 ++--
 deskutils/py-paperless-ngx/distinfo                | 10 ++++----
 .../py-paperless-ngx/files/paperless-ngx.7.in      | 10 +++++++-
 deskutils/py-paperless-ngx/pkg-plist               | 28 ++++++++++++++++++++++
 4 files changed, 44 insertions(+), 9 deletions(-)