Skip to content

Deploy file-service on autoupdate so /file-uploads works in prod - #335

Merged
mxschmitt merged 1 commit into
mainfrom
cursor/autoupdate-file-service-67ec
Sep 4, 2026
Merged

Deploy file-service on autoupdate so /file-uploads works in prod#335
mxschmitt merged 1 commit into
mainfrom
cursor/autoupdate-file-service-67ec

Conversation

@mxschmitt

Copy link
Copy Markdown
Owner

Why production is still broken

#334 is merged and CI built file-service:latest / frontend:latest. Autoupdate then pulled frontend and restarted it (new Caddyfile proxies /file-uploads/* to file:8080) but explicitly skipped file:

# Do not restart file; its manifests/env can lag :latest.
APP_DEPLOYMENTS=(frontend control squid)

Live check: GET https://try.playwright.tech/file-uploads/foo.png returns Echo JSON {"message":"Not Found"} (Caddy → old file-service with no download route). A new handler would 400 invalid names.

Until deployment/file runs the #334 image, every screenshot 404s.

This PR

  • Pull file-service:latest and restart deployment/file
  • After git reset --hard, re-exec the script so the new image list applies on the same cycle
  • One-shot marker so a SHA that already deployed without file still rolls the download handler

Host (do this now, do not wait for cron)

k3s crictl pull ghcr.io/mxschmitt/try-playwright/file-service:latest
kubectl rollout restart deployment/file
kubectl rollout status deployment/file

Then re-run a snippet on https://try.playwright.tech/ (new UUID; Cloudflare may have cached old 404s).

Open in Web Open in Cursor 

#334 moved /file-uploads GET from RustFS to file-service, but
upgrade_k3s_containers.sh pulled frontend:latest and explicitly skipped
file. Production Caddy now proxies screenshots to file:8080 while the
file pod still has no download handler, so every image 404s.

Pull file-service:latest, restart deployment/file, and re-exec the repo
script after reset so this list is used on the same deploy cycle.

Co-authored-by: Max Schmitt <max@schmitt.mx>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T19:33:35.399464Z 99affdb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mxschmitt
mxschmitt merged commit 15bc5ec into main Sep 4, 2026
11 checks passed
@mxschmitt
mxschmitt deleted the cursor/autoupdate-file-service-67ec branch September 4, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants