GitHub Actions Failing with [Errno 28] No space left on device #26488
-
I have a scheduled GitHub Actions that runs CI nightly for my team’s project that was working fine but is now failing with ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device The total amount of installed software in the CI job is less that 3.6 GB so I am not sure why things are suddenly failing. Has there been a silent change in the amount of storage that is available in the GitHub Actions runners? Here are examples of scheduled CI jobs 1 day apart, one which ran fine and the other errored as above: |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Seeing this too https://github.com/renovatebot/renovate/pull/5996/checks?check_run_id=597383462 ref: https://github.community/t5/GitHub-Actions/Diminishing-disk-space-on-Ubuntu-images/m-p/54332#M9137 |
Beta Was this translation helpful? Give feedback.
-
We’ve also experienced problems since yesterday that seem related to disk space on Actions. |
Beta Was this translation helpful? Give feedback.
-
Here’s an example where individually installing all the dependencies, that would be installed in the stage that is failing, succeeds (test (ubuntu-latest, 3.7)) but when they are all installed normally the error occurs (notebooks (3.7)). We can see (with df -h) from the stage that succeeds that there is still plenty of space available, so this is all very strange. Before installs:
After individual installs:
|
Beta Was this translation helpful? Give feedback.
-
My earlier message got deleted by someone, so reposting this: We can see an instance where installing all the pacakges individually works (test (ubunut-latest, 3.7)), but then installing all the packages normally fails (notebooks (3.7)). We can see (with df -h) in the case that suceeds that there is plenty of space remaining, which makes this all very strange. Before installs:
After individually installing packages:
|
Beta Was this translation helpful? Give feedback.
-
@rarkinscan you also link to the specific run in GitHub Actions that you’re seeing this error? I’ve submitted a help ticket to GitHub Actions and in the event that it gets reviewed by the engineering team it would be nice to have as many examples of this as possible to review. |
Beta Was this translation helpful? Give feedback.
-
I noticed something even more strange: this error is only occuring on Linux runners
while the macOS builds succeed. I’ve applied @jens-maus’s hack that fixes things (detailed here). I’ve tried this with both removal of /swapfile like they do and found df -h gives
and with just running apt-get clean
For our project it seems that just running with apt-get clean is enough space restored that our Linux runner jobs can proceed again. However, I have to agree with @saudet on the point they raised on “Diminishing disk space on Ubuntu images” that this really seems to be a problem. This is targeting only the Linux runners and this started happening silently after months of no issues. Having users go in and manually clean up runners to ensure that there is sufficient space doesn’t really seem like a good solution. |
Beta Was this translation helpful? Give feedback.
-
Hi @matthewfeickert , Thanks for your sharing! I forked your repo, the disk issue cannot be reproduced on my side now, looks engineering team has fixed it, could you please help to confirm? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply, @weide-zhou. The problem is not fixed though. You’re not seeing the issue as the fork of pyhf you made includes the hack fix that I mentioned in my previous reply (c.f. pyhf PR 819). If you remove the sudo apt-get clean lines the exact same error occurs (example of doing exactly that here). For pyhf this can be easily replicated by committing and pushing the results of the following
|
Beta Was this translation helpful? Give feedback.
-
For anyone running into issues with no space left, there is an issue open in actions/virtual-environments that has some discussions going on: actions/runner-images#709 |
Beta Was this translation helpful? Give feedback.
-
Hi @matthewfeickert , Thanks for your check! I notice the disscussion in ticket , engineering team did a rollback to the previous version of the VM images used for the virtual-environments in both Ubuntu 16.04 and Ubuntu 18.04. Could you please confirm whether it works for you? |
Beta Was this translation helpful? Give feedback.
-
Yes, the VM rollback resolved the issue. I’ve marked this last post as the “Solution” as you’ve linked to the relevant actions/virtual-environments Issue in it. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @matthewfeickert ,
Thanks for your check! I notice the disscussion in ticket , engineering team did a rollback to the previous version of the VM images used for the virtual-environments in both Ubuntu 16.04 and Ubuntu 18.04. Could you please confirm whether it works for you?