← Back to issue list

Snapcraft hangs with no space left on device

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft hangs indefinitely when disk space runs out during shutil.copytree in craft-parts, instead of failing gracefully with an error.

Suggested action: needs triage

Reason: The issue has no labels, no maintainer comments, and no assignee after 841 days. It reports a legitimate bug where snapcraft hangs instead of failing gracefully when disk space runs out during shutil.copytree. The code path still exists in craft-parts (craft_parts/executor/part_handler.py:472), so the issue may still be relevant and needs maintainer assessment.

Impact: 60 Quick Win: 45.0 Staleness: 85 Complexity: 25 Confidence: 65 Support Request: 15

Issue body

https://launchpad.net/~chromium-team/+snap/chromium-ffmpeg/+build/2484095 gets out of space but never returns control, hanging the builder. Only visible part of the log is ---> dispatcher = self._get_dispatcher() File "/snap/snapcraft/11722/lib/python3.10/site-packages/snapcraft/application.py", line 220, in _get_dispatcher raise errors.ClassicFallback() snapcraft.errors.ClassicFallback During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/snap/snapcraft/11722/lib/python3.10/site-packages/snapcraft/parts/parts.py", line 222, in run aex.execute(action, stdout=stream, stderr=stream) File "/snap/snapcraft/11722/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 327, in execute self._executor.execute(actions, stdout=stdout, stderr=stderr) File "/snap/snapcraft/11722/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 137, in execute self._run_action(act, stdout=stdout, stderr=stderr) File "/snap/snapcraft/11722/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 214, in _run_action handler.run_action(action, stdout=stdout, stderr=stderr) File "/snap/snapcraft/11722/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 170, in run_action state = handler(step_info, stdout=stdout, stderr=stderr) File "/snap/snapcraft/11722/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 294, in _run_build shutil.copytree( File "/snap/snapcraft/11722/usr/lib/python3.10/shutil.py", line 559, in copytree return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks, File "/snap/snapcraft/11722/usr/lib/python3.10/shutil.py", line 513, in _copytree raise Error(errors) shutil.Error: [('/build/chromium-ffmpeg/parts/chromium-ffmpeg-115541/src/third_party/devtools-frontend/src/node_modules/mocha/mocha.js.map', '/build/chromium-ffmpeg/parts/chromium-ffmpeg-115541/build/third_party/devtools-frontend/src/node_modules/mocha/mocha.js.map', "[Errno 28] No space left on device: '/build/chromium-ffmpeg/parts/chromium-ffmpeg-115541/src/third_party/devtools-frontend/src/node_mod <---

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 45.0
Staleness: 85
Complexity: 25
Confidence: 65
Support Request: 15
needs triage Snapcraft hangs indefinitely when disk space runs out during shutil.copytree in craft-parts, instead of failing gracefully with an error.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Reports snapcraft hanging indefinitely when the build environment runs out of disk space, providing a traceback from a failed Launchpad build. Unlabelled and inactive for over two years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Snapcraft hangs indefinitely when the build environment runs out of disk space, failing with an unhandled ENOSPC error during file copying. No maintainer response in over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 80
Support Request: 10
close stale Snapcraft hangs indefinitely when the build environment runs out of disk space, failing with a shutil.Error instead of returning control or reporting the error cleanly. No maintainer response after over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 92
Complexity: 35
Confidence: 85
Support Request: 10
needs triage Bug report where snapcraft hangs indefinitely instead of failing cleanly when the build environment runs out of disk space. Includes a Python traceback showing Errno 28. Currently unlabelled and unacknowledged by maintainers.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5661 Snapcraft hangs forever if a GitHub repository doesn't exist snapcraft open Snapcraft hangs indefinitely on Pulling when a git source is missing/private because git prompts for credentials. Triaged by maintainers; fix identified (GIT_TERMINAL_PROMPT=0) but must be implemented in craft-parts, not yet done.
70%