Error: Selected packages exceed device storage
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- backend, build-system
Research direction
Start in asu/build.py at build() and _build(), especially the report_error call shown in the traceback. Reproduce the Raspberry Pi 5/500/CM5, OpenWrt 24.10.5, and dockerd request, then compare the storage error with the ext4 allocation failure in the build output. Done means the reported result accurately reflects this build case.
Written by the indexing model from the issue text.
Description
When using the OpenWrt Firmware Selector (https://firmware-selector.openwrt.org)
If I select Raspberry Pi 5/500/CM5 for device and 24.10.5 for the version, then click on "Customize installed packages and/or first boot script", then add dockerd under installed packages.
I then click on REQUEST BUILD.
I receive the following message "Error: Selected packages exceed device storage"
The dockerd package is only 19.61 MiB. How can ~20MB exceed device storage?
Thank You,
Lance
Error: Selected packages exceed device storage
STDERR
Package list missing or not up-to-date, generating it.
Building package index...
Downloading http://downloads.openwrt.org/releases/24.10.5/targets/bcm27xx/bcm2712/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_core
Downloading http://downloads.openwrt.org/releases/24.10.5/targets/bcm27xx/bcm2712/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/base/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_base
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/24.10.5/targets/bcm27xx/bcm2712/kmods/6.6.119-1-fea92848c8c075dc0d6dd2ea7666a1d6/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/24.10.5/targets/bcm27xx/bcm2712/kmods/6.6.119-1-fea92848c8c075dc0d6dd2ea7666a1d6/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/luci/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_luci
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_packages
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/routing/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_routing
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/telephony/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/24.10.5/packages/aarch64_cortex-a76/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/../../../../builder/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check passed.
Pseudo file "dev" exists in source filesystem "/builder/build_dir/target-aarch64_cortex-a76_musl/root-bcm27xx/dev".
Ignoring, exclude it (-e/-ef) to override.
error: ext4_allocate_best_fit_partial: failed to allocate 500 blocks, out of space?
make[3]: *** [/builder/include/image.mk:399: /builder/build_dir/target-aarch64_cortex-a76_musl/linux-bcm27xx_bcm2712/root.ext4] Error 1
make[2]: *** [Makefile:268: build_image] Error 2
make[1]: *** [Makefile:163: _call_image] Error 2
make: *** [Makefile:337: image] Error 2
Traceback (most recent call last):
File "/app/.venv/lib/python3.14/site-packages/rq/worker.py", line 1439, in perform_job
return_value = job.perform()
File "/app/.venv/lib/python3.14/site-packages/rq/job.py", line 1318, in perform
self._result = self._execute()
~~~~~~~~~~~~~^^
File "/app/.venv/lib/python3.14/site-packages/rq/job.py", line 1376, in _execute
result = self.func(*self.args, **self.kwargs)
File "/app/asu/build.py", line 463, in build
result = _build(build_request, job)
File "/app/asu/build.py", line 327, in _build
report_error(job, "Selected packages exceed device storage")
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/asu/util.py", line 332, in report_error
raise RuntimeError(msg)
RuntimeError: Selected packages exceed device storage
- Dominant language
- Python
- Stars
- 461
- Forks
- 116
- Avg merge
- 8d 30m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/asu
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ClickHouse/dbt-clickhouse#829 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
volcengine/OpenViking#8432 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day