Order of Operations: When Updating Fluxer Server, Pull BEFORE Docker Down

(#4152) Bug Closed: Fixed self-hosting

Reproduction steps

Run bash ./install.sh --update

Expected behaviour

  1. Run bash ./install.sh --update
  2. Git pull
  3. Docker compose takes the services down
... X. Done

Actual behaviour

  1. bash ./install.sh --update
  2. Docker compose takes the services down
  3. Git pull
  4. Patch
.... X. Done

Platform

Self-hosting

Evidence

As Fluxer gets larger, being able to make sure the git pull succeeds first should take precedence over making sure the server shuts down properly. At this point in time, the longer it takes for the server to pull the latest build, the longer it takes for the server to come back online instead of only waiting for the down -> compilation/patch -> up.

2 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 2 votes
Status changed from Needs triage to Fixed
Fixed in Fluxer 2026.1025.4648 for self-hosted instances. rexctl upgrade now downloads the new release before it stops anything, so a slow download no longer keeps your instance offline. Run rexctl upgrade (or install.sh --update) to get it.
Comment by viinz
viinz 2 votes
This isn't the actual behavior though, (simplified) it goes like:
  1. Dump DB
  2. Stop Stack
  3. Backup seaweed-fs
  4. Start back up
  5. Pull images
  6. Recreate stack (very short downtime)
The initial docker compose down is only for the backup, and the stack is started back up afterwards. I do feel like it would be nice to have only one downtime right after the pull, but as the docs state: a live copy can catch a file mid-write.