← Back to issue list

snapcraft requested file bug report

View original Launchpad issue

Metadata

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

Current evaluation

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.

Suggested action: close stale

Reason: The reported crash is in snapcraft/cli/snapcraftctl/_runner.py (snapcraft 2.43.1), a code path that no longer exists in the current codebase (layout shows snapcraft/commands and snapcraft/parts, no cli/snapcraftctl), and the affected version plus Xenial (16.04) are long past EOL. The primary failure was a third-party keepalived compile error, not a snapcraft bug, and the issue has had zero comments or labels in 2664 days.

Impact: 5 Quick Win: 4.0 Staleness: 95 Complexity: 20 Confidence: 75 Support Request: 20

Issue body

When trying to build the keepalived snap on Xenial, following a compile failure snapcraft produced the following: notify.c: In function ‘check_script_secure’: notify.c:934:41: error: ‘magic_desc’ undeclared (first use in this function) log_message(LOG_INFO, "magic_desc: %s", magic_desc); ^ notify.c:934:41: note: each undeclared identifier is reported only once for each function it appears in notify.c:935:15: warning: declaration of ‘magic_desc’ shadows previous non-variable [-Wshadow] const char *magic_desc = magic_file(magic, real_file_path ? real_file_path : script->args[0]); ^ Makefile:413: recipe for target 'notify.o' failed make[2]: *** [notify.o] Error 1 make[2]: Leaving directory '/home/quentin/keepalived/github/parts/keepalived/build/lib' Makefile:322: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/quentin/keepalived/github/parts/keepalived/build/lib' Makefile:430: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Failed to run 'make -j1' for 'keepalived': Exited with code 2. Verify that the part is using the correct parameters and try again. quentin@ubuntu-16-04-1:~/keepalived/github$ Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "<string>", line 5, in <module> 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 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_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/snapcraft/cli/snapcraftctl/_runner.py", line 75, in set_version _call_function("set-version", {"version": version}) File "/usr/lib/python3/dist-packages/snapcraft/cli/snapcraftctl/_runner.py", line 104, in _call_function with open(call_fifo, "w") as f: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpis97bnmx/function_call' We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. The version of snapcraft is 2.43.1. It is installed with apt, and is not a snapped version.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 5
Quick Win: 4.0
Staleness: 95
Complexity: 20
Confidence: 75
Support Request: 20
close stale 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.
qwen/qwen3.6-35b-a3b
Staleness: 99
Complexity: 10
Confidence: 95
Support Request: 10
close stale Snapcraft 2.43.1 build failure on Ubuntu 16.04 Xenial resulting in a Python FileNotFoundError. Issue has been inactive for over 7 years with no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Bug report for snapcraft 2.43.1 where a compile failure triggers a FileNotFoundError when writing to a FIFO. Open for over 7 years with no activity or maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 92
Support Request: 65
close stale Build failure for keepalived snap on Ubuntu Xenial using snapcraft 2.43.1, resulting in a C compiler error and a secondary Python FileNotFoundError. Issue is 7 years old with no activity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 92
Support Request: 65
close stale User reports a snapcraft build failure on Ubuntu Xenial with snapcraft 2.43.1, showing a C compiler error followed by a Python FileNotFoundError. Issue is over 7 years old, on EOL software, and has seen no activity.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1867052 Snapcraft crashes while creating snap for ssh-audit snapcraft (launchpad) closed 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.
78%
#1830520 Sorry, an error occurred in Snapcraft: snapcraft (launchpad) open 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.
76%
#1884683 snapcraft fail app snapcraft (launchpad) open 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.
75%
#1626236 snapcraft newly fails on ubuntu-image snapcraft (launchpad) open snapcraft 2.17 on Ubuntu 16.10 (Yakkety) fails to copy the ubuntu-image CLI script to prime/usr/bin, causing a FileNotFoundError during build. No maintainer activity in ~10 years; affected versions are long EOL and the codebase has been fully restructured since.
74%
#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.
74%
#1499424 snapcraft throws FileExistsError: with very simple Python snap snapcraft (launchpad) closed Closed without comments or explicit resolution. The FileExistsError during snapcraft stage was likely resolved in a subsequent snapcraft release or abandoned due to inactivity.
73%
#1761488 snapcraft 2.39.2 failed to release a snap: snapcraft.storeapi.errors.StoreReleaseError: <exception str() failed> snapcraft (launchpad) closed Closed without resolution. The report details a StoreReleaseError during snapcraft 2.39.2 release attempts. With zero maintainer comments and significant age, the issue was likely abandoned. No fix or workaround was provided.
73%
#1822197 File "/snap/snapcraft/2650/legacy_snapcraft/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 187, in prime _execute(steps.PRIME, parts, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 98, in _execute lifecycle.execute(step, project_config, parts) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 194, in run self._handle_step(part_names, part, step, current_step, cli_config) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step getattr(self, "_run_{}".format(current_step.name))(part) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 250, in _run_pull self._run_step(step=steps.PULL, part=part, progress="Pulling") File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step getattr(part, step.name)() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 413, in pull self._runner.pull() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 83, in pull "override-pull", self._override_pull_scriptlet, self._sourcedir File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 162, in _run_scriptlet scriptlet_name, function_call.strip() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 218, in _handle_builtin_function function(**function_args) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 432, in _do_pull self.source_handler.pull() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/sources/_base.py", line 106, in pull self.provision(self.source_dir, src=source_file, clean_target=False) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/sources/_zip.py", line 66, in provision with zipfile.ZipFile(zip, "r") as f: File "/snap/snapcraft/2650/legacy_snapcraft/usr/lib/python3.5/zipfile.py", line 1026, in __init__ self._RealGetContents() File "/snap/snapcraft/2650/legacy_snapcraft/usr/lib/python3.5/zipfile.py", line 1093, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. snapcraft (launchpad) open User reports BadZipFile error when snapcraft tries to pull a source file. No maintainer response, 7+ years old.
72%
#1973146 snapcraftctl build fails with message "expected string or bytes-like object" snapcraft (launchpad) closed Closed without comments or resolution details. Likely abandoned due to inactivity. No fix was implemented or documented for the snapcraftctl build TypeError.
72%
#1752964 Snapcraft snap broken on trusty snapcraft (launchpad) closed Closed without resolution. Snapcraft v2.39.2 failed on Ubuntu Trusty due to a missing liblz4.so.1 dependency for mksquashfs. No comments were posted, and the report was likely abandoned following Trusty's end-of-life.
72%