my_backup Weekly Notification — Diagnosis & Fix
Section titled “my_backup Weekly Notification — Diagnosis & Fix”Problem
Section titled “Problem”send_status_report was supposed to email a weekly status report every Sunday at 9 AM but had stopped arriving.
Root Causes Found
Section titled “Root Causes Found”| Date | Error | Outcome |
|---|---|---|
| 2026-03-22 | 535 BadCredentials — Gmail rejected App Password | Transient; credentials still work |
| 2026-03-29 | 535 BadCredentials — same | Transient; credentials still work |
| 2026-04-05 | /bin/sh: 1: uv: not found | Root cause — fixed |
uv is installed at /home/ta/.local/bin/uv. Cron’s default PATH (/usr/bin:/bin) doesn’t include that directory. The Mar 22/29 BadCredentials errors appear to have been transient Google auth issues — the same App Password works fine now.
Fix Applied
Section titled “Fix Applied”Added PATH=/home/ta/.local/bin:/usr/local/bin:/usr/bin:/bin to the top of the crontab. This covers all cron jobs, not just send_status_report.
Verified: Manual test run with full paths succeeded — email delivered to tstevens99@gmail.com with no errors.
Monitoring
Section titled “Monitoring”First run under fixed crontab: Sunday 2026-04-12 at 9 AM.