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

github-runner: "no space left on device" #593

Open
adrian-gierakowski opened this issue Dec 31, 2024 · 0 comments
Open

github-runner: "no space left on device" #593

adrian-gierakowski opened this issue Dec 31, 2024 · 0 comments

Comments

@adrian-gierakowski
Copy link

this is more of a question than a bug report:

Occasionally I would get the above error in during gh action job execution. Initially I though it was due to running out of disk space, as I didn't have automatic nix.gc configured, however it didn't make sense since I still had tens of GBs of disk space left.

Recently I've been working on adding a job which writes a lot of data to disk (over 10GB) and when executing on smaller VM it always fails with this error. I had an idea to monitor the file system with watch df -h while the job was running and realised that it was tmpfs mount at /run that was running out of space.

It seems that that by defaults all files written to WorkingDirectory by the runner are written to the above tmpfs, which size is limited to 25% of available RAM.

Is there an easy and secure way to allow jobs to use more disk space?

I could simply bump boot.runSize but then I could run out of memory since I don't have swap enabled.

Thanks!

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

No branches or pull requests

1 participant