Snapcraft crashes while creating snap for ssh-audit
Metadata
Current evaluation
Closed as stale after prolonged inactivity; no Snapcraft PR or commit was cited as resolving the ssh-audit FileNotFoundError.
Resolution: closed stale
Reason: Maintainer ~mr-cal explicitly closed the report as stale, with no resolving change identified. The missing executable referenced by apps.command was not staged into prime/.
Evaluated by: mr-cal-bot
No scores available.
Issue body
While attempting to build a snap for ssh-audit (https://github.com/jtesta/ssh-audit) on a fully-updated Ubuntu 18.04.4 machine, I get the following crash output:
jdog@ubuntu1804:~/ssh-audit$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
jdog@ubuntu1804:~/ssh-audit$ snapcraft
[...]
Building ssh-audit
Staging ssh-audit
Priming ssh-audit
'grade' property not specified: defaulting to 'stable'
Determining the version from the project repo (version: git).
The version has been set to 'v2.2.0'
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: '/home/jdog/ssh-audit/prime/ssh-audit/ssh-audit.py'
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.
FYI, the snapcraft.yaml file I used is:
name: ssh-audit
version: git
summary: ssh-audit
description: |
SSH server and client security configuration auditor.
base: core18
confinement: devmode
parts:
ssh-audit:
plugin: python
# python-version: python3
source: .
apps:
ssh-audit:
command: ssh-audit/ssh-audit.py
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after prolonged inactivity; no Snapcraft PR or commit was cited as resolving the ssh-audit FileNotFoundError. | |
| stealth/space-bunny-alpha | — | closed stale | User reported a FileNotFoundError in _wrap_exe during priming because apps.command pointed at prime/ssh-audit/ssh-audit.py, which the python plugin never installed. No maintainer fix; ~mr-cal closed it as stale in Aug 2026. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale by maintainer @~mr-cal on 2026-08-31; no resolving PR or commit was cited. | |
| qwen/qwen3.6-35b-a3b | — | — | Reported a Snapcraft crash due to a missing executable during snap creation. The report was closed as stale by a maintainer without a fix or further discussion. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
95
Support Request:
15
|
close stale | Snapcraft v2.43.1 crashes with FileNotFoundError during snap packaging due to a missing executable path in snapcraft.yaml. Issue is completely inactive for over 6 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
90
Support Request:
30
|
close stale | Snapcraft v2.43.1 crashes with a FileNotFoundError during the prime step due to an incorrect command path in snapcraft.yaml. Open for ~6 years with no activity or maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
85
|
close stale | Snapcraft 2.43.1 crashes with FileNotFoundError during packaging on Ubuntu 18.04 due to a missing executable path. Issue is 6+ years old with no maintainer response. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft#2272
(confidence 80%)
Commit 65ba888da added friendlier handling for invalid app commands, but was not cited as this report's resolution.
-
Related To:
snapcraft (launchpad)#1794636
(confidence 75%)
A prior Snapcraft bug with the same missing-command FileNotFoundError was classified as a project configuration error.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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. | |
| #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. | |
| #1750642 Snapcraft fails in LXD container on Debian 9 | snapcraft (launchpad) | closed | Closed as stale in September 2026 because Debian 9 and the reported Snapcraft version were outdated; no fixing PR or commit was identified. | |
| #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. | |
| #1558779 Snapcraft 1.1.0 from PPA hangs building 15.04 NetworkManager snap | snapcraft (launchpad) | closed | Closed as stale after 60 days of inactivity. Shallow Git cloning was later made opt-in via source-depth in snapcraft#814 (190463c3c). | |
| #1857685 Snapcraft crashes with some entries in `.ssh/config` | snapcraft (launchpad) | closed | Crash was upstream, not a Snapcraft defect: Multipass's libssh read ~/.ssh/config and segfaulted on options like proxyjump. Fixed by canonical/multipass PR #1286; maintainers closed this as Invalid. | |
| #1807752 ippsample snap fails to build | snapcraft (launchpad) | closed | Closed as stale after nearly eight years of inactivity; no resolving Snapcraft fix or technical diagnosis was documented. | |
| #1734231 SnapcraftEnvironmentError is too generic | snapcraft (launchpad) | closed | Closed as stale after 3,235 days without an implementation; maintainer ~mr-cal closed it on 2026-08-14 with no linked fix. | |
| #4510 snapcraft snap fails to launch | snapcraft | closed | Fixed by configuring pygit2 with a known CA-certificates path in craft-application#211 (commit 86e1c2b5), backported through snapcraft#4526; the fix was nearing release on candidate. | |
| #5661 Snapcraft hangs forever if a GitHub repository doesn't exist | snapcraft | open | Snapcraft 8.10.2 hangs during part pulls when Git prompts for credentials; maintainers assigned the fix to craft-parts, where the equivalent issue remains open. |