Commit d695fe5
fix(host-agent): surface docker failures in _compose_restart_llama_server
_compose_restart_llama_server called subprocess.run four+ times for
docker commands (compose stop/up, docker restart/stop/start) without
inspecting returncode. Docker-layer failures (permission denied, missing
compose file, daemon errors) were silently swallowed: _do_model_activate
proceeded into the 5-minute health-check polling loop and only reported
a generic "Health check failed — rolled back" with no indication of the
real cause.
Route all docker calls through a nested _run helper that captures
stderr, checks returncode, and raises RuntimeError with the failing
command + stderr tail on non-zero. The caller at _do_model_activate
already wraps the path in `except Exception` and will now surface the
docker error immediately. Native-host path only — Windows/WSL2 uses
_recreate_llama_server which has its own returncode handling.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ac881c3 commit d695fe5
1 file changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1605 | 1607 | | |
1606 | 1608 | | |
1607 | 1609 | | |
1608 | 1610 | | |
1609 | 1611 | | |
1610 | 1612 | | |
1611 | 1613 | | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1612 | 1625 | | |
1613 | 1626 | | |
1614 | 1627 | | |
1615 | | - | |
1616 | | - | |
| 1628 | + | |
1617 | 1629 | | |
1618 | | - | |
1619 | | - | |
| 1630 | + | |
1620 | 1631 | | |
1621 | 1632 | | |
1622 | 1633 | | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
| 1634 | + | |
| 1635 | + | |
1627 | 1636 | | |
1628 | 1637 | | |
1629 | 1638 | | |
| |||
0 commit comments