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

Closed
opened 2026-09-20 21:56:59 +00:00 by ben · 5 comments
Owner

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/design answered 200. Three minutes later:

WARN community-app design: any-sync install failed — recording the card as failed
  err="clan: deploy the any-sync content layer to gateway: … masked_exit … the remote switch died at exit 4
  Failed to start podman-anysync-consensus.service / -coordinator / -tree / -filenode"
INFO community-app designed from the dashboard twin slug="" state=failed

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:

podman-anysync-coordinator-start: Error: statfs /var/lib/anysync/etc/coordinator/config.yml: no such file or directory

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 and cp -as the bundle in. The bundle holds exactly account.yml account0..3.yml nodes.yml — so afterwards /var/lib/anysync/etc/ has those six files and four EMPTY directories. No <node>/config.yml, no network.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

  1. The assembly: per node, the real any-sync config.yml (upstream any-sync-dockercompose's processing.sh is 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) and network.yml, written before the node units start.
  2. Make the step FAIL LOUD: no || true on the copy or the Mongo apply; assert every <node>/config.yml exists before exiting 0 (fail-loud audit, #276 family).
  3. Order the node units after it (they already are, After=anysync-confapply) and make sure a failed confapply fails the switch honestly rather than letting four containers crash-loop into the start limit.
  4. The descriptor's anysync block (anysync-descriptor.service) — the second "confirmed on the deferred drive" comment — proven against matou-app's loader shape.

Acceptance

  • On a clan-lab droplet: the any-sync content layer installs green; all seven units active; any-sync-netcheck (already in the closure) passes against the gateway's public names.
  • Design your community app from the dashboard ends at a pending card with one submission at a (fake) Coa; the descriptor served from outside carries the anysync block.
  • A broken bundle fails the confapply step by name, never four crash-looping containers.
  • GOTCHAS entry.

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/).

## 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/design` answered 200. Three minutes later: ``` WARN community-app design: any-sync install failed — recording the card as failed err="clan: deploy the any-sync content layer to gateway: … masked_exit … the remote switch died at exit 4 Failed to start podman-anysync-consensus.service / -coordinator / -tree / -filenode" INFO community-app designed from the dashboard twin slug="" state=failed ``` `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: ``` podman-anysync-coordinator-start: Error: statfs /var/lib/anysync/etc/coordinator/config.yml: no such file or directory ``` 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 -p`s the four node dirs and `cp -a`s the bundle in. The bundle holds exactly `account.yml account0..3.yml nodes.yml` — so afterwards `/var/lib/anysync/etc/` has those six files and four EMPTY directories. No `<node>/config.yml`, no `network.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 1. The assembly: per node, the real any-sync `config.yml` (upstream `any-sync-dockercompose`'s `processing.sh` is 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) and `network.yml`, written before the node units start. 2. Make the step FAIL LOUD: no `|| true` on the copy or the Mongo apply; assert every `<node>/config.yml` exists before exiting 0 (fail-loud audit, #276 family). 3. Order the node units after it (they already are, `After=anysync-confapply`) and make sure a failed confapply fails the switch honestly rather than letting four containers crash-loop into the start limit. 4. The descriptor's `anysync` block (`anysync-descriptor.service`) — the second "confirmed on the deferred drive" comment — proven against matou-app's loader shape. ## Acceptance - On a clan-lab droplet: the any-sync content layer installs green; all seven units active; `any-sync-netcheck` (already in the closure) passes against the gateway's public names. - Design your community app from the dashboard ends at a `pending` card with one submission at a (fake) Coa; the descriptor served from outside carries the `anysync` block. - A broken bundle fails the confapply step by name, never four crash-looping containers. - GOTCHAS entry. 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 70ce73ff on main. 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):

  1. The assembly (renderAnysyncConfApply). The confapply reconciler now assembles one real config.yml per node the processing.sh way — cat the {network: nodes.yml} block + a shared common block + the node's OWN account + its per-type template — for coordinator/tree/consensus/filenode (node order = the generator's --t flags: account0 coordinator, 1 tree, 2 consensus, 3 file). It writes nodes.yml into the coordinator dir as network.yml for any-sync-confapply -n. The four type templates + the common block live as pkgs.writeText store files (public — no secret, no apex), catted at deploy.
  2. The network SIGNS (renderAnysyncNetworkKeys). The generator now mirrors anyconf.sh: it captures the minted networkId + the network signing key from create-network, and after generate-nodes copies that signing key into the coordinator (account0) and consensus (account2) accounts (the two that sign as the network) and re-applies the networkId to nodes.yml (dropping creationTime). 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.
  3. Fail-loud (#276 / GOTCHAS #296). No || true on the assembly or the Mongo apply; a broken/empty bundle fails by name ([ -s account0.yml ]…); every <node>/config.yml is asserted before exit 0. Combined with the nodes' existing requires=anysync-confapply.service, a failed step now fails the switch honestly instead of four containers crash-looping into the start limit.
  4. The descriptor (renderAnysyncDescriptor). The anysync block now carries each public node's peerId (read off the coordinator's network.yml), because matou-app's loader (backend/internal/anysync/client.go) builds the SDK nodeconf from peerId + addresses + types — addresses alone were not enough.
  5. File node ↔ MinIO. The file node reads its S3 creds from a mounted .aws/credentials (profile: default, the upstream shape) the confapply writes from the sealed store secrets; the secrets generator now mints ONE password so AWS_* are the MinIO root creds (they must match, or the file node can't authenticate and never comes up).

What is proven

  • Render TDD green (internal/clan/anysync_test.go — assembly, fail-loud, signing-key placement, peerId, filenode creds), full internal/clan suite green, go vet clean.
  • nix-instantiate --parse of the rendered anysync-stack.nix — OK (the ''/${} escaping is correct).
  • A local yq/cat dry-run over the real upstream example accounts (storage-test/): the signing-key copy lands in account0/account2, yq '{"network": .}' wraps cleanly, and the cat of 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-netcheck green against the gateway's public names, Design your community app → a pending card with one submission at a fake Coa, and the served descriptor carrying the anysync block) 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. The clan-lab skill'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 on main and 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)

  1. On a founded real gateway (app chosen, or press Design your community app): confirm systemctl shows anysync-confapply green and the seven units active (podman-anysync-{coordinator,tree,consensus,filenode,mongo,redis,minio}), and /var/lib/anysync/etc/<node>/config.yml exist and are non-empty.
  2. any-sync-netcheck -c /var/lib/anysync/etc/coordinator/network.yml passes against <apex>:3001/3003/3005.
  3. GET /api/v1/community-app → pending; the fake Coa records exactly one submission; the externally-served descriptor carries the anysync block (networkId + three public nodes with peerIds).
  4. Negative: seal a deliberately-broken bundle → anysync-confapply fails by name, no crash-loop.
## 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 `70ce73ff` on `main`. 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): 1. **The assembly (`renderAnysyncConfApply`).** The confapply reconciler now assembles one real `config.yml` per node the `processing.sh` way — `cat` the `{network: nodes.yml}` block + a shared `common` block + the node's OWN account + its per-type template — for coordinator/tree/consensus/filenode (node order = the generator's `--t` flags: account0 coordinator, 1 tree, 2 consensus, 3 file). It writes `nodes.yml` into the coordinator dir as `network.yml` for `any-sync-confapply -n`. The four type templates + the common block live as `pkgs.writeText` store files (public — no secret, no apex), catted at deploy. 2. **The network SIGNS (`renderAnysyncNetworkKeys`).** The generator now mirrors `anyconf.sh`: it captures the minted `networkId` + the network signing key from `create-network`, and after `generate-nodes` copies that signing key into the **coordinator (account0)** and **consensus (account2)** accounts (the two that sign as the network) and re-applies the `networkId` to `nodes.yml` (dropping `creationTime`). 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. 3. **Fail-loud (#276 / GOTCHAS #296).** No `|| true` on the assembly or the Mongo apply; a broken/empty bundle fails **by name** (`[ -s account0.yml ]…`); every `<node>/config.yml` is asserted before exit 0. Combined with the nodes' existing `requires=anysync-confapply.service`, a failed step now fails the switch honestly instead of four containers crash-looping into the start limit. 4. **The descriptor (`renderAnysyncDescriptor`).** The `anysync` block now carries each public node's **peerId** (read off the coordinator's `network.yml`), because matou-app's loader (`backend/internal/anysync/client.go`) builds the SDK nodeconf from peerId + addresses + types — addresses alone were not enough. 5. **File node ↔ MinIO.** The file node reads its S3 creds from a mounted `.aws/credentials` (`profile: default`, the upstream shape) the confapply writes from the sealed store secrets; the secrets generator now mints ONE password so `AWS_*` **are** the MinIO root creds (they must match, or the file node can't authenticate and never comes up). ### What is proven - Render TDD green (`internal/clan/anysync_test.go` — assembly, fail-loud, signing-key placement, peerId, filenode creds), full `internal/clan` suite green, `go vet` clean. - `nix-instantiate --parse` of the rendered `anysync-stack.nix` — OK (the `''`/`${}` escaping is correct). - A local `yq`/`cat` dry-run over the **real upstream example accounts** (`storage-test/`): the signing-key copy lands in account0/account2, `yq '{"network": .}'` wraps cleanly, and the `cat` of 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-netcheck` green **against the gateway's public names**, *Design your community app* → a `pending` card with one submission at a fake Coa, and the served descriptor carrying the `anysync` block) 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. The `clan-lab` skill'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 on `main` and 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) 1. On a founded real gateway (app chosen, or press *Design your community app*): confirm `systemctl` shows `anysync-confapply` **green** and the seven units `active` (`podman-anysync-{coordinator,tree,consensus,filenode,mongo,redis,minio}`), and `/var/lib/anysync/etc/<node>/config.yml` exist and are non-empty. 2. `any-sync-netcheck -c /var/lib/anysync/etc/coordinator/network.yml` passes against `<apex>:3001/3003/3005`. 3. `GET /api/v1/community-app` → `pending`; the fake Coa records exactly one submission; the externally-served descriptor carries the `anysync` block (networkId + three public nodes with peerIds). 4. Negative: seal a deliberately-broken bundle → `anysync-confapply` fails 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 3c4aa74d on main.

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:

  1. anyconf create-network + generate-nodes exactly as the network generator renders it → the signing key copied into account0/account2, networkId re-applied, bundle tarred.
  2. Stores: Mongo (--replSet rs0) + rs.initiate, Redis-stack, MinIO + bucket — all healthy.
  3. The confapply assembly, byte-for-byte from the render (cat network.yml + common + accountN + type-template, apex-substituted, .aws/credentials from the sealed secrets) → four config.yml that parse with the expected key set.
  4. any-sync-confapply -c … -n … -e → wrote the network into Mongo (id … epoch: 1, exit 0).
  5. The four node containers.

Result

  • All four node containers came up: 0 restarts, /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.
  • coordinator↔consensus dialled network-internal fine; any-sync-netcheck reached the coordinator on :3001 (protocol response, exit 0).
  • Negative: a bundle missing account0.yml makes 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 upstream ghcr.io/anyproto/any-sync-* images carry Entrypoint=null with the binary in the image CMD (["/bin/any-sync-<type>","-c",…]). The render's cmd = [ "-c" <conf> ] replaces that CMD and drops the binary, so podman execs -c itself — 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 real oci-containers option (--entrypoint=, modules/virtualisation/oci-containers.nix), so podman run --entrypoint=/bin/any-sync-node <image> -c <conf> runs correctly. Re-proven live (nodes up, /metrics 200). Red-first TestRenderAnySync_NodesSetTheirBinaryAsEntrypoint; full internal/clan suite + nix-instantiate --parse green.

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-netcheck against the gateway's public names, and Design your community app → a pending card 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-netcheck v0.6.1 (the closure's version) logs IncompatibleVersion on 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)

  1. Build carries 3c4aa74d — the node entrypoint fix. Without it every node crash-loops exec: "-c".
  2. On a founded real gateway (app chosen / Design your community app): anysync-confapply green + seven units active (podman-anysync-{coordinator,tree,consensus,filenode,mongo,redis,minio}), /var/lib/anysync/etc/<node>/config.yml non-empty.
  3. any-sync-netcheck -c /var/lib/anysync/etc/coordinator/network.yml against <apex>:3001/3003/3005 (mind the version note above).
  4. GET /api/v1/community-app → pending; the fake Coa records exactly one submission; the externally-served descriptor carries the anysync block.
  5. Negative: a deliberately-broken bundle → anysync-confapply fails 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-session a third time would walk it to agent-blocked with 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 founding standing-drive issue 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.

## 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 `3c4aa74d` on `main`.** ### 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*: 1. `anyconf create-network` + `generate-nodes` exactly as the network generator renders it → the signing key copied into account0/account2, `networkId` re-applied, bundle tarred. 2. Stores: Mongo (`--replSet rs0`) + `rs.initiate`, Redis-stack, MinIO + bucket — all healthy. 3. The confapply assembly, byte-for-byte from the render (`cat network.yml + common + accountN + type-template`, apex-substituted, `.aws/credentials` from the sealed secrets) → four `config.yml` that parse with the expected key set. 4. `any-sync-confapply -c … -n … -e` → **wrote the network into Mongo** (`id … epoch: 1`, exit 0). 5. The four node containers. ### Result - **All four node containers came up: 0 restarts, `/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. - coordinator↔consensus dialled network-internal fine; `any-sync-netcheck` reached the coordinator on `:3001` (protocol response, exit 0). - Negative: a bundle missing `account0.yml` makes 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 upstream `ghcr.io/anyproto/any-sync-*` images carry **`Entrypoint=null`** with the binary in the image **CMD** (`["/bin/any-sync-<type>","-c",…]`). The render's `cmd = [ "-c" <conf> ]` **replaces** that CMD and drops the binary, so podman execs `-c` itself — 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 real `oci-containers` option (`--entrypoint=`, `modules/virtualisation/oci-containers.nix`), so `podman run --entrypoint=/bin/any-sync-node <image> -c <conf>` runs correctly. Re-proven live (nodes up, `/metrics` 200). Red-first `TestRenderAnySync_NodesSetTheirBinaryAsEntrypoint`; full `internal/clan` suite + `nix-instantiate --parse` green. ### 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-netcheck` against the gateway's **public names**, and *Design your community app* → a `pending` card 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-netcheck` v0.6.1 (the closure's version) logs `IncompatibleVersion` on 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) 0. Build carries `3c4aa74d` — the node `entrypoint` fix. Without it every node crash-loops `exec: "-c"`. 1. On a founded real gateway (app chosen / *Design your community app*): `anysync-confapply` green + seven units `active` (`podman-anysync-{coordinator,tree,consensus,filenode,mongo,redis,minio}`), `/var/lib/anysync/etc/<node>/config.yml` non-empty. 2. `any-sync-netcheck -c /var/lib/anysync/etc/coordinator/network.yml` against `<apex>:3001/3003/3005` (mind the version note above). 3. `GET /api/v1/community-app` → `pending`; the fake Coa records exactly one submission; the externally-served descriptor carries the `anysync` block. 4. Negative: a deliberately-broken bundle → `anysync-confapply` fails 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-session` a third time would walk it to `agent-blocked` with 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 founding `standing-drive` issue 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.
Author
Owner

Live proof from Ben's session on a real gateway (rehearsal drive 20260921T024810Z, ebe5da4f — carrying 70ce73ff + 3c4aa74d): the config step now assembles all four node configs and six of seven units came up. A THIRD wall: podman-anysync-tree crash-looped statfs /var/lib/anysync/tree/storage: no such file — podman refuses a bind mount whose host directory is missing, and tmpfiles created <store>/tree but not the three directories under it (the mac proof used auto-creating volumes). Fixed 439315a3 (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).

Live proof from Ben's session on a real gateway (rehearsal drive `20260921T024810Z`, `ebe5da4f` — carrying `70ce73ff` + `3c4aa74d`): the config step now assembles all four node configs and six of seven units came up. **A THIRD wall:** `podman-anysync-tree` crash-looped `statfs /var/lib/anysync/tree/storage: no such file` — podman refuses a bind mount whose host directory is missing, and tmpfiles created `<store>/tree` but not the three directories under it (the mac proof used auto-creating volumes). Fixed `439315a3` (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).
Author
Owner

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 units active, record pending slug e2e-drive, exactly ONE submission at the fake Coa carrying the whole design (origin=idss, toggles, brand colours, contact email, slug, configServerUrl). Fake flipped → record ready in seconds → descriptor app block 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) and any-sync-netcheck against the public names — both need the flow as journey legs. New, separate: #1681 (the descriptor never gains its anysync block) and #1677 (Try again after an install failure).

**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 units `active`, record `pending` slug `e2e-drive`, exactly ONE submission at the fake Coa carrying the whole design (origin=idss, toggles, brand colours, contact email, slug, configServerUrl). Fake flipped → record `ready` in seconds → descriptor `app` block 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) and `any-sync-netcheck` against the public names — both need the flow as journey legs. New, separate: #1681 (the descriptor never gains its `anysync` block) and #1677 (Try again after an install failure).
Author
Owner

Closed 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.

Closed 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.
ben 2026-10-21 14:17:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1673
No description provided.