wrolpi/controller
lrnselfreliance 19ff59d5e0
A failed upgrade is shown on the upgrade page instead of redirecting home (#955)
* A failed upgrade is shown on the upgrade page instead of redirecting home

A failed upgrade restarts the services it stopped, so the upgrade page saw
them come back and redirected home as if the upgrade had worked.  The
Controller now reports how the last run of a script ended
(GET /api/scripts/{name}/result, from systemd's Result and exit status),
and the upgrade page reads it before redirecting.  A failure turns the
banner red, gives the exit code, opens the output, and offers a link back.

Only a run the page has seen start counts, because the result of an
earlier run is still reported until the new run begins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* An upgrade's result survives the daemon-reload it does

The upgrade reinstalls its unit and reloads systemd, which clears the run's
timestamps but keeps Result and the exit status.  A failure is now known
from those alone, and the result reports whether the script is running, so
the upgrade page waits on that instead of on a timestamp that may never come.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:11:59 -07:00
..
api A failed upgrade is shown on the upgrade page instead of redirecting home (#955) 2026-11-08 11:11:59 -07:00
lib A failed upgrade is shown on the upgrade page instead of redirecting home (#955) 2026-11-08 11:11:59 -07:00
templates A failed upgrade is shown on the upgrade page instead of redirecting home (#955) 2026-11-08 11:11:59 -07:00
test A failed upgrade is shown on the upgrade page instead of redirecting home (#955) 2026-11-08 11:11:59 -07:00
__init__.py Creating Controller service which will control WROLPi services, admin, SMART, disks, and status. nginx will fallback to Controller UI when React UI is unavailable (such as during upgrades). 2025-12-15 15:48:40 -07:00
conftest.py The hotspot starts on boot (#829) 2026-10-13 19:29:15 -06:00
defaults.py A library on the internal disk gets a database (#832) 2026-10-14 16:15:33 -06:00
main.py The hotspot starts on boot (#829) 2026-10-13 19:29:15 -06:00
requirements.lock Python packages install from hash-locked requirements; yt-dlp still floats (#913) 2026-11-01 12:00:39 -07:00
requirements.txt build(deps): update pytest-asyncio requirement in /controller (#926) 2026-11-02 12:05:36 -07:00
serve.py Migrating Controller from port 8087 to 80 so that it is more discoverable. Reformatting Controller dashboard to make header at the top. Reformatting navigation bar to handle the new links which prevented Admin from being visible in some screens. 2026-04-09 15:01:05 -06:00