← Back to issue list

[Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft 3.8 staging crash: FileExistsError linking libbsd.so.0 into stage after an I/O error on os.link, reported from a Docker build. No maintainer activity for ~7 years; the affected code paths no longer exist in modern snapcraft.

Suggested action: close stale

Reason: The issue is ~7 years old with zero comments or labels, and it targets snapcraft 3.8 whose code paths (snapcraft/file_utils.py, snapcraft/internal/pluginhandler) no longer exist in the current craft-parts-based codebase (no internal/ directory in the repo layout). The root cause appears to be an environment-specific I/O error on os.link in the reporter's Docker container, and the upstream go-flutter issue #287 indicates the problem was isolated on their side, so it is no longer applicable to current versions.

Impact: 20 Quick Win: 11.0 Staleness: 95 Complexity: 45 Confidence: 70 Support Request: 30

Issue body

Our project issue is here: https://github.com/go-flutter-desktop/go-flutter/issues/287 From the traceback the problems have been isolate by the team here : https://github.com/go-flutter-desktop/go-flutter/issues/287#issuecomment-544293579 trace: root@c379f3f4e639:/app# cat /tmp/tmpzolnnkgs/trace.txt Traceback (most recent call last): File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 109, in link_or_copy link(source, destination, follow_symlinks=follow_symlinks) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 143, in link os.link(source_path, destination, follow_symlinks=False) OSError: [Errno 5] Input/output error: '/app/parts/app/install/lib/x86_64-linux-gnu/libbsd.so.0' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/snap/snapcraft/current/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==3.8', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 1114, in invoke return Command.invoke(self, ctx) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_runner.py", line 103, in run snap_command.invoke(ctx) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_command.py", line 87, in invoke return super().invoke(ctx) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 261, in snap _execute(steps.PRIME, parts=[], pack_project=True, output=output, **kwargs) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 66, in _execute lifecycle.execute(step, project_config, parts) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 94, in execute executor.run(step, part_names) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 148, in run self._handle_step(part_names, part, step, current_step, cli_config) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 162, in _handle_step getattr(self, "_run_{}".format(current_step.name))(part) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 226, in _run_stage self._run_step(step=steps.STAGE, part=part, progress="Staging") File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 281, in _run_step getattr(part, step.name)() File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 740, in stage self._do_runner_step(steps.STAGE) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 242, in _do_runner_step return getattr(self._runner, "{}".format(step.name))() File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 84, in stage "override-stage", self._override_stage_scriptlet, self._stagedir File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 137, in _run_scriptlet scriptlet_name, function_call.strip() File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 193, in _handle_builtin_function function(**function_args) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 762, in _do_stage fixup_func=fixup_func, File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 1125, in _migrate_files file_utils.link_or_copy(src, dst, follow_symlinks=follow_symlinks) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 117, in link_or_copy copy(source, destination, follow_symlinks=follow_symlinks) File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 166, in copy shutil.copy2(source, destination, follow_symlinks=follow_symlinks) File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 251, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 112, in copyfile os.symlink(os.readlink(src), dst) FileExistsError: [Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 11.0
Staleness: 95
Complexity: 45
Confidence: 70
Support Request: 30
close stale Snapcraft 3.8 staging crash: FileExistsError linking libbsd.so.0 into stage after an I/O error on os.link, reported from a Docker build. No maintainer activity for ~7 years; the affected code paths no longer exist in modern snapcraft.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 15
close stale Snapcraft 3.8 build fails during staging with a FileExistsError when linking libbsd.so.0. Issue is 6.75 years old, points to an external repository, and has no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 92
Support Request: 20
close stale Snapcraft staging fails with file and symlink errors during libbsd.so handling. Issue is over six years old, unlabelled, and references obsolete snapcraft 3.8 and Python 3.5.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 20
Confidence: 95
Support Request: 10
close stale Report of a FileExistsError during snapcraft staging of libbsd.so.0, referencing an external go-flutter issue. No activity for over 6 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 20
close stale Snapcraft 3.8 build fails with file existence and I/O errors during staging of libbsd symlinks. Reported 6.6 years ago with no maintainer response; points to external go-flutter issue.

Update history

No update history recorded yet.

Related work

  • Related To: go-flutter-desktop/go-flutter#287 (confidence 60%)

    Explicitly cross-referenced in the issue body as the upstream project issue where the team isolated the problem.

Related issues

No related issues found above the similarity threshold.