← Back to issue list

snapcraft fail app

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1884683
Type
issue
State
open
Author
~alandecunto
Labels
—
Created
Updated
Closed
—

Current evaluation

Snapcraft 2.43.1 crashed on missing executable /bin/Sastreria; newer code added invalid-command handling, and the maintainer says the Snapcraft snap fixes it, but no retest was posted.

Suggested action: close resolved

Reason: The traceback identifies Snapcraft 2.43.1 opening the absent /bin/Sastreria while wrapping an app command. Commit e0cb7cb94 (snapcraft#2539) later added InvalidAppCommand handling for nonexistent and not-found commands, and maintainer ~sergiusens explicitly recommended the Snapcraft snap and said newer versions fixed it; no contradictory retest is recorded.

Evaluated by: mr-cal-bot

Impact: 38 Quick Win: 25 Complexity: 24 Confidence: 90 Actionability: 86

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 1043, in invoke return Command.invoke(self, 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/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run ctx.forward(lifecyclecli.commands["snap"]) File "/usr/lib/python3/dist-packages/click/core.py", line 553, in forward return self.invoke(cmd, **kwargs) 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 136, in snap project = _execute(steps.PRIME, parts=[], **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute lifecycle.execute(step, project_config, parts) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 196, in run self._create_meta(step, processed_part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 359, in _create_meta self.config.validator.schema, File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 109, in create_snap_packaging packaging.write_snap_yaml() File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 312, in write_snap_yaml snap_yaml = self._compose_snap_yaml() File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 468, in _compose_snap_yaml snap_yaml["apps"] = self._wrap_apps(self._config_data["apps"]) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 567, in _wrap_apps self._wrap_app(app, apps[app]) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 575, in _wrap_app app[k] = self._wrap_exe(app[k], "{}-{}".format(k, name)) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 546, in _wrap_exe with open(exepath, "rb") as exefile: FileNotFoundError: [Errno 2] No such file or directory: '/bin/Sastreria' We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 38
Quick Win: 25
Complexity: 24
Confidence: 90
Actionability: 86
close resolved Snapcraft 2.43.1 crashed on missing executable /bin/Sastreria; newer code added invalid-command handling, and the maintainer says the Snapcraft snap fixes it, but no retest was posted.
stealth/space-bunny-alpha
Impact: 40
Quick Win: 13
Complexity: 35
Confidence: 78
Actionability: 50
keep open Snapcraft 2.43.1 crashes while wrapping an app because /bin/Sastreria is absent; a maintainer says newer versions should fix it, but no confirming retest or exact fix reference is recorded.
qwen/qwen3.6-35b-a3b
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 95
Actionability: 0
close not a bug Reports a FileNotFoundError for a missing /bin/Sastreria executable during a snap build. The build tool correctly fails on a missing required binary. The report is 6 years old, unlabelled, and reflects a user configuration error rather than a software defect.
qwen/qwen3.8-27b
Impact: 10
Quick Win: 8
Staleness: 95
Complexity: 20
Confidence: 75
Support Request: 70
close stale Snapcraft 2.43.1+18.4 crashes with FileNotFoundError when an app's command points to /bin/Sastreria, which is missing from the prime directory. No comments or labels; the affected 2.x version is long EOL and the code path no longer exists.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 90
close stale Snapcraft v2.43 crashes with a FileNotFoundError for '/bin/Sastreria' during packaging. The report is over 6 years old, has no comments or labels, and lacks reproduction steps or configuration files.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 85
close stale Snapcraft 2.43.1 crashes with FileNotFoundError for '/bin/Sastreria' during the snap lifecycle step. The report is over six years old with no maintainer interaction or comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 85
close stale Snapcraft 2.43.1 crashes with a FileNotFoundError for '/bin/Sastreria' during the snap lifecycle step. The issue is over 6 years old, has no comments, and appears to stem from a user configuration error.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#2539 (confidence 92%)

    Commit e0cb7cb94 added dedicated errors for nonexistent and not-found application commands.

  • Related To: snapcraft (launchpad)#1875872 (confidence 70%)

    A separate crash was closed as an apt-installation problem after the recommended Snapcraft snap installation worked without the failure.

Related issues

Issue Project State Summary Similarity
#1795171 snapcraft fail to find built executable under prime $SNAP snapcraft (launchpad) closed Launchpad #1795171: crash was user error — app command used literal $SNAP/bin/ags. Maintainer @ogra gave the correct YAML (command: bin/ags), reporter confirmed; report later expired for 60 days inactivity.
73%
#1666013 Snapcraft reports an error if the executable for a command is provided by a content interface snapcraft (launchpad) closed Snapcraft #1666013 was closed as expired after 60 days of inactivity; no fix or superseding work was recorded.
73%