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

tmp directory filled by yarn #214

Closed
brian-gates opened this issue Sep 15, 2022 · 0 comments · Fixed by #215
Closed

tmp directory filled by yarn #214

brian-gates opened this issue Sep 15, 2022 · 0 comments · Fixed by #215
Assignees
Labels
bug Something isn't working continuous-deployment

Comments

@brian-gates
Copy link
Collaborator

Over time, builds have filled up /tmp/ with too many files, consuming available inodes and causing the deploy job to fail

root@adventure-bot:/var# df -i /
Filesystem       Inodes    IUsed IFree IUse% Mounted on
/dev/vda1      12902400 12902400     0  100% /

Quick fix was to cleanup /tmp/, but it seems this will arise again and a more permanent solution is needed.

root@adventure-bot:/# find /tmp/ -type f -exec rm -fv {} \;
removed '/tmp/yarn--1663260091847-0.21949611092576804/yarn'
removed '/tmp/yarn--1663260091847-0.21949611092576804/node'
removed '/tmp/yarn--1663260094893-0.8244575906711729/yarn'
removed '/tmp/yarn--1663260094893-0.8244575906711729/node'
removed '/tmp/yarn--1661835777897-0.9553691374749489/yarn'
removed '/tmp/yarn--1661835777897-0.9553691374749489/node'
<snip>

The cause is yarnpkg/yarn#6685

A solution would be to run the following via github workflow periodically:

find /tmp/ -name "yarn*" -type d -mtime +1 -exec rm -rf {} \; > /dev/null

yarnpkg/yarn#6685 (comment)

@brian-gates brian-gates self-assigned this Sep 15, 2022
@brian-gates brian-gates added bug Something isn't working continuous-deployment labels Sep 15, 2022
brian-gates added a commit that referenced this issue Sep 15, 2022
@brian-gates brian-gates mentioned this issue Sep 15, 2022
brian-gates added a commit that referenced this issue Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working continuous-deployment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant