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