GRI-1937: install.sh upgrade, purge after a plain uninstall, questions time out #143

Merged
vivy merged 1 commit from feature/GRI-1937-install-upgrade into dev 2026-11-12 17:07:03 +00:00
Owner

Part 1 of the setup-wizard-plan on GRI-1937.

  • install.sh upgrade server|client: fetch the new source and rebuild, keep config and data. The build cache is kept, so it is faster than reinstall.
  • uninstall server --purge after a plain uninstall now finds the data by what is on disk: it drops the local database, removes /var/lib/private/grimoire-signage and leftover Docker volumes. Before, it only removed /etc/grimoire-signage.
  • Every question times out (SCRYGLASS_ASK_TIMEOUT, default 300 s) and then stops with a message. Cause of the 5-minute hang on the product owner's Ubuntu 26.04 host: the process list shows the $(ask ...) subshell blocked in read on /dev/tty, with no child process. Ubuntu 26.04 ships sudo-rs, which runs the command in its own pty (pts/3 vs the session's pts/2) and, with stdin a pipe, does not pass the typed y through. The message now says: download the script and run it from the file, or answer with an option.

Checks: bash -n clean; the timeout and a normal answer tested under a pseudo-terminal. No CI gate covers install.sh (shellcheck is not installed on the build host), and the branch changes no Rust or front-end code.

Part 1 of the `setup-wizard-plan` on GRI-1937. - `install.sh upgrade server|client`: fetch the new source and rebuild, keep config and data. The build cache is kept, so it is faster than `reinstall`. - `uninstall server --purge` after a plain `uninstall` now finds the data by what is on disk: it drops the local database, removes `/var/lib/private/grimoire-signage` and leftover Docker volumes. Before, it only removed `/etc/grimoire-signage`. - Every question times out (`SCRYGLASS_ASK_TIMEOUT`, default 300 s) and then stops with a message. Cause of the 5-minute hang on the product owner's Ubuntu 26.04 host: the process list shows the `$(ask ...)` subshell blocked in `read` on `/dev/tty`, with no child process. Ubuntu 26.04 ships sudo-rs, which runs the command in its own pty (pts/3 vs the session's pts/2) and, with stdin a pipe, does not pass the typed `y` through. The message now says: download the script and run it from the file, or answer with an option. Checks: `bash -n` clean; the timeout and a normal answer tested under a pseudo-terminal. No CI gate covers `install.sh` (shellcheck is not installed on the build host), and the branch changes no Rust or front-end code.
GRI-1937: install.sh gains upgrade, purge finds data after a plain uninstall, questions time out
Some checks failed
CI / cargo fmt (pull_request) Successful in 15s
CI / the pre-push hook (pull_request) Successful in 16s
CI / cargo clippy (pull_request) Successful in 1m49s
CI / cargo deny (pull_request) Successful in 1m41s
CI / cargo deny advisories (pull_request) Failing after 1m39s
CI / repository boundary (pull_request) Successful in 19s
CI / frontend-web (pull_request) Successful in 1m17s
CI / cargo test (pull_request) Successful in 3m52s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 4s
4e988c9e4a
vivy merged commit 9fcc0604c0 into dev 2026-11-12 17:07:03 +00:00
vivy deleted branch feature/GRI-1937-install-upgrade 2026-11-12 17:07:03 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!143
No description provided.