← Back to issue list

snapcraft clean failed but exit 0

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2044389
Type
issue
State
open
Author
~moisesperezespinosa
Labels
Created
Updated
Closed

Current evaluation

snapcraft clean returns exit code 0 despite reporting an error about missing instance. Reported for version 7.5.3, no maintainer response in 2.7 years.

Suggested action: close stale

Reason: The issue is 2.7 years old with zero maintainer engagement and no comments. Snapcraft has evolved significantly since version 7.5.3 was released, and basic error handling/exit code behavior should have been addressed if still relevant. The issue shows clear signs of being outdated without concrete evidence it still applies to current versions.

Impact: 50 Quick Win: 35.0 Staleness: 85 Complexity: 30 Confidence: 55 Support Request: 10

Issue body

On our jenkins pipelines we're using snapcraft to generate our package. Just before calling 'snapcraft' command we use the 'snapcraft clean' command. We noticed the 'snapcraft clean' command without something to clean doesn't give an exit 1 error. Our shell scripts are set with the option > set -e This is the output of the 'snapcraft clean' command: ---------------------------------------------------------------------------------------------------- Calling 'snapcraft clean' ... info failed: The following errors occurred: instance "snapcraft-<app-name>" does not exist Starting Snapcraft 7.5.3 Logging execution to '/home/user/.local/state/snapcraft/log/snapcraft-20231122-235234.244208.log' ... 'snapcraft clean' complete. ---------------------------------------------------------------------------------------------------- Despite the reported error the return code is 0

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 35.0
Staleness: 85
Complexity: 30
Confidence: 55
Support Request: 10
close stale snapcraft clean returns exit code 0 despite reporting an error about missing instance. Reported for version 7.5.3, no maintainer response in 2.7 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
needs triage snapcraft clean reports an error but exits with code 0, breaking CI pipelines using set -e. The issue is unlabelled, has zero maintainer comments, and has been inactive for over two years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale snapcraft clean returns exit code 0 despite printing an error about a missing instance, breaking scripts using set -e. Unlabelled, no maintainer response, inactive for over 2.5 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 10
Confidence: 75
Support Request: 5
needs triage snapcraft clean returns exit code 0 despite reporting an error about a missing instance, causing CI pipeline failures. Issue is unlabelled, inactive for ~2.6 years, and lacks maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 0
close stale Reporter notes snapcraft clean returns exit code 0 despite printing an error about a missing instance, breaking CI pipelines using set -e. Issue is unlabelled, has zero maintainer interaction, and is over two years old.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1615060 snapcraft clean is incomplete snapcraft (launchpad) closed Reporting that snapcraft clean skips local .snap files was closed without comments or resolution, indicating the report was abandoned or left unresolved.
79%
#1799925 snapcraft gives conflicting advice for cleaning parts snapcraft (launchpad) closed Closed without a fix. Snapcraft incorrectly advised running snapcraft clean with part and step flags, which were unsupported. The author worked around it with a full clean. The report appears abandoned or superseded by later updates.
74%
#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.
74%
#1973197 snapcraft 7.x not running override-build snapcraft (launchpad) closed snapcraft 7.x failing to execute override-build was closed without a fix or resolution. Zero comments were posted, indicating the report was abandoned.
74%
#1800119 snapcraft cleanbuild snapcraft (launchpad) closed Closed without resolution. The report details a PermissionError during snapcraft cleanbuild caused by restricted access to the .aptitude directory. With zero comments and no fix applied, the issue was abandoned or marked stale.
73%
#1869542 snapcraft unable to find snap/snapcraft.yaml file snapcraft (launchpad) open snapcraft 3.11 (2019) loses snap/snapcraft.yaml after a few builds and drops to the VM shell; workaround is snapcraft clean. 6+ years old, no labels, no maintainer comments, tied to a long-superseded build environment.
72%
#1808800 snapcraft clean does not work inside snapcraft --debug snapcraft (launchpad) closed Reporting that snapcraft clean fails with an unsupported managed-host provider during debug mode was abandoned due to inactivity. No fix or workaround was provided.
72%
#1983826 Snapcraft 7.1.1 gives vague error when it can't process package snapcraft (launchpad) open Snapcraft 7.1.1 returns a vague 'Service unavailable' error when snap upload processing fails, making it hard for users to diagnose the root cause. No maintainer response or labels; issue is 4 years old.
72%
#1829413 snapcraft requested file bug report snapcraft (launchpad) open Snapcraft 2.43.1 crashed with FileNotFoundError on the snapcraftctl function_call fifo after a keepalived compile failure on Xenial. No maintainer activity in ~7 years; the snapcraftctl code path no longer exists in the current codebase and the affected version is EOL.
71%
#1981979 snapcraft 7.0.8+ stopped working on non debian systems snapcraft (launchpad) closed Closed without resolution or comments. The reported apt_pkg error blocking snapcraft 7.0.8+ builds on non-Debian systems remains unfixed and the issue appears abandoned.
71%