I have the same issue now. that's happen when I try to open held messages
This is what I have in my logs:
File "/usr/lib/python3/dist-packages/mailman/rest/post_moderation.py", line 167, in _resource_as_dict assert resource is not None, resource AssertionError: None
that is the default mailman3 debian package.
GNU Mailman 3.3.3 (Tom Sawyer)
things were working smoothly for a very long time. it started after disk array disaster. we installed the thing to another server, and restored the database from backups.
I've tried to use this magic:
The variable 'm' is the odoo_leads@qarea.org mailing list
from mailman.app.moderator import handle_message requestdb = IListRequests(m) for req in requestdb.held_requests: ... if req.request_type == RequestType.held_message: ... if not requestdb.get_request(req.id): ... print(f'Bad request id: {req.id}, deleting') ... requestdb.delete_request(req.id) ...
but no success. is there any way to fix this? the system is Debian 11.6 mailman installed from .deb package I am absolutely sure there wasn't any race condition, it's only me who accesses the server. I'd rather not install anything not from the repos, only if I will be sure, that I could not fix the issue the other way.
thank you.