Thread matching query does not exist
Now I am seeing this in the log every few seconds:
12:12:29 [Q] INFO Process-1:4 processing [rebuild_thread_cache_votes] 12:12:29 [Q] ERROR Failed [rebuild_thread_cache_votes] - Thread matching query does not exist. : Traceback (most recent call last): File "/opt/mailman/mm/venv/lib/python3.7/site-packages/django_q-1.0.1-py3.7.egg/django_q/cluster.py", line 377, in worker res = f(*task['args'], **task['kwargs']) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.2.3-py3.7.egg/hyperkitty/tasks.py", line 189, in _rebuild_thread_cache_votes thread = Thread.objects.get(id=thread_id) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/Django-2.1.9-py3.7.egg/django/db/models/manager.py", line 82, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/Django-2.1.9-py3.7.egg/django/db/models/query.py", line 399, in get self.model._meta.object_name hyperkitty.models.thread.Thread.DoesNotExist: Thread matching query does not exist.
Any help? How do I identify the thread in question?
I imported an archive from a Listserv list, processed into something resembling mbox format (which I now understand not to be a standard at all) and have about 100,000 messages there. I am having a lot of trouble with these sort of errors, as you will see from my flurry of posts recently.
Yes, I am running all the jobs.
Andrew
I still do not know what causes this, but today I purged all the queued tasks using the Django admin page, and thankfully the issue seems to have cleared.
Andrew
On Sun, Jun 30, 2019, at 6:05 PM, andrew.bernard@gmail.com wrote:
I still do not know what causes this, but today I purged all the queued tasks using the Django admin page, and thankfully the issue seems to have cleared.
This is because of the delete process not clearing up the job queue, which is where this exception comes from. This should actually not be logged at all since they are harmless error and create more confusion than prove to be useful.
I'll open a bug report for this.
Andrew
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
Hi,
I had the same errors after I deleted a couple archives using the mechanism below from manage.py shell.
from hyperkitty.models import MailingList ml = MailingList.objects.get(name="yourlist@example.com") ml.delete()
The errors in the mailman3-web logs were such.
INFO Process-1:1 processing [rebuild_thread_cache_votes] 12:10:34 [Q] ERROR Failed [rebuild_thread_cache_votes] - Thread matching query does not exist. 12:10:34 [Q] INFO Process-1:1 processing [rebuild_email_cache_votes] 12:10:34 [Q] ERROR Failed [rebuild_email_cache_votes] - Email matching query does not exist.
Running the daily/monthly/yearly runjobs by hand did not solve the issue. Then I logged into the django admin from the web interface and deleted the queued tasks with the same names of the processes which were failing. I even deleted the failed tasks, but I am guessing it was unnecessary.
I don't see the errors anymore. But I still have the other issues which were mentioned in other posts that have to do with not updating the number of messages and participants and not showing the messages sent from the email client of the subscribers in the hyperkitty archive.
participants (3)
-
Abhilash Raj
-
andrew.bernard@gmail.com
-
maria-haider@hotmail.com