newsletters-brand: the community logo never reaches the Newsletters port — the media upload 500s because /var/lib/listmonk/uploads is never created, and app.logo_url / app.favicon_url stay empty while branded-chrome goes green #1612
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#1612
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The fault
Separate from the OIDC-secret clobber healed in
30db5680, and concretely shown by the same run's evidence: the brand oneshot's logo upload fails on every deploy, so the Newsletters port never wears the community's logo.Evidence, from the kept box
journalctl -u listmonk.service -b, both brand runs:The first is relative (before
newsletters-smtpsetupload.filesystem.upload_path), the second absolute — the directory simply is not there:And the settings rows the upload was supposed to fill:
The community name and palette landed; the logo did not.
Cause
renderNewslettersBrandPOSTs the materialised logo to Listmonk's media API and captures the returned uri (internal/clan/newsletters.go:708-710), then setsapp.logo_url/app.favicon_urlonlyif $logo != ""(newsletters.go:722). The POST iscurl -sf … || true, so the 500 is swallowed,$logourlstays empty, the merge silently skips both slots and the oneshot finishes green.The upload path is declared as
store + "/uploads"(newsletters.go:401,DefaultNewslettersStorePath = /var/lib/listmonk,newsletters.go:100) but nothing ever creates that subdirectory —grep -n 'tmpfiles\|StateDirectory\|install -d\|mkdir' internal/clan/newsletters.goreturns nothing. The nixpkgs listmonk module runs the daemon under a StateDirectory (hence/var/lib/listmonk -> private/listmonk), which creates the state dir but not theuploadschild, and Listmonk's media handler opens the file rather than creating the tree.Why the drive does not catch it
branded-chromewas green on this drive — it proves the name and palette, not the logo object — so DDR 0225's "applied" reads true for a surface whose logo slots are empty. Nothing reds; the fault is only visible in the daemon's journal and in the two empty settings rows.Suspected fix
A
systemd.tmpfilesrule (or the oneshot's owninstall -d) creating the declared uploads directory under the Newsletters dataset with the daemon's ownership, plus not swallowing the media POST's failure — the same "never a phantom apply" rule the settings gate already enforces (newslettersSettingsReadyGate,newsletters.go:447-464, ADR 0100 / GOTCHAS #2): a brand apply that cannot upload the logo should say so rather than finish green with empty slots.drive
20260918T211405Zred atoperator-newsletters:newsletters (oidc) showed its OWN login form to proof-operator at https://newsletters.roles-proof.idss.nz/auth/oidc?code=eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4R0NNIiwia2lkIjoiOGNiMWU3NTQ4NWQxIn0.45_u_HIevidence:
/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T211405Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedPlugged in
c4de5cb4: the daemon'sExecStartPremakes<store>/uploadsas the unit's own dynamic user; the logo upload retries across Listmonk's settings-save reload; a logo that still will not upload failsnewsletters-brandafter the name and palette land, instead of finishing green with empty slots. Render test +nix-instantiate --parsechecked; GOTCHAS #257. Render-proven, live-unproven until the next roles-proof fire. One thing left as found: the materialised logo object has no file extension (…-logo), so Listmonk makes no thumbnail and serves it by sniffed content type — it passed Listmonk's extension check on the kept box (the default list carries*), so it is not a blocker.