Skip to content

spawn app: no default TTL (abandoned apps live as stopped instances), hardcoded per-account DNS host, help examples that can't launch #1135

Closed

Description

@scttfrdmn

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):

  1. spawn app launch sets no TTL unless --ttl is given.
    • --ttl defaults to "" (cmd/app.go:86) and flows straight into the launch config as TTL: appLaunchTTL (:415), with OnComplete: "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.
  2. "Terminate" on idle is really a stop.
    • spawn service --idle-timeout help 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 mergeEntry never merges KindRaw/Port/HealthPath/Args.
  • catalog-schema.md has no args row, and still calls a legacy launch_command launchable (as does catalog-overlay.example.yaml:17-18).
  • Cross-account private ECR images are refused (cmd/app_byo.go:46-48), though the visibility row 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

  1. scttfrdmn commented on Oct 19, 2026

    @scttfrdmn
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions