← Back to issue list

Sorry, an error occurred in Snapcraft:

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft 2.43.1 crashed with FileNotFoundError for /opt/StorageCraft/spx/bin/spx_service while composing snap.yaml; maintainer dev-mahara replied with a patch for the reporter's own project repo, not a Snapcraft fix.

Suggested action: close not a bug

Reason: The traceback shows Snapcraft correctly failing because the app command '/opt/StorageCraft/spx/bin/spx_service' was not present in prime/ — i.e. the reporter's own snapcraft.yaml/part failed to install the binary, not a Snapcraft defect. The single comment from maintainer ~dev-mahara points to a patch for the reporter's project ('Patch for "master" branch: https://reviews.mahara.org/10043'), confirming this is a packaging issue in the reporter's snap (StorageCraft) rather than in Snapcraft. The traceback's snapcraft/internal/meta/_snap_packaging.py wrap-exe code no longer exists in the current tree (now snapcraft/meta/snap_yaml.py), and the reported version 2.43.1 is long superseded. Sibling report #1795171 was closed the same way, with @ogra supplying the corrected 'command: bin/ags' snippet and the reporter confirming the fix.

Evaluated by: mr-cal-bot

Impact: 20 Quick Win: 9 Complexity: 15 Confidence: 82 Actionability: 55

Issue body

Getting this error when running an apt command. Sorry, an error occurred in Snapcraft: We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. Traceback (most recent call last): File "/usr/bin/snapcraft", line 9, in <module> load_entry_point('snapcraft===2.43.1ubuntu1', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke return Command.invoke(self, ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 534, 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 552, in forward return self.invoke(cmd, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 534, 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: '/build/spx/prime/opt/StorageCraft/spx/bin/spx_service' Build failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 265, in run self.build() File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 254, in build env=env) File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 103, in run_build_command return self.backend.run(args, env=full_env, **kwargs) File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 497, in run subprocess.check_call(cmd, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['lxc', 'exec', 'lp-xenial-amd64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build-request-id": "lp-49344042", "build-request-timestamp": "2019-05-26T06:43:25Z", "build_url": "https://launchpad.net/~build.snapcraft.io/+snap/127275c711c8b01c01773e8b3ea8d80e/+build/568048"}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/spx && linux64 snapcraft']' returned non-zero exit status 1 Revoking proxy token... RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=xenial --arch=amd64 SNAPBUILD-568048 Scanning for processes to kill in build SNAPBUILD-568048

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 20
Quick Win: 9
Complexity: 15
Confidence: 82
Actionability: 55
close not a bug Snapcraft 2.43.1 crashed with FileNotFoundError for /opt/StorageCraft/spx/bin/spx_service while composing snap.yaml; maintainer dev-mahara replied with a patch for the reporter's own project repo, not a Snapcraft fix.
stealth/space-bunny-alpha
Impact: 32
Quick Win: 13
Complexity: 38
Confidence: 79
Actionability: 65
keep open Snapcraft 2.43.1 raises a raw FileNotFoundError for a missing prime-directory app binary; a 2019 patch was linked, but no merge or closure is recorded.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 13
Complexity: 45
Confidence: 78
Actionability: 55
needs triage Snapcraft 2.43.1 crashes while generating metadata when an app command target is missing from prime; a master patch was linked, but the report remains unlabeled and unresolved.
stealth/space-bunny-alpha
Impact: 24
Quick Win: 5
Complexity: 28
Confidence: 85
Actionability: 30
needs triage A 2019 Snapcraft 2.43.1 build fails on a missing spx_service executable; no snapcraft.yaml or actual apt command was supplied, leaving the report untriaged.
qwen/qwen3.8-27b
Impact: 10
Quick Win: 8
Staleness: 95
Complexity: 15
Confidence: 75
Support Request: 65
close stale Snapcraft 2.43.1 (2019) crashed with FileNotFoundError wrapping app command spx_service missing from the prime dir during a Launchpad build. No maintainer activity in 7+ years; the 2.x code path no longer exists and the root cause is user snapcraft.yaml config.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 50
close stale Snapcraft build fails with FileNotFoundError for a missing executable during packaging. Issue is 7 years old, unlabelled, and uses a deprecated snapcraft version.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 85
close stale Reports a FileNotFoundError during a Snapcraft build in a 2019 environment. The traceback indicates a missing executable in the prime directory. No maintainer response, inactive for over 7 years, and the reported version is long deprecated.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 10
Confidence: 90
Support Request: 95
close not a bug User reports a FileNotFoundError during Snapcraft v2.43.1 build due to a missing executable path. Issue is over 7 years old, has no maintainer interaction, and appears to be a local configuration or build environment misconfiguration rather than a platform bug.

Update history

Date Change
created

Related work

  • Related To: snapcraft (launchpad)#1795171 (confidence 85%)

    Same failure mode in 2.43.1 (app command path not found during priming); closed after the maintainer gave the correct command snippet.

  • Duplicate Of: snapcraft (launchpad)#1821955 (confidence 60%)

    Same generic 'Sorry, an error occurred in Snapcraft' report; closed with the reporter directed to Snapcraft forum help instead of a code fix.

  • Related To: snapcraft (launchpad)#1812435 (confidence 55%)

    Open report of the same FileNotFoundError on a missing prime/bin/<entry point> in 2.43.1.

Related issues

No related issues found above the similarity threshold.