← Back to issue list

snapcraft fails ugly with multipass when a space is inserted into `name:` field

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1794507
Type
issue
State
closed
Author
~lucyllewy
Labels
18.10-build-vm
Created
Updated
Closed

Current evaluation

Closed without resolution. Reported a cryptic multipass launch failure when a space was present in the snapcraft name field, requesting better input validation. No fix or follow-up action was taken.

Suggested action:

No scores available.

Issue body

error log: $ snapcraft ``` Launching a VM. failed to launch: Invalid arguments supplied Invalid instance name supplied: snapcraft-alsa test An error occurred when trying to launch the instance with 'multipass': returned exit code 2. Ensure that 'multipass' is setup correctly and try again. ``` snapcraft.yaml: ``` name: alsa test version: 0.1 summary: Tests the alsa part for chaining description: |     The alsa part should support chaining directly.     This file tries to see if it works. grade: devel confinement: strict parts:     test: plugin: nil         after: [alsa-chain-test] ``` note it accidentally includes a space in the `name:` field - while this is incorrect syntax for snapcraft.yaml the tool should be more friendly in pointing out the problem.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. Reported a cryptic multipass launch failure when a space was present in the snapcraft name field, requesting better input validation. No fix or follow-up action was taken.
qwen/qwen3.6-35b-a3b Closed as invalid without a fix. Snapcraft lacks input validation for spaces in the name field, resulting in a confusing multipass launch error. No code changes or follow-up actions were implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1904774 Snapcraft runs multipass setup but fails snapcraft (launchpad) closed Abandoned. Snapcraft failed during multipass VM cleanup after reporting a missing instance. Closed without comments or fixes.
76%
#5145 snapcraft fails to launch multipass instance when multipass isn't pre-installed snapcraft open Snapcraft fails to launch a multipass VM with 'Remote snapcraft is unknown or unreachable' when multipass is installed on-demand. Maintainer triaged it as an image-server availability issue and linked craft-providers#211 for better error messaging; still open.
74%
#1803708 Snapcraft should detect being run inside multipass and error snapcraft (launchpad) closed Rejected. Maintainers disagreed, noting users may legitimately run snapcraft inside multipass VMs. The issue was closed without implementation.
74%
#1813979 snapcraft cleanbuild wants to install multipass but it's already installed snapcraft (launchpad) closed Closed without resolution. Likely abandoned or superseded by newer snapcraft and multipass versions that resolved the detection and launch failures.
74%
#1806083 snapcraft fails to locate multipass (inside a multipass session) snapcraft (launchpad) open snapcraft 3.0.1 fails to detect an installed multipass when run inside a multipass VM, prompting to install and dropping the user into a shell. No maintainer activity for ~7 years; affected version is long obsolete.
73%
#4106 Error 2 on snapcraft on linux with multipass: snapcraft closed Resolved as fixed after a temporary Multipass remote image unavailability cleared. The reporter closed the issue.
72%
#1794955 snapcraft erroneously errors when deleting non-existent multipass container snapcraft (launchpad) open snapcraft clean fails with 'instance does not exist' when the multipass container is already gone; reporter suggests treating it as a no-op. Open since 2018, unlabeled, no maintainer activity for ~7.9 years.
71%
#1810915 snapcraft can't tell when multipass is installed but disabled snapcraft (launchpad) open Snapcraft fails to detect a disabled multipass snap, prompting to install it and then erroring out. Reported against multipass 2018.12.1 / ~2019 snapcraft; untriaged, 0 comments, no labels, inactive for ~7.6 years.
70%
#1791821 multipass should use snapcraft defined environments snapcraft (launchpad) closed Closed without discussion or resolution, indicating the feature request was likely abandoned or superseded. The proposal to align multipass with snapcraft-defined build images received no further action.
70%