Repository navigation
Description
Found while writing the apps-and-services guide for spore-host/spore-host#585 part 3. Each item was checked in source; none were run on AWS.
Lifecycle (most important):
spawn app launchsets no TTL unless--ttlis given.--ttldefaults to""(cmd/app.go:86) and flows straight into the launch config asTTL: appLaunchTTL(:415), withOnComplete: "stop"(:417). spored's idle action is a stop.- So an abandoned app ends up stopped, still billing its EBS volume, with no deadline unless a reaper acts.
- That breaks the "everything dies eventually" invariant every other launch path keeps.
- "Terminate" on idle is really a stop.
spawn service --idle-timeouthelp says "Terminate the instance after this much idleness" (cmd/service.go:735).- The zombie-guard notice says "Instance will terminate after 1 hour of inactivity" (
cmd/zombie_guard.go:31). - But spored's idle action is a stop (
pkg/agent/agent.go:2095).
Broken or misleading output:
3. A hardcoded per-account DNS host. cmd/connect.go:737 does host = dns + ".c0zxr0ao.spore.host", one account's subdomain, as the DCV fallback for every user. Any other account opens a host that isn't theirs or doesn't exist. It should be derived like everywhere else that builds the account subdomain.
4. The "Reconnect" hint launches a new instance. cmd/app.go:555 prints Reconnect: spawn app launch <app> --name <session>, but launch never looks for an existing session.
5. spawn connect on a DCV instance always goes to connectDCV (cmd/connect.go:81). Yet the DCV failure messages say "inspect: spawn connect , then /var/log/…" (cmd/dcv.go:111-121, cmd/app.go:519), and that gives no shell.
6. The help examples fail. spawn app --help (cmd/app.go:56-61) shows spawn app launch paraview and spawn app launch igv. Both are recipe-only, with no image, and are refused at :280. Only code-server, jupyter, openrefine and desktop launch out of the box. The README (:174, :180) and docs/bring-your-own-app.md:7-9 have the same problem.
7. A bare --image ref doesn't fall back to "latest", despite the comment at cmd/app.go:227-229. Recipe entries have no tag_default, so it errors.
8. --health-path is ignored without --web-port (cmd/app.go:246-251).
9. The uvicorn … --port 0 example in spawn service --help (cmd/service.go:100) can't work. spawn appends --addr 127.0.0.1:0, which uvicorn rejects.
10. Minor:
- spawn app list -o json prints a table.
- service --host X --dry-run prints the idle-timeout note, though --host launches nothing.
- The session page's spawn:// restart URL scheme is never registered (cmd/app.go:1101).
Catalog docs vs code (libs/catalog):
- An overlay rebind can't change an entry's kind, port, health path or args, because
mergeEntrynever mergesKindRaw/Port/HealthPath/Args. catalog-schema.mdhas noargsrow, and still calls a legacylaunch_commandlaunchable (as doescatalog-overlay.example.yaml:17-18).- Cross-account private ECR images are refused (
cmd/app_byo.go:46-48), though thevisibilityrow says a grant is enough.
The guide documents the current behaviour. It recommends always passing --ttl, and says that paraview and the other recipe entries need an image you build.
Activity
scttfrdmn commentedon Oct 19, 2026
Split into: #1150 (no default TTL for spawn app launch, item 1), #1151 (idle "terminate" wording vs stop, item 2), #1152 (hardcoded per-account DNS host in connect.go, item 3), #1153 (items 4-10 and the catalog docs items: UX/help/catalog). Closing as split.