← Back to issue list

snapcraft try with multipass provider crashes

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1996511
Type
issue
State
closed
Author
~peter-sabaini
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution. The multipass provider crashed on core22 due to missing base mappings in the legacy codebase. Superseded by newer snapcraft releases that added core22 support.

Suggested action:

No scores available.

Issue body

$ snapcraft try --provider multipass Launching a VM. Build environment is in unknown state, cleaning first. Name: snapcraft-foo State: Running IPv4: 10.160.77.101 Release: Ubuntu 22.04 LTS Image hash: 19f66c4e9576 (Ubuntu Snapcraft builder for Core 22) Load: 0.00 0.03 0.00 Disk usage: 949.6M out of 247.9G Memory usage: 99.6M out of 1.9G Mounts: -- Launched: snapcraft-foo Sorry, an error occurred in Snapcraft: 'core22' We would appreciate it if you anonymously reported this issue. No other data than the traceback and the version of snapcraft in use will be sent. I've agreed to have diagnostics sent, but thought I'd file an issue here as well in case there's questions or more data I can provide. From the traceback it seems that `try` is using the legacy python package, and this only has bionic and focal bases defined: ... File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft_legacy/internal/build_providers/_base_provider.py", line 438, in _setup_environment release=self._get_code_name_from_build_base(), File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft_legacy/internal/build_providers/_base_provider.py", line 369, in _get_code_name_from_build_base return {"core18": "bionic", "core20": "focal"}[build_base] KeyError: 'core22' Version: snapcraft 7.2.7

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The multipass provider crashed on core22 due to missing base mappings in the legacy codebase. Superseded by newer snapcraft releases that added core22 support.
qwen/qwen3.6-35b-a3b Closed without resolution. The multipass provider crashed due to missing core22 base mappings in the legacy codebase. Lacked activity and comments, indicating abandonment or supersession by updated Snapcraft versions.
qwen3.6-35b-a3b-mtp-q6 Closed without comments. The crash resulted from missing core22 mappings in the legacy multipass provider. Likely superseded or resolved in a later release after upstream updated the provider.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#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.
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%
#1794361 use new multipass snapcraft remote snapcraft (launchpad) closed Closed without resolution or comments. The request to configure the new multipass snapcraft remote and default missing bases to core16 was likely abandoned or superseded.
74%
#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.
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.
74%
#1978844 snapcraft try not available for core22-based snap snapcraft (launchpad) closed Closed without resolution or comments. The snapcraft try command remains unavailable for core22-based snaps, with attempts failing or falling back to legacy implementations.
74%
#1856594 Snapcraft tutorial errors out on OSX with multipass error, "returned exit code 2" snapcraft (launchpad) open Dec 2019 report: snapcraft 3.9 on macOS fails via multipass (apt 404s, mount exit code 2) and crashes with AttributeError on os.sched_getaffinity. No maintainer activity; that code path no longer exists in current snapcraft, and macOS support was dropped.
74%
#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.
72%
#1866300 snapcraft fails to build core20 snap snapcraft (launchpad) closed Closed without comments or resolution after 74 days. The core20 build failure involving multipass hangs and LXD tracebacks was abandoned.
72%
#4870 snapcraft pack error obtuse on snapd errors snapcraft closed Closed as a duplicate of issue #4548. The snapcraft pack error handling regression affecting core22 and core24 is superseded by the referenced tracking issue.
72%