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 · 4 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.

@573
Copy link

573 commented Oct 24, 2024

I encounter a similar issue when building https://github.com/573/ipc2023/tree/f95f027eb10933e839f67db18e4e835677ee2073 on aarch64-linux.
download buffer full occurs and then following this sequence of log entries:

download thread waiting for 100 ms curl: Recv failure: Software caused connection abort curl: OpenSSL SSL_read: Software caused connection abort, errno 103 curl: Failed receiving HTTP2 data: 56(Failure when receiving data from the peer) curl: Connection #1 to host codeload.github.com left intact finished download of 'https://github.com/typst/packages/archive/0bf668dc16b396c8fe811ef7de63b46fea7d62a0.tar.gz'; curl status = 56, HTTP status = 200, body = 353435648 bytes, duration = 167.28 s download thread waiting for 10000 ms
...

then the build breaks complains some files in the download are missing:

error: cannot read file 'packages-0bf668dc16b396c8fe811ef7de63b46fea7d62a0/packages/preview/ttt-exam/0.1.0/template/logo.jpg' from tarball download thread shutting down

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

4 participants