A redelivered webhook for an old ancestor passed the ancestry check and reset the site backwards (BIT-34036). deploy.sh now fetches and skips with exit 0 unless SHA == origin/main tip. Rollback path unchanged.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The installer job was waiting on a commented matrix row, USB stayed on Image Capture, face detection could not read the Windows CPU, and notarisation had nowhere to put an Apple account.
wait_for polled on a fixed try count (HEALTH_TRIES=90, ~450s worst case),
which exceeded photoreport-boot.service's TimeoutStartSec. When the API a
container depends on was briefly down (pr-api rebooting after a vzmigrate),
pr-site's wait_for never got 200, systemd timed the oneshot out, killed the
whole cgroup — including the PM2 daemon boot.sh had just launched — and left
nginx with no upstream (502) that never self-healed even after the API
recovered.
Bound wait_for by wall clock (BOOT_HEALTH_BUDGET_SEC, default 150s) so
boot.sh always exits within TimeoutStartSec with margin for the pm2_start
retry path. PM2 (autorestart) and the next-env watchdog handle real
recovery; this poll only confirms the boot.
Paperclip-Issue: BIT-32855
A tight crop was dropping a ball held out to the side and a second player, and a learnt cut could chop a body the frame had kept. Reportage stays open, open eyes win a sequence, and a Canon file that still has the camera level uses that roll. The library menu, sort, and event-day folder go out with the same change.
pm2 startOrReload hung on pr-api after the 2026-11-18 reboot. systemd killed
photoreport-boot and the process list stayed empty, so nothing could report
the outage. Bound the call, reset the daemon once, and retry the unit.
A retagged desktop-v* on the wrong commit announced 0.3.25 while the
binary was still signed as 0.3.24. Prefer the newest asset, skip mismatched
releases, and refuse to write such a manifest at build time.
Videos count in the galleries main now stores (a game's parts share one card): video_count summed per gallery, the
first video's frame as cover of a videos-only gallery, the videos of every part in the gallery page, and only from
published folders. The face review keeps main's own overlay class (.arq-rlightbox).
The migration (renumbered after main's) clears the folders' etags and walks every cloud at once, so the videos the
walks skipped until now are found; photos already indexed keep their etag and are not indexed again.
The API deploy puts a static ffmpeg in ~/.local/ffmpeg (md5 checked) when the host has none; the worker uses it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SC7s5gwdivkoBXbRGxbnAo
Live incident 2026-10-19: node09 rebooted and photoreport-boot.service ran
twice concurrently against a freshly-spawned, still-empty PM2 daemon. Both
invocations saw "not running" and launched photoreport-api, creating a
duplicate that crash-looped forever on EADDRINUSE (1700+ restarts by the
time it was caught, silently -- the original instance kept serving so
/health never flagged it). Deleted the ghost process and re-saved live.
Wrap the pm2 startOrReload calls in both scripts with the same flock so a
boot racing a webhook-triggered deploy (or a double-invoked boot unit)
serializes instead of racing the "is it running" check.
Paperclip-Issue: BIT-31073
Paperclip-Run: 9c6946f6-df0c-4544-97ac-6b00a2de8bd1
Unsigned, each build looked like a new app to macOS, so the Desktop prompt came back again and again. The
installer is now signed with one identity (a Developer ID when given, else a local one made once in the
login keychain), and the app says why it needs each folder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
- Downloads: one photo, a selection (up to 100) or a whole gallery (ZIP, up to 1000) at 2048 px with
metadata, through a short-lived signed link. Gallery and large view get the buttons.
- The cloud is named only to those who edit the folder there (a small "originals" link); sign-in no
longer mentions it.
- cloud_sources.hostname: the site's middleware serves that archive at the root of its own host;
Caddy asks /v1/archive/host before getting a certificate. Set in the app (Endereço próprio).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
The boxes stay on the CPU interpreter. The recogniser uses every accelerator when a startup check still matches that interpreter, so the names stay the same.
PM2 max_memory SIGINT was ending the Prisma/pg pool while archive and
delivery jobs still queried it, flooding "Cannot use a pool after calling
end". Await idle on all loop workers before $disconnect, and raise the
worker memory/kill_timeout so burst indexing does not restart every few
minutes.
Paperclip-Agent: David Santos (urlKey founding-engineer; id 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376)
Paperclip-Issue: BIT-31189
Paperclip-Run: 61448079-9293-4b3b-989d-b5857bf058c1
photoreport-boot.service runs infra/deploy/boot.sh at boot (starts the PM2 apps from the last built code, without depending on a saved PM2 list); tmpfiles rule for TMPDIR; deploys pm2 save; PM2 retries with exponential backoff while the database starts.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The catalogue indexes the photographer's own folders by SHA-256 so the editor opens those originals from disk
(incremental rescans, read-only). The shell updates itself from the latest desktop-v* Gitea release, which the API
reads with a read-only token and passes through (signed installers; no key, no updates). Without network the
window opens the web app bundled in the installer. Also fixes two tests that tampered with a signature by setting
a character that could already be the same one.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
deploy.sh (set -u) now needs $HOME for the one-time rustup/wasm-bindgen
install under $HOME/.cargo (0cd5119). systemd gives services no HOME by
default, so every deploy of app since that commit failed immediately with
"HOME: unbound variable" -- both the real deploy and its rollback, leaving
pr-app stuck on the pre-0cd5119 build for 5+ pushes.
Paperclip-Issue: BIT-31073
Paperclip-Run: 325858bb-25b9-44f5-81f0-8309989d08ff
The desktop app runs an FTP server for cameras, set up like the old Studio: port, logins (e.g. 1dx/1dx on a
private network), the ingest folder (default ~/Desktop/ingest) and the work folder originals move to once the
server has them (default ~/Desktop/{year}/{date} - {event}). Library -> FTP local shows what to type into the
camera, chooses the event and starts or stops the server; it can also start with the app.
Each complete JPEG goes to the event through the resumable upload (the event IPTC applies on the server). The
ingest folder is the queue: nothing is deleted, and what did not go is sent on the next start. The feed lives
above the modules, so photos keep arriving in Revelar too. An older desktop app is told to update.
Desktop 0.2.0. The desktop Cargo.lock is refreshed by the build.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The app host had no Rust toolchain, so Revelar showed "engine missing". The deploy now installs rustup, the
wasm32 target and the pinned wasm-bindgen CLI in the deploy user's home the first time, then builds the engine.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Rust release profiles strip symbols and debug info (desktop: fat LTO, panic=abort), the web app and site ship
without source maps, and wasm-opt drops debug, producer and name sections from the engine.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Live incident: the receivers PORT=9010 (and DEPLOY_* vars) were inherited by
the deploy.sh child process it spawns, and `pm2 startOrReload --update-env`
reads that inherited env straight into the app. On pr-api this clobbered the
apis own PORT=3000 with 9010, crash-looping it with EADDRINUSE against the
receiver itself the instant a real webhook (or this fix test) ran a deploy.
Recovered the running service manually; this strips the receivers own keys
from the child env so every future deploy (any service, any container) is
unaffected.
Paperclip-Issue: BIT-31073
Paperclip-Run: f8f86a1f-44b2-4845-8a61-e33b080c4699
site.config.cjs defaults API_URL to 127.0.0.1:3000, which is wrong whenever
pr-site runs on a different container than pr-api (every multi-container
deployment). pm2 reads process.env at invocation time, not apps/site/.env
(thats Nexts own, separate loading), so source it in deploy.sh before
startOrReload, same pattern as the prisma CLI fix. Adds .env.example to
document the var.
Paperclip-Issue: BIT-31073
Paperclip-Run: f8f86a1f-44b2-4845-8a61-e33b080c4699
prisma.config.ts reads DATABASE_URL straight from process.env with no .env
fallback, so `pnpm exec prisma migrate deploy` failed with "Connection url is
empty" even though the app itself (started with `node --env-file=.env`) had
no trouble reading it. Source the env file into the subshell first.
Paperclip-Issue: BIT-31073
Paperclip-Run: f547e267-f300-4ca3-a746-be388d7e38b2
photoreport-api crashes immediately under node cluster mode on some LXC hosts
(native addons: sharp, @node-rs/argon2) while fork mode runs fine. Default
stays cluster/2 everywhere; a host can opt into fork mode by writing
/etc/photoreport/pm2-api.override.json, outside the repo so deploy.sh never
touches it.
Paperclip-Issue: BIT-31073
Paperclip-Run: f547e267-f300-4ca3-a746-be388d7e38b2
Sites per domain with two skins (PhotoReport, ShootYourMove) in apps/site (Next.js); public, unlisted and private galleries with watermarked photos; products, cart, orders with VIES reverse charge; the organization's own Stripe Checkout and signed webhooks; bought files rendered from the original with edits and IPTC, emailed; Vendas module in the app.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
engine/core renders with the LightCraft pipeline; engine/wasm runs it in the browser; workers/render replays op logs and renders originals natively. Op log with live fan-out and offline outbox; edited thumbnails and deliveries rendered from the original. Revelar page with Basic and optional modules, crop with aspect presets and straighten, before/after, undo/redo, copy/paste settings.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Faces end to end (YuNet + AuraFace worker in Rust, grouping per event, confirm/merge/ignore, suggestions from known people, loupe boxes), blurred faces kept out of groups (sharpness gate tuned on a real football match), and reference photos for the squad.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW