← Back to issue list

Snapcraft cleanbuild command doesn't work

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1570706
Type
issue
State
closed
Author
~morphis
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged canonical/snapcraft PR #458 (f78b1e3a3), which corrected Cleanbuilder constructor arguments so snapcraft cleanbuild could initialize its container.

Resolution: closed resolved

Reason: PR #458 was merged as commit f78b1e3a3, correcting the Cleanbuilder constructor arguments and updating the affected tests.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Using the snapcraft cleanbuild command currently fails with simon@nirvana ~/Work/ubuntu/snappy/nm-snap (master*) $ snapcraft cleanbuild Loaded local plugin for autotools error: Only full and short (12 chars) hashes are supported by this server error: not found Command '['lxc', 'stop', 'snapcraft-unincidentally-nonpulmonary- brylee']' returned non-zero exit status 1

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged canonical/snapcraft PR #458 (f78b1e3a3), which corrected Cleanbuilder constructor arguments so snapcraft cleanbuild could initialize its container.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/snapcraft#458 (commit f78b1e3a3), which corrected Cleanbuilder constructor arguments and updated tests.
stealth/space-bunny-alpha — closed resolved Cleanbuild argument handling was fixed in PR #458 via commit f78b1e3a3, resolving the failure tracked as LP bug #1570706.
stealth/space-bunny-alpha — closed stale cleanbuild failed with an LXC hash-format error; matching Launchpad bug #1570706 was closed without a linked fix or explanation.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned or superseded. The cleanbuild command failed due to LXC hash format incompatibility and container stop errors.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned or superseded by updated LXC and snapcraft versions that resolved the hash format and container management errors.
qwen/qwen3.6-35b-a3b — — snapcraft cleanbuild failed due to an LXC hash format mismatch. The report was closed without comments or a fix, indicating it was abandoned or superseded by upstream LXC updates.
qwen/qwen3.6-35b-a3b — — The snapcraft cleanbuild command failed due to an LXC hash format error and container stop failure. Closed without comments or resolution, likely abandoned or resolved by upstream LXC and snapcraft updates.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The cleanbuild command failed due to LXC hash and stop errors. Likely abandoned or superseded by newer snapcraft versions that deprecated and removed the cleanbuild feature.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#458 (confidence 99%)

    The reporter linked this PR, which directly fixes cleanbuild container initialization.

Related issues

Issue Project State Summary Similarity
#1666735 snapcraft cleanbuild does not work with lxd installed via snap snapcraft (launchpad) closed Fixed by merged canonical/snapcraft#1199 (commit 417989880), making cleanbuild LXD detection packaging-independent instead of relying on apt package metadata.
77%
#1746381 snapcraft cleanbuild shouldn't always delete container at end snapcraft (launchpad) closed No fix was made: maintainers confirmed cleanbuild containers were disposable, recommended SNAPCRAFT_CONTAINER_BUILDS, and left the request for default failure shells unimplemented.
76%
#1727445 Container destroyed on snapcraft clean -s pull snapcraft (launchpad) closed Fixed by snapcraft PR #1655, which corrected clean-step handling so cleaning the pull step no longer unnecessarily destroys the build container.
75%
#1697979 snapcraft fails on initial cleanbuild probe snapcraft (launchpad) closed Closed as obsolete: cleanbuild was decommissioned, and standard Snapcraft builds now transparently use a clean build environment.
75%
#1816042 snapcraft cleanbuild fails if container isn't fully ready snapcraft (launchpad) closed Closed as obsolete: @sergiusens said cleanbuild was no longer supported because normal builds now transparently provide clean builds.
75%
#1746359 snapcraft cleanbuild --debug should provide guidance on build failure snapcraft (launchpad) closed Superseded by Snapcraft 3.x base-based build environments, which replaced the legacy cleanbuild --debug container workflow.
74%
#1675516 can't cleanbuild snapcraft itself snapcraft (launchpad) closed Fresh testing confirmed Snapcraft could build itself successfully; the report was closed after the suspected interim fix was verified.
74%
#1372 cli: Containerbuild clean snapcraft merged Merged #1372, adding a unit test and fixing full clean behavior for SNAPCRAFT_CONTAINER_BUILDS=1.
74%
#1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap snapcraft (launchpad) closed Closed after the missing hostfs behavior was fixed upstream in lxc/lxd#4183. Snapcraft PR #1912 offered a workaround but was not merged.
74%
#1609803 snapcraft cleanbuild --no-clean-up snapcraft (launchpad) closed Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail.
74%