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

Lock files accumulation after prolonged use of werf on host #6127

Open
1 task done
alexey-igrychev opened this issue May 24, 2024 · 0 comments
Open
1 task done

Lock files accumulation after prolonged use of werf on host #6127

alexey-igrychev opened this issue May 24, 2024 · 0 comments

Comments

@alexey-igrychev
Copy link
Member

Before proceeding

  • I didn't find a similar issue

Version

2.0.0

How to reproduce

Use werf on a runner for an extended period.

Result

After prolonged use of werf on a runner, lock files accumulate. Some are over a year old, and the situation is similar on other runners.

# ls /home/ubuntu/.werf/service/locks/ | wc -l
1715600

# df -ih
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/sdb         3.2M  2.8M  351K   90% /home/ubuntu

# ls -lah /tmp/werf-host-cleanup.log 
-rw-rw-r-- 1 ubuntu ubuntu 4.7K Apr  4 09:00 /tmp/werf-host-cleanup.log

Expected result

Automatic removal of old lock files and prevention of their accumulation.

Additional information

Workaround:

while pgrep "werf" > /dev/null; do sleep 1; done && rm -rf ~/.werf/service/locks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant