Page MenuHomePhabricator

Civi failure email not sending due to Mailing error: Failed to write to socket: unknown error
Closed, ResolvedPublic

Description

Donor in 1723165 / CID 68159822 reached out about their recurring donation. I can see that it failed on 09/04. However upon review of Activities on their record it appears that a civi failure email does not appear to have deployed notify them of the cancellation and inviting them to restart.

We encountered this before as described in https://phabricator.wikimedia.org/T386733.

CID 53975301 is an example of a different donor who did recently get the failure email as expected.

Could we look into why this one didn't get a failure email?

Thanks! :)

Event Timeline

Cstone renamed this task from Civi failure email didn't deploy? to Civi failure email didn't send.Sep 10 2025, 5:29 PM
Cstone subscribed.

Looks like the payment failed with (auto) un-retryable card decline reason code

Looking at donations with this cancellation reason since September 1:
236 got the failure email
78 did not get the failure email

Something is going on here on our end, looking into it further

Cstone renamed this task from Civi failure email didn't send to Civi failure email not sending due to Mailing error: Failed to write to socket: unknown error.Sep 19 2025, 2:47 AM

Looks like we got the Failed to write to socket part of the error in T314805: QueueWrapper should fall back to damaged/retry message table when redis connection is dead

XenoRyet triaged this task as Medium priority.Oct 27 2025, 7:45 PM

This was deployed on 2025-11-05 and the emails are being sent from the recurring charge job via coworker now.

Still need to switch over the recurring charge job failures (autorescue failures)

XenoRyet set Final Story Points to 2.