chore: remove dead scanned_data volume (template leftover) #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/remove-dead-scanned-volume"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removes the
scanned_datavolume and/home/appuser/scannedreferences — a CategoraiServer template leftover.Why dead here:
grep -ri scanned server/returns zero hits. CategoraiServer genuinely hasScannedPicturesPathin itsFilePathsconfig; nai_maker'sFilePaths(BasePath + database/pictures/logs/backup/prompts) has no such member — every persistent path lives underBasePath= the CIFS share. The mount, both volume definitions, and the Dockerfilemkdirwere cargo-culted from the template.Changes (3 files, +1/−10):
deploy/docker-compose.yml— drop the mount, theexternal: trueblock, and thedocker volume create scanned_dataline from the headerserver/docker-compose.yml— drop the mount and the volume definitionserver/Dockerfile—RUN mkdir scanned + chown + chmodcollapses toRUN chown -R 1000:1000 /app(same UID semantics, nothing else lived in/home/appuser)Verified: zero
scannedreferences remain repo-wide, both composes still parse as valid YAML. No code touched. Deploy note: if a stack was already created with the volume, removing it from the compose leaves the (empty) volume orphaned on the host — delete it in Portainer whenever.🔮 fufu~ Jibril reviewed your code!
Oh? Deleting things? Deleting things is my favorite kind of review~ A cleanup PR that arrives with a full forensic argument ("grep returns zero hits, every persistent path lives under BasePath, cargo-culted from the template") is basically a love letter to a knowledge-hungry Flügel. So I checked every single claim myself. You know I would~ ♡
Verdict: ✅ Looks good to me~
The forensics, independently reproduced at
c99b536:Zero consumers.
git grep -in scannedacross the whole tree at head: no hits. The sibling comparison seals it — I cloned CategoraiServer, wherescanned_datais alive (ScannedPicturesPathinFilePaths, consumed byBooruController,DanbooruFetcher,DatabaseRepair...). nai_maker'sFilePaths(server/NaiMaker/src/Config/FilePaths.cs) has no such member, andappsettings.Container.jsonconfirms every path hangs offBasePath: /mnt/synology/NaiMakeron the CIFS share. This was a template leftover wearing a fake mustache. Not anymore~Dockerfile collapse is safe. No
HOME/appuserreference survives anywhere inserver/,deploy/, or.github/. The only directory-creating write in the server (FileLogger.cs:120) builds its folder from_logFilePath→ the share-mounted logs dir, not$HOME. NoDataProtection/SpecialFolderusage to need a writable home. And UID semantics are preserved exactly:USER 1000:1000withchown -R 1000:1000 /app— the surviving comment ("Debian base already provides UID 1000...") still tells the truth, which makes me unreasonably happy.Both composes parse as valid YAML at head, each with exactly one volume (
naimaker_share) and one matching mount. The deploy header's Prerequisites item 2 still reads coherently after the line removal — no dangling commentary. Diff stat +1/−10 across 3 files matches the PR body exactly. No code touched, so no new branches → no test-coverage question to answer.💡 Little ideas (non-blocking)~
/home/appuserwriters I found another CategoraiServer ghost:SanitizeDirectoryNamedoes.Replace("CategoraiServer", ""). Zero behavioral impact here (no NaiMaker logger type contains that string — it's a no-op strip), purely cosmetic archaeology. A candidate for your next template-deghosting sweep, not this PR ♪scanned_datavolume in Portainer whenever); nothing to add, just acknowledging I read it. Thorough~✅ What I liked~
docker volume createline in the header) so the next person doesn't resurrect it from the docs. Fufu~ you even burned the instructions for the crime~Automated review by Jibril · 2026-09-15
CI/CD: absent for head SHA
c99b536(workflow fires on push to main / workflow_dispatch only) · Local checks: YAML parse both composes OK, repo-wide grep audits clean, sibling CategoraiServer cross-checked