On Jun 9, 2020, at 1:23 PM, Mark Sapiro <mark@msapiro.net> wrote:
On Jun 9, 2020, at 11:34 AM, Mark Sapiro <mark@msapiro.net> wrote:
./mm3-admin: line 6: 702058 Killed django-admin $@
Now what?
Run it as user
list
.Same.
It appears that the reference to line 6 is line 6 of your mm3-admin file which is the
django-admin $@
command. So that command is being killed by the OS for some reason, probably out of memory.Try this instead.
import pytz import datetime start = datetime.datetime(2020, 1, 1).replace(tzinfo=pytz.UTC) end = datetime.datetime(2020, 2, 1).replace(tzinfo=pytz.UTC) # These are examples. The args are year, month, day. # Pick dates for start and end that overlap the start of this issue. from hyperkitty.models import Email emails = Email.objects.filter(date__range=(start,end)) for email in emails: if email.content.find('\u200b'*5) >= 0: print('Found in ml {}, hash {}'.format( email.mailinglist.name, email.message_id_hash))
This will make a much smaller query set than all the emails and should work.
I was just writing another email - I had a suspicion on this and I was right: this is the Linux OOM killer in action.
Jun 9 13:15:32 mail kernel: [1051406.859205] Out of memory: Killed process 712833 (python3) total-vm:2351156kB, anon-rss:2274112kB, file-rss:2236kB, shmem-rss:4kB, UID:38 pgtables:4616kB oom_score_adj:0 Jun 9 13:15:32 mail kernel: [1051407.042975] oom_reaper: reaped process 712833 (python3), now anon-rss:0kB, file-rss:0kB, shmem-rss:4kB
I set up a quick swapfile (there are 581,000 emails in this archive) and it came back with some hashes. I am tracking them down now.
- Mark
mark@pdc-racing.net | 408-348-2878