Edit history

rexctl migrate --to docker always fails "storage check: media-proxy can't find 9 of 9 attachments" although the files are present has not been edited, so there are no earlier versions.

Current version | Original by Zeltrax
Show

rexctl migrate --to docker always fails "storage check: media-proxy can't find 9 of 9 attachments" although the files are present

Reproduction steps

  1. Start with a self-hosted instance on the older per-part Docker Compose layout ("Docker Compose, older layout"), managed by rexctl, with SeaweedFS holding a few attachments.
  2. Install rexctl 2026.1128.359 and run rexctl migrate --to docker --dry-run. It's clean, with no stoppers.
  3. Run rexctl migrate --to docker and answer Yes.
It happens every time. I ran it 3 times and got the same result each time.

Expected behaviour

The move to one container completes, and media-proxy serves the existing attachments from plain files.

Actual behaviour

Valkey to Postgres succeeds (48 keys), and SeaweedFS to plain files reports done (fluxer: 31 objects, 32782599 bytes, fluxer-uploads: 1 objects, 7237 bytes). Then:
Checking that it works.
▲ Going back from SeaweedFS to plain files.
▲ Going back from Valkey to Postgres.
✘ The change didn't work, and rexctl put your instance back as it was.
  Media-proxy can't find 9 of 9 attachments, such as
  attachments/1575656663854088192/1575656799795675137/signin-background_1.jpg.
  Migrate: storage check failed: media-proxy can't find 9 of 9 attachments
The rollback is clean every time.

Build information

rexctl 2026.1128.359 (60904533), go1.27.4, linux/amd64. Target Fluxer release 2026.1128.359. The instance is on the legacy Compose layout, with images pinned by digest. PostgreSQL 16.16. Host: UGREEN DXP4800 Pro NAS, UGOS Pro (Debian-based), x86_64, Docker root on btrfs.

Platform

Self-hosting

Evidence

What a watcher polling every 2 s saw during the check:
  • The fluxer_objects-data volume contains .layout = {"v":1}, fluxer/, fluxer-uploads/, .meta/ and .staging/. There are 34 files, all 65532:10001 mode 0660. Folders are 65532:10001 mode 2770, and the root is 10001:10001 2770.
  • All 9 attachments the check names exist at fluxer/attachments/<channel>/<id>/<filename>, with the same sizes as in SeaweedFS (for example, one PNG is 1,198,412 bytes). .meta/ holds an entry only for attachments/…/public.json.
  • media-proxy is recreated with FLUXER_MEDIA_PROXY_STORAGE_BACKEND=local, FLUXER_MEDIA_PROXY_STORAGE_ROOT=/var/lib/fluxer/objects and mount fluxer_objects-data -> /var/lib/fluxer/objects. It runs as uid=10001 gid=10001, so the files are group-readable. It turns healthy, and about 10 s later rexctl rolls back.
  • media-proxy logs only startup INFO lines ("native memory budget", "attachment url signature policy active mode=Enforce", "media proxy listening"). There are no warnings or errors about missing objects.
  • media-proxy's environment includes FLUXER_MEDIA_PROXY_MODE=upload and an empty FLUXER_S3_READ_BUCKET=. Setting FLUXER_S3_READ_BUCKET=fluxer explicitly made no difference.
Questions:
  1. What does the storage check request from media-proxy (URL, signed or unsigned), and which response does it treat as "can't find"?
  2. Does the local backend expect a different layout or bucket mapping from what migrate writes (for example .meta/ sidecars, or bucket resolution in upload mode)?
  3. Is there a way to get debug logs from media-proxy or from the check, or to keep the failed state for inspection instead of rolling back?