fix(manage-server): upgrade.sh breaks on podman-compose (no rm subcommand) #19
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
primatekuntech/triton-install!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/upgrade-sh-podman-compose-rm"
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?
Summary
Sync of amiryahaya/triton PR #756 (source of truth:
scripts/deploy/manage-server/upgrade.sh).upgrade.shcalled${COMPOSE[@]} rm -f manage-server, but podman-compose 1.0.6 has normsubcommand at all — the upgrade aborted underset -eright after stopping the old container, leaving the manage server down and never recreated. Reproduced live: freshinstall.shat rc.12,upgrade.sh --image ...:1.1.0-rc.13stopped the app and died there.podman/docker) directly for stop/rm instead of going through compose.--no-depsdoesn't reliably stop it from also recreatingtriton-manage-dbwhenever.envchanged. Not destructive (same named volume/env, clean restart) but the script's comment asserted this never happens. Added a guard that detects it and waits for postgres to come back up before continuing, and corrected the comment.SCRIPT_VERSION.TRITON_MANAGE_JWT_SIGNING_KEYbackfill block (#18) — separate, pre-existing drift not yet ported back to the source-of-truth repo, flagged to the maintainer, out of scope for this PR.Test plan
upgrade complete, container on rc.13,/api/v1/healthOK).bash -nsyntax check.🤖 Generated with Claude Code
podman-compose 1.0.6 has no `rm` subcommand, so `${COMPOSE[@]} rm -f manage-server` aborted the upgrade under set -e right after stopping the old container, leaving the manage server down and never recreated. Verified live: install.sh at rc.12, upgrade.sh --image rc.13 stopped the app and died there. Switch the stop/rm step to call the runtime directly instead of going through compose. Also detected that podman-compose computes its recreate decision from a whole-project config hash rather than a per-service one, so `--no-deps` doesn't reliably keep it from also recreating triton-manage-db whenever .env changed — not destructive (same named volume/env), but the script asserted it never happened. Added a guard that detects this and waits for postgres to come back up instead of silently trusting it, and corrected the comment. Re-verified end-to-end: rc.12 -> rc.13 upgrade now completes cleanly via upgrade.sh with no manual intervention. Source of truth: scripts/deploy/manage-server/upgrade.sh in amiryahaya/triton, PR #756. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>