any-sync on the gateway has never worked on a real machine — the config step assembles NO node configs, so every node container crash-loops and 'Design your community app' always ends failed (#1518's deferred drive was never ticketed) #1673
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.
Blocks
Reference
Matou/idss#1673
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?
What happened (the first time any-sync was ever installed on a real gateway)
Prototype for #1522 on a standing IDIP rehearsal gateway (fire
20260920T211133Z,4b651c6c, droplet kept): a steward signed in to the control panel, pressed Design your community app, kept the defaults and continued.POST /api/v1/community-app/designanswered 200. Three minutes later:GET /api/v1/community-app→{"state":"failed","reason":"the community content layer could not be installed yet — please try again shortly"}. Nothing was submitted to Coa (the fake Coa the gateway was pointed at received no submission). Trying again can never work.Why
Every any-sync NODE container dies at once:
and burns systemd's start limit in ~5 s (
start-limit-hit), so the switch exits 4. Mongo, Redis and MinIO come up fine.anysync-confapply("Assemble any-sync node configs + write the network into Mongo") finishes green in under a second and assembles nothing. The rendered script (internal/clan/anysync.go~l.630–665) untars the sealed bundle, substitutes the apex,mkdir -ps the four node dirs andcp -as the bundle in. The bundle holds exactlyaccount.yml account0..3.yml nodes.yml— so afterwards/var/lib/anysync/etc/has those six files and four EMPTY directories. No<node>/config.yml, nonetwork.yml. The Mongo write is then skipped by its own guard (if [ -f coordinator/config.yml ] && [ -f network.yml ]), and every failure is swallowed (cp … 2>/dev/null || true,podman run … || true).The render says so itself: "The exact per-node file layout is confirmed on the deferred clan-lab drive" (l.649) and "the client-config shape matou-app's loader reads is confirmed on the deferred drive" (l.693). #1518 landed the install seam-proven; the deferred drive was never ticketed, so the assembly step was never written. Same family as #1623 / #1638 / #1653: a "later slice" named in a comment and owned by nobody.
Consequence
On any real gateway, today: choosing the app at founding (S3a-APP) or pressing Design your community app later both end at a failed card. No community can get a Coa build; the wallet's spaces have no network to live on. This blocks #1522's pairing legs and everything after the app card in #1531 (the sign-in page's QR face, the App-only closure).
What to build
config.yml(upstreamany-sync-dockercompose'sprocessing.shis the reference the comment cites — account + the network/nodes block + each node's own listen/storage/mongo/redis/s3 settings, apex-substituted for the public nodes) andnetwork.yml, written before the node units start.|| trueon the copy or the Mongo apply; assert every<node>/config.ymlexists before exiting 0 (fail-loud audit, #276 family).After=anysync-confapply) and make sure a failed confapply fails the switch honestly rather than letting four containers crash-loop into the start limit.anysyncblock (anysync-descriptor.service) — the second "confirmed on the deferred drive" comment — proven against matou-app's loader shape.Acceptance
any-sync-netcheck(already in the closure) passes against the gateway's public names.pendingcard with one submission at a (fake) Coa; the descriptor served from outside carries theanysyncblock.Needs a droplet — a session ticket. A standing gateway with the fake Coa already tunnelled in is described in #1522's thread (prototype scripts on elitebook-03
~/swarm/coa-proto/).Progress under ADR 0174 (veto anytime) — the confapply now assembles the configs; live acceptance remains
Ruled by agent under ADR 0174 (two-way doors — revertible commit, provable by tests/probe):
Landed
70ce73ffonmain. The diagnosis in the ticket is confirmed exactly, and the fix is written for real against the upstream reference (matou-infrastructure/any-sync/docker-generateconfig/processing.sh+anyconf.sh+etc/*.yml, which are checked out on this host):renderAnysyncConfApply). The confapply reconciler now assembles one realconfig.ymlper node theprocessing.shway —catthe{network: nodes.yml}block + a sharedcommonblock + the node's OWN account + its per-type template — for coordinator/tree/consensus/filenode (node order = the generator's--tflags: account0 coordinator, 1 tree, 2 consensus, 3 file). It writesnodes.ymlinto the coordinator dir asnetwork.ymlforany-sync-confapply -n. The four type templates + the common block live aspkgs.writeTextstore files (public — no secret, no apex), catted at deploy.renderAnysyncNetworkKeys). The generator now mirrorsanyconf.sh: it captures the mintednetworkId+ the network signing key fromcreate-network, and aftergenerate-nodescopies that signing key into the coordinator (account0) and consensus (account2) accounts (the two that sign as the network) and re-applies thenetworkIdtonodes.yml(droppingcreationTime). Without this the network config the confapply writes is unsigned and every node/client rejects it — this was the other half of the deferred-drive gap.|| trueon the assembly or the Mongo apply; a broken/empty bundle fails by name ([ -s account0.yml ]…); every<node>/config.ymlis asserted before exit 0. Combined with the nodes' existingrequires=anysync-confapply.service, a failed step now fails the switch honestly instead of four containers crash-looping into the start limit.renderAnysyncDescriptor). Theanysyncblock now carries each public node's peerId (read off the coordinator'snetwork.yml), because matou-app's loader (backend/internal/anysync/client.go) builds the SDK nodeconf from peerId + addresses + types — addresses alone were not enough..aws/credentials(profile: default, the upstream shape) the confapply writes from the sealed store secrets; the secrets generator now mints ONE password soAWS_*are the MinIO root creds (they must match, or the file node can't authenticate and never comes up).What is proven
internal/clan/anysync_test.go— assembly, fail-loud, signing-key placement, peerId, filenode creds), fullinternal/clansuite green,go vetclean.nix-instantiate --parseof the renderedanysync-stack.nix— OK (the''/${}escaping is correct).yq/catdry-run over the real upstream example accounts (storage-test/): the signing-key copy lands in account0/account2,yq '{"network": .}'wraps cleanly, and thecatof the four fragments produces valid YAML with exactly the expected keys (network.networkId,account.signingKey==netkey,mongo.connect,yamux.listenAddrs).What is NOT yet proven — and why not in this session
The stated acceptance (seven units
active,any-sync-netcheckgreen against the gateway's public names, Design your community app → apendingcard with one submission at a fake Coa, and the served descriptor carrying theanysyncblock) needs a real public-IP gateway running the founding control plane with the fake-Coa rig tunnelled in — i.e. fire 17's prototype, not a generic lab. Theclan-labskill's environment is 3 nested VMs behind NAT that forward only 80/443 to node1 (public any-sync TCP 3001/3003/3005 and netcheck-against-public-names are explicitly out of its honesty envelope), and it pins a different clan-core/nixpkgs than IDSS, so it cannot prove these legs. A headless standing session cannot stand up + drive that rig to completion within one bounded run (ADR 0174 rule 7 — no work may outlive the session).Leaving
ready-for-session: the code is onmainand proven short of live; the remaining step is the live bring-up + app-card drive, best folded into the next real-gateway fire (#1277 / #1522), where a public-IP gateway + fake Coa already stand up.Runbook for the live proof (next session / fire)
systemctlshowsanysync-confapplygreen and the seven unitsactive(podman-anysync-{coordinator,tree,consensus,filenode,mongo,redis,minio}), and/var/lib/anysync/etc/<node>/config.ymlexist and are non-empty.any-sync-netcheck -c /var/lib/anysync/etc/coordinator/network.ymlpasses against<apex>:3001/3003/3005.GET /api/v1/community-app→pending; the fake Coa records exactly one submission; the externally-served descriptor carries theanysyncblock (networkId + three public nodes with peerIds).anysync-confapplyfails by name, no crash-loop.Ruled by agent under ADR 0174 (veto anytime) — the content layer PROVEN to come up on real binaries; a SECOND crash-loop cause found + fixed; the founding-fire acceptance routed off the session queue
Two-way door (revertible commit, provable by a live bring-up + tests). Landed
3c4aa74donmain.What I did this session (bens-mac-04: docker + source-built anyconf/netcheck v0.6.1)
Rather than a generic clan-lab (which the prior comment correctly ruled out — NAT, only 80/443 forwarded, different nixpkgs pin), I drove the exact shipping render (
clan.RenderAnySync) end-to-end against the pinned upstream images in local containers — the one thing never done before, since any-sync has never come up on any real machine:anyconf create-network+generate-nodesexactly as the network generator renders it → the signing key copied into account0/account2,networkIdre-applied, bundle tarred.--replSet rs0) +rs.initiate, Redis-stack, MinIO + bucket — all healthy.cat network.yml + common + accountN + type-template, apex-substituted,.aws/credentialsfrom the sealed secrets) → fourconfig.ymlthat parse with the expected key set.any-sync-confapply -c … -n … -e→ wrote the network into Mongo (id … epoch: 1, exit 0).Result
/metrics→ HTTP 200 on each. The assembled configs are ACCEPTED by the real coordinator/node/consensus/filenode binaries — the ticket's central never-proven claim.any-sync-netcheckreached the coordinator on:3001(protocol response, exit 0).account0.ymlmakes the confapply guard exit 1 by name (… missing account0.yml — the network was not minted).A SECOND crash-loop cause, found live and fixed (GOTCHAS #298 — the wall after #296)
The first node bring-up died:
error during container init: exec: "-c": executable file not found in $PATH. Cause: the upstreamghcr.io/anyproto/any-sync-*images carryEntrypoint=nullwith the binary in the image CMD (["/bin/any-sync-<type>","-c",…]). The render'scmd = [ "-c" <conf> ]replaces that CMD and drops the binary, so podman execs-citself — every node crash-loops into the start limit: the exact #1673 symptom, from a second cause that #296's confapply fix would have walked straight into on the next fire. (The confapply step in the same render dodged this via--entrypoint any-sync-confapply; the four module-declared node containers did not.)Fix: each node now sets
entrypoint = "/bin/any-sync-<type>"(internal/clan/anysync.go) — confirmed a realoci-containersoption (--entrypoint=,modules/virtualisation/oci-containers.nix), sopodman run --entrypoint=/bin/any-sync-node <image> -c <conf>runs correctly. Re-proven live (nodes up,/metrics200). Red-firstTestRenderAnySync_NodesSetTheirBinaryAsEntrypoint; fullinternal/clansuite +nix-instantiate --parsegreen.What remains — and why it is NOT a session-runner job
The stated acceptance still needs a real public-IP gateway founding fire: seven units under systemd,
any-sync-netcheckagainst the gateway's public names, and Design your community app → apendingcard with one submission at a fake Coa reachable from inside the founded guest (#1522's coa-proto rig, which lives on elitebook-03 — not on this host, and elitebook-03 runs no session-runner). A one-shot session cannot found + wire the Coa rig + drive + verify that synchronously within one bounded run (ADR 0174 rule 7). This is the rehearsal-executor's queue-armed founding-drive class — the project's "live rides the next fire" pattern.Observation for that fire:
any-sync-netcheckv0.6.1 (the closure's version) logsIncompatibleVersionon its handshake against the v0.13 nodes but exits 0 — confirm whether the acceptance's netcheck expectation is met, or whether the netcheck pin needs a bump.Updated runbook for the live proof (unchanged from the prior comment except step 0)
3c4aa74d— the nodeentrypointfix. Without it every node crash-loopsexec: "-c".anysync-confapplygreen + seven unitsactive(podman-anysync-{coordinator,tree,consensus,filenode,mongo,redis,minio}),/var/lib/anysync/etc/<node>/config.ymlnon-empty.any-sync-netcheck -c /var/lib/anysync/etc/coordinator/network.ymlagainst<apex>:3001/3003/3005(mind the version note above).GET /api/v1/community-app→pending; the fake Coa records exactly one submission; the externally-served descriptor carries theanysyncblock.anysync-confapplyfails by name, no crash-loop.Why human
The remaining acceptance is a founding-fire live proof owned by the rehearsal executor, and it needs the #1522 fake-Coa rig on elitebook-03 — not a session-runner job on any host (elitebook-03 runs no session-runner; a one-shot session cannot outlive itself, rule 7). This is my host's (bens-mac-04) second session attempt; leaving it
ready-for-sessiona third time would walk it toagent-blockedwith no human as the real blocker (the #743 failure mode).Proposed default ruling (adopt under ADR 0174 rule 4): relabel off
ready-for-session; fold the live acceptance into the next founding fire that chooses the app on a real public-IP gateway with #1522's fake-Coa rig, i.e. wire #1673 as a dependency (blocker) of the appropriate foundingstanding-driveissue when one is opened (none of the currently-open standing-drive issues — #1672 updates, #1400 rent-a-device, #1277 brand-reach — founds-with-app + carries the Coa rig, so which fire proves this is a drive-planning call). The code is done and now proven short of the public-IP legs; nothing here is a one-way door.Live proof from Ben's session on a real gateway (rehearsal drive
20260921T024810Z,ebe5da4f— carrying70ce73ff+3c4aa74d): the config step now assembles all four node configs and six of seven units came up. A THIRD wall:podman-anysync-treecrash-loopedstatfs /var/lib/anysync/tree/storage: no such file— podman refuses a bind mount whose host directory is missing, and tmpfiles created<store>/treebut not the three directories under it (the mac proof used auto-creating volumes). Fixed439315a3(tmpfiles rules derived from the tree node's own volume list; render test over every bind mount). With the directories made by hand on the box: all seven units running, /metrics 200 on all four nodes — any-sync fully up on a real gateway for the first time. Still to prove on a CLEAN box: the install end to end from the dashboard, node-to-node dialling under real DNS, and one submission at the fake Coa. Related: #1677 (Try again after an install failure is a dead end).CLEAN live proof (Ben's session, rehearsal drive
20260921T034145Z,ce1a72a3=70ce73ff+3c4aa74d+439315a3): on a gateway that had never had any-sync, a steward pressed Design your community app ONCE, nothing repaired by hand → all seven unitsactive, recordpendingsluge2e-drive, exactly ONE submission at the fake Coa carrying the whole design (origin=idss, toggles, brand colours, contact email, slug, configServerUrl). Fake flipped → recordreadyin seconds → descriptorappblock within one reconcile → the sign-in page switched to its app-door QR face. The install acceptance is met. Remaining from this ticket's list: node-to-node dialling under REAL DNS (the kept box's names are pinned to loopback) andany-sync-netcheckagainst the public names — both need the flow as journey legs. New, separate: #1681 (the descriptor never gains itsanysyncblock) and #1677 (Try again after an install failure).anysyncblock omitsid(the any-sync network-configuration id) — Coa's ClientConfigSchema refuses the backend probe, every IDSS-originated build is withheld at page-ready, and matou-app's client would start with an empty id #1807Closed 2026-10-21 (Ben's stale sweep): the install acceptance was met by the clean live proof on 2026-09-21 (rehearsal drive
20260921T034145Z, all seven units active, one Coa submission, descriptor app block within one reconcile). The residue (real-DNS node dialling, netcheck as journey legs) and the new findings (#1681 etc.) were ticketed separately.