snapcraft fails to run if it is installed as a try snap
Metadata
Current evaluation
Snapcraft 4.1.5 failed in LXD builds when launched via snap try because snapd cannot export a try-snap file; the affected legacy provider is absent from the current codebase.
Suggested action: close stale
Reason: The report provides an exact snap try command and a traceback ending in a 400 from /v2/snaps/snapcraft/file; Sergiusens acknowledged it as a known bug requiring snapd work that affected few developers. The current tree has no push_host_snap or snap_injector path and its lifecycle code now uses Craft Application, so the historical LXD self-injection implementation has been removed; this is obsolete, not verified as fixed.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
28
Quick Win:
4
Complexity:
75
Confidence:
87
Actionability:
64
|
close stale | Snapcraft 4.1.5 failed in LXD builds when launched via snap try because snapd cannot export a try-snap file; the affected legacy provider is absent from the current codebase. | |
| stealth/space-bunny-alpha |
Impact:
35
Quick Win:
7
Complexity:
72
Confidence:
92
Actionability:
68
|
keep open | Snapcraft installed with snap try crashes while LXD setup requests its own snap file through snapd. Maintainers acknowledge it as known and unresolved; a later matching report remains open. | |
| stealth/space-bunny-alpha |
Impact:
35
Quick Win:
7
Complexity:
72
Confidence:
90
Actionability:
70
|
keep open | Snapcraft cannot run when installed with `snap try` because snapd cannot export the try-mode snap for build-instance injection; maintainer-confirmed but limited to Snapcraft developers. | |
| stealth/space-bunny-alpha |
Impact:
30
Quick Win:
7
Complexity:
68
Confidence:
88
Actionability:
78
|
keep open | Snapcraft installed with snap try cannot start a container build because host-snap injection requests the unavailable /v2/snaps/snapcraft/file endpoint; the bug is acknowledged and unresolved. | |
| qwen/qwen3.6-35b-a3b |
Impact:
20
Quick Win:
14
Complexity:
10
Confidence:
90
Actionability:
80
|
close not a bug | snapcraft fails when run from a snap try environment because snapd blocks fetching the snap file for try-mode snaps, preventing self-injection into build providers. | |
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
14
Staleness:
95
Complexity:
45
Confidence:
55
Support Request:
10
|
needs triage | Snapcraft 4.x fails when installed via 'snap try': the LXD build provider tries to download the host snapcraft snap file from snapd, which returns 400 for try snaps. Unlabelled, 0 comments, ~6 years old, never triaged. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
10
Confidence:
90
Support Request:
80
|
close not a bug | Running snapcraft via 'snap try' fails because snapd does not support fetching snap files for try-mode snaps. The issue is ~6 years old with no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
90
Support Request:
75
|
close not a bug | Reports snapcraft failing when installed via snap try due to an expected 400 error fetching the snap file. Author acknowledges this is a known snap try limitation. No maintainer response in ~6 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
75
|
close not a bug | Snapcraft fails when run from a snap try installation because it attempts to fetch its own snap file via snapd, which is blocked for try mode snaps. Unlabelled and inactive for nearly six years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft (launchpad)#2014963
(confidence 94%)
Later open report describes the same snap try failure and targets the removed legacy LXD self-injection path.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2014963 Snapcraft fails to build snap if Snapcraft itself is installed using `snap try` | snapcraft (launchpad) | open | `snap try` Snapcraft could not self-inject into legacy LXD builds because snapd cannot download a try snap; the affected provider is removed, but current behavior needs retesting. | |
| #1795827 Snapcraft doesn't install snapcraft inside the lxd container | snapcraft (launchpad) | open | Historical LXD builds failed because Snapcraft was not injected into the container; the modern Craft Providers LXD path injects Snapcraft and resolves the legacy failure. | |
| #2524 Snapcraft try | snapcraft | merged | Merged snapcraft try via PR #2524 (commit ec579eaa1); LXD tests were split out because they require Snapcraft installed from the store. | |
| #1996508 snapcraft try with core22 doesn't support lxd | snapcraft (launchpad) | closed | Core22 support for snapcraft try --use-lxd was added by merged PR snapcore/snapcraft#3981 (commit 2691262b8) and released on edge. | |
| #1839399 snapcraft not pulling snap from lxd container | snapcraft (launchpad) | open | Snapcraft 3.7.1 reported a successful --use-lxd build but left the generated snap absent on the host; a maintainer identified possible CWD handling, and the case remains unresolved. | |
| #1729069 snapcraft container builds with snap try | snapcraft (launchpad) | closed | Closed without a documented fix; snap try failing when container builds are enabled remained unresolved and was abandoned after years of inactivity. | |
| #1878513 using lxd provider on s390 fails | snapcraft (launchpad) | closed | LXD builds on s390 required Snapcraft 4.0 from the candidate channel; the report was later expired after 60 days without activity. |