← Back to issue list

sudo snapcraft cleanbuild

View original Launchpad issue

Metadata

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

Current evaluation

Launchpad report of a FileNotFoundError tar crash in `sudo snapcraft cleanbuild` on Snapcraft 2.43.1. Closed by maintainer ~sergiusens (2023-08-17) noting cleanbuild is no longer supported since all builds clean-build by default.

Resolution: closed stale

Reason: No code fix was made; sergiusens closed it stating cleanbuild is no longer supported as all builds transparently clean-build by default. The cleanbuild command no longer exists in the snapcraft source tree (grep for 'cleanbuild' returns no matches), confirming the deprecated feature was decommissioned.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 244, in cleanbuild project=project, echoer=echo, remote=remote, build_environment=build_environment File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_containers.py", line 53, in cleanbuild tar_filename = _create_tar_file(project.info.name) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_containers.py", line 71, in _create_tar_file t.add(os.path.curdir, filter=_create_tar_filter(tar_filename)) File "/usr/lib/python3.6/tarfile.py", line 1957, in add recursive, exclude, filter=filter) File "/usr/lib/python3.6/tarfile.py", line 1957, in add recursive, exclude, filter=filter) File "/usr/lib/python3.6/tarfile.py", line 1957, in add recursive, exclude, filter=filter) [Previous line repeated 3 more times] File "/usr/lib/python3.6/tarfile.py", line 1934, in add tarinfo = self.gettarinfo(name, arcname) File "/usr/lib/python3.6/tarfile.py", line 1803, in gettarinfo statres = os.lstat(name) FileNotFoundError: [Errno 2] No such file or directory: './.cache/mozilla/firefox/ctdpkbbz.default/cache2/entries/D0F41666792EE441A907D28ADFE092BE633A8190'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Launchpad report of a FileNotFoundError tar crash in `sudo snapcraft cleanbuild` on Snapcraft 2.43.1. Closed by maintainer ~sergiusens (2023-08-17) noting cleanbuild is no longer supported since all builds clean-build by default.
stealth/space-bunny-alpha — closed stale Closed as obsolete: cleanbuild was no longer supported, and Snapcraft builds had already become transparently clean builds by default.
stealth/space-bunny-alpha — closed stale Closed unresolved after 1,134 days without activity; no fixing PR, commit, or maintainer explanation was identified for the cleanbuild archive error.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution due to inactivity. Reported a FileNotFoundError during snapcraft cleanbuild caused by a missing Firefox cache file. No comments or fixes were provided.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned. Reported a FileNotFoundError during snapcraft cleanbuild when archiving a Firefox cache directory.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The report details a FileNotFoundError in snapcraft cleanbuild when archiving a missing Firefox cache file. With no developer response or fix provided, the issue was likely abandoned or closed as stale.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. Reported a FileNotFoundError during snapcraft cleanbuild when archiving a Firefox cache file. No comments or patches were submitted, indicating the issue was abandoned or closed due to inactivity.

Update history

Date Change
created

Related work

  • Related To: canonical/snapcraft#2474 (confidence 60%)

    Commit 4308dd8d3 'build providers: remove dead code (#2474)' removed legacy cleanbuild/LXD build provider paths.

  • Related To: canonical/snapcraft#2089 (confidence 55%)

    Commit a3bafbb7c removed support for remote LXD / project containers, part of the same cleanbuild legacy teardown.

Related issues

Issue Project State Summary Similarity
#1752498 cleanbuild fails with lxd snap snapcraft (launchpad) closed Closed as obsolete: the cleanbuild command was removed; Snapcraft builds now perform clean builds by default.
71%
#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.
71%
#2044389 snapcraft clean failed but exit 0 snapcraft (launchpad) open Snapcraft 7.5.3 reports a missing build environment during clean but exits 0; a maintainer confirmed the bug and agreed it should fail, with no fix recorded.
70%