fix: include command stderr in backup failure messages #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/verbose-command-stderr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
"Backup failed: odoo-volumes / Command failed with exit code 1" was still vague — the streaming command executor captured the command's stderr but threw it away.
Root cause:
stream_stderronly accumulated stderr whenaccept_stderr_successwas set (a Redis-specific flag), and volume backups passfalse. So the error message had nothing but the exit code.Fix:
stream_stderralways retains a bounded (8 KB) tail of stderr (memory-safe), regardless of that flag.volume-backup command failed (exit 1): tar: /data: Cannot open: Permission deniedinstead of just the code.So the next time
odoo-volumesfails, the ✗ pill modal will show the actual tar/docker error.Full suite green — 1131 examples.
🤖 Generated with Claude Code