← 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

Auto-filed report (snapcraft 2.43.1, Xenial): a keepalived compile failure surfaces a confusing FileNotFoundError from snapcraftctl set-version. No maintainer response; the snapcraftctl FIFO subsystem has since been removed.

Suggested action: close stale

Reason: The actionable snapcraft defect is confined to the snapcraftctl FIFO IPC path in snapcraft/cli/snapcraftctl/_runner.py, which no longer exists: a grep for 'function_call' in the current tree returns no matches, and ffb164b7a ('chore: remove snapcraft_legacy') deleted the implementation while eaadefa01 (#5983) made snapcraftctl a hard error for core26. The reported primary failure is a compile error in the reporter's own keepalived C source ('magic_desc' undeclared), not a snapcraft defect. The issue has zero comments, no labels and no maintainer response, and the reported 2.43.1/Xenial combination is many major versions obsolete.

Evaluated by: mr-cal-bot

Impact: 22 Quick Win: 7 Complexity: 15 Confidence: 72 Actionability: 35

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
stealth/space-bunny-alpha
Impact: 22
Quick Win: 7
Complexity: 15
Confidence: 72
Actionability: 35
close stale Auto-filed report (snapcraft 2.43.1, Xenial): a keepalived compile failure surfaces a confusing FileNotFoundError from snapcraftctl set-version. No maintainer response; the snapcraftctl FIFO subsystem has since been removed.
stealth/space-bunny-alpha
Impact: 20
Quick Win: 3
Complexity: 35
Confidence: 92
Actionability: 20
close stale Snapcraft 2.43.1 on Xenial hit a secondary snapcraftctl FIFO error after an upstream keepalived compile failure; the legacy FIFO implementation is absent from current code.
qwen/qwen3.8-27b
Impact: 5
Quick Win: 4
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.

Update history

Date Change
created

Related work

  • Superseded By: canonical/snapcraft#5983 (confidence 80%)

    Commit eaadefa01 removes snapcraftctl for core26, confirming the entire reported subsystem was retired rather than fixed.

  • Likely Fixed By: canonical/snapcraft#3317 (confidence 45%)

    Commit 9c622ecda 'pluginhandler: properly handle snapcraftctl errors' targets the same error-handling area, though I could not verify it addressed this exact FileNotFoundError.

Related issues

Issue Project State Summary Similarity
#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 Untriaged 2.43.1 traceback: zip source handler raised BadZipFile on a non-zip download. The legacy snapcraft/internal/sources path was renamed to snapcraft_legacy and then deleted, so the reported code no longer exists.
70%