Open sebbacon opened 4 years ago
I can see repeated (?) mailgun connection errrors, and a phantomjs core dump in there.
We really need to put some thought into making this run unsupervised!
My questions:
During handling of the above exception, another exception occurred
about)?For now, I've just run the identical command again to see if it gets to the end.
Re-running exhausted the 50-error limit very quickly, implying that these are not transient errors. Now re-running with a 200-error limit.
I guess after the alert sending has completed, we can review items that didn't send more systematically.
I'm signed up to quite a few alerts and the only one that consistently fails is the All-England alert. Prior to COVID I pestered Seb for maunal resend but not a priority during the epidemic. When we are spending time on OpenPrescribing it would be great if this could be prioritised for a fix as there are a certain select group of people who will be interested in national picture but not so much in signing up to a single practice or single CCG.
@sebbacon has suggested sending All-England alerts first above if this is potentially a quick fix on it without completely revisiting?
Here's a copy of the entire screen buffer from the last run
Type 1: bad email address, at openprescribing/common/alert_utils.py
, line 40
Sending a message to sach.hirani@gp-c82038.nhs.uuk from OpenPrescribing <feedback@openprescribing.net>
Mailgun API response 400 (BAD REQUEST):
{
"message": "'to' parameter is not a valid address. please check documentation"
}
Type 2: bad return from phantomjs HTTP activity
/usr/local/bin/phantomjs /webapps/openprescribing/openprescribing/frontend/management/commands/grab_chart.js "https://openprescribing
.net/analyse/#org=practice&orgIds=07R&numIds=4.1&denom=total_list_size&selectedTab=summary&source=button"
List of pages not returning:
https://openprescribing.net/analyse/#org=practice&orgIds=07R&numIds=4.1&denom=total_list_size&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=practice&orgIds=07R&numIds=4.1&denom=total_list_size&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=practice&orgIds=05T&numIds=0601023AQBB,0601023AQAA&denomIds=0601023ABAA,0601023ABBB&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=practice&orgIds=03T&numIds=0601023AQ&denomIds=0601023AB&selectedTab=map https://openprescribing.net/analyse/#org=practice&orgIds=P88026&numIds=21220000252&denom=nothing&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=practice&orgIds=07X&numIds=9&denom=nothing&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=pcn&orgIds=U87478&numIds=0407010Q0&denomIds=4.7&selectedTab=chart&source=button https://openprescribing.net/analyse/#org=pcn&orgIds=U21465&numIds=0403040ABAA&denom=total_list_size&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=CCG&numIds=21220000283&denom=nothing&selectedTab=summary&source=button https://openprescribing.net/analyse/#org=practice&orgIds=07R&numIds=4.1&denom=total_list_size&selectedTab=summary&source=button
Many of the links above are for closed CCGs, which return an error.
Others are timing out.
My quick fixes for today are:
@inglesp @evansd is this still an issue?
Running the command with
./manage.py send_monthly_alerts --max_errors=50