Snapcraft hangs with no space left on device

Bug #2065801 reported by Nathan Teodosio
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Incomplete
Undecided
Unassigned
Snapcraft
New
Undecided
Unassigned

Bug Description

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
<---

Revision history for this message
Jürgen Gmach (jugmac00) wrote :

Thanks for the report.

Could you give some background information?

Our builders supposed to have 80 GB hard disk, see https://help.launchpad.net/Packaging/BuilderSpecs. Is it possible that this is not sufficient for your build?

How much space do you need when you build it locally?

Changed in launchpad:
status: New → Incomplete
Revision history for this message
Nathan Teodosio (nteodosio) wrote : Re: [Bug 2065801] Re: Snapcraft hangs with no space left on device

The build in the description is from the chromium-ffmpeg snap.

As (for the first time) three versions have to be supported at the time of
writing, I had to build it from three different Chromiums tarballs. As each
unpacked tarball will amount to at least 20 GB, it is probable that space was
not sufficient.

I worked around the issue but at any rate Snapcraft should not hang when it
gets out of space, it should terminate.

I only added Launchpad to the bug task for the case it could be some problem on
its side, but probably this is just on Snapcraft.

Am 17/06/2024 um 13:01 schrieb <email address hidden>:
> Thanks for the report.
>
> Could you give some background information?
>
> Our builders supposed to have 80 GB hard disk, see
> https://help.launchpad.net/Packaging/BuilderSpecs. Is it possible that
> this is not sufficient for your build?
>
> How much space do you need when you build it locally?
>
> ** Changed in: launchpad
> Status: New => Incomplete
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.