Page MenuHomePhabricator

'webarchivebot' tool's custom webarchivebot-backend crashing because of code that expects /usr/sbin/sendmail
Open, Needs TriagePublic

Description

Found while working on T246559: Investigate CrashLoopBackoff Pods on 2020 Kubernetes cluster.

$ kubectl logs webarchivebot-backend-784564bb-7n8hl

2020-03-01 07:52:36
sh: 1: /usr/sbin/sendmail: not found
Archiving... Connection to the DB failed: SQLSTATE[HY000] [1045] Access denied for user ''@'172.16.1.80' (using password: NO)

The Kubernetes environment does not include sendmail or a sendmail alternative binary. Instead Kubernetes tools should use SMTP directly via the mail.tools.wmflabs.org gateway. https://wikitech.wikimedia.org/wiki/Help:Toolforge/Email#Sending_via_SMTP

Event Timeline

Mentioned in SAL (#wikimedia-cloud) [2020-03-01T08:03:17Z] <wm-bot> <root> Deleted webarchivebot-backend deployment because code is not running properly on the 2020 Kubernetes cluster. (T246559, T246563)

Aklapper added a subscriber: Amitie_10g.

Removing task assignee due to inactivity as this open task has been assigned for more than two years. See the email sent to the task assignee on August 22nd, 2022.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome!
If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!