8000 Resuming a box while the DNS service is down gives wrong advice, and bare min loses the error · Issue #3475 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

Resuming a box while the DNS service is down gives wrong advice, and bare min loses the error #3475

Closed

Description

@norrietaylor

On macOS, when Minimal's DNS service for box names is down, starting a stopped box fails with advice that cannot work, and bare min can lose the error entirely. Seen on min 0.8.0-dev.527 while the service was failing (#3472).

What happens

  1. Wrong advice. minvmd refuses the box registration with its NO_ANSWERER reason (crates/minvmd/src/net/answerer.rs): "the running VM cannot reach Minimal's DNS service for box names, so this box cannot be given an address; run min finalize-install --show to check the service's setup...". On a resume, the guest minimald maps that refusal to AttachError::BoxHostRowEnded (crates/minimald/src/box_actor/attach.rs). The user sees "the VM host daemon released this session's network addresses; run the same command again to restore them. If it is refused again, destroy the session with min session destroy <session> and start it again with min session activate". Running the same command again fails the same way, seven times in one case. Destroying the session does not help either. The cause and the command that fixes it are dropped.
  2. The error disappears. Bare min in the project directory tried to resume the box. An error appeared on screen and disappeared before it could be read. The command returned to the host shell with no box and no error on screen. The guest log shows the resume refused with BoxHostRowEnded at that time.

min session activate --network own_ip in the same state does print minvmd's reason, so the text exists and reaches the CLI on that path.

Expected

  • When minvmd refuses a resume's registration, the error the user sees carries minvmd's reason. For the DNS service case, that names min finalize-install --show. BoxHostRowEnded keeps its current text only for a row that minvmd actually released.
  • An error that ends bare min stays on screen after the terminal mode is restored, as AGENTS.md requires.

Reproduce

On macOS, with a stopped box that has network = { mode = "own_ip" }, stop the DNS service (sudo launchctl bootout system/dev.gominimal.zone). Run bare min in the project directory, then min box attach <box>. Restore the service with min finalize-install.

Activity

  1. norrietaylor commented on Nov 17, 2026

    @norrietaylor
    MemberAuthor

    Fixed by #3482. Follow-ups are in #3507.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0