Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download buffer issue when building an SD image from a flake using github actions #11504

Open
SpidFightFR opened this issue Sep 15, 2024 · 3 comments
Labels

Comments

@SpidFightFR
Copy link

Describe the bug

Currently i'm trying to automatically build sd images of a nixos install for star64 , when i make a github action to compile the image, i end up having the following error:

warning: download buffer is full; consider increasing the 'download-buffer-size' setting

Right in the middle of building. I searched in the man page, on the internet...
Nothing related to nix and download buffer size.

The error seem to come from nix so i come here a bit lost ngl...

Steps To Reproduce

  1. using github actions
  2. nix build .#sd-image-cross
  3. It ends up crashing
  4. See error

Expected behavior

It should make a full system image as a .img file that can be written to an sd card.

Additional context

The error i encounter here is when using act that allows to emulate the same env as github acitons.
Here is my current action file

Priorities

Add 👍 to issues you find important.

@edolstra
Copy link
Member

It's a warning, not an error. You can safely ignore it, or set download-buffer-size to a higher value than the default (64 MiB) if it annoys you.

@cole-h
Copy link
Member

cole-h commented Sep 17, 2024

@SpidFightFR

It might be useful to qualify what "It ends up crashing" actually means, since that seems like the real issue, and the warning about "download buffer is full" is just a red herring.

@SpidFightFR
Copy link
Author

@SpidFightFR

It might be useful to qualify what "It ends up crashing" actually means, since that seems like the real issue, and the warning about "download buffer is full" is just a red herring.

Hey, to be honest i don't know what's happening.

I tried to run nix build with -vvvvvv, the logs end with:

building of '/nix/store/2vivxdlhnd01700p3vrv05kkd6i8h44l-bash-riscv64-unknown-linux-gnu-5.2p32.drv^out' from .drv file: goal destroyed
lock released on '/nix/store/mpw2vsdhhm96a6g106gy732b4an4z0w1-stdenv-linux.lock'
building of '/nix/store/rf4q3gq52pcvx4m487m54clwfdrlxk1l-stdenv-linux.drv^out' from .drv file: goal destroyed
error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing

I don't encounter this error on a native nixos install (outside of act), it just stops building out of nowhere.
I wished i could tell you more, i just don't have any answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants