← Back to issue list

Sorry, an error occurred in Snapcraft:

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft build failed due to missing binary. Closed as stale.

Resolution: closed stale

Reason: The issue was closed as stale by a maintainer due to inactivity.

Evaluated by: mr-cal-bot

No scores available.

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
qwen/qwen3.6-35b-a3b — closed stale Snapcraft build failed due to missing binary. Closed as stale.
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
closed
created

Related issues

Issue Project State Summary Similarity
#1797795 An error occurred building hello world Snapcraft snapcraft (launchpad) closed User reported a FileNotFoundError for a missing bin/hello executable during snapcraft prime. Maintainer identified it as a snapcraft.yaml configuration error and closed the issue as stale after years of inactivity.
74%
#1829413 snapcraft requested file bug report snapcraft (launchpad) closed User reported a snapcraft crash (FileNotFoundError) triggered by a build failure. The issue was closed as stale by a maintainer.
72%
#4300 snapcraft fails for python projects if there is no setup.py snapcraft closed Closed as stale in April 2025 without a Snapcraft fix. The reproducer declared bin/cos-alerter, but its packaging metadata did not define a console script; no resolving PR or commit was linked.
72%
#2020683 snapcraft remote-build cannot use a custom version of snapcraft snapcraft (launchpad) closed Closed as stale without a fix. A maintainer said Snapcraft developers could tap channel branches; later channel-selection work remains open in canonical/snapcraft#6384.
71%
#1853682 an error occurred in snapcraft snapcraft (launchpad) closed Closed as stale without a linked fix. The original 2.43.1 crash was later guarded in snapcraft/snapcraft#5728; later 4.7.1 comments reported a separate apt-cache failure.
71%
#1796813 Snapcraft crashes with UnicodeDecodeError snapcraft (launchpad) closed Closed as stale. Failed OpenSSL decryption corrupted snapcraft.cfg; restoring the correct key fixed the build. No Snapcraft code change was made.
70%
#1867052 Snapcraft crashes while creating snap for ssh-audit snapcraft (launchpad) closed Closed as stale after prolonged inactivity; no Snapcraft PR or commit was cited as resolving the ssh-audit FileNotFoundError.
70%
#2099923 Snapcraft builds are failing: install of snap "snapcraft" failed snapcraft (launchpad) open Reported Launchpad Bionic non-i386 builds cannot install Snapcraft 7.x/stable because core20 needs snapd 2.61; the issue remains open, untriaged, and unanswered.
70%