-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
aptly 1.0.0 doesn't remove /tmp files after publish finished #543
Comments
@demasiadovivo any additional details? what kind of publishing are you using? local, S3, Swift? are these only folders left behind or some contents as well? |
Hi @smira, I'm using local publish, and after reading your question I realized that I didn't tell I'm using publish update: Leaved /tmp folders have several files on them: /tmp/aptly722240269: /tmp/aptly978672292: I'm counting two or more folders created on each execution. Repositories are big, since they include Ubuntu mirrors. |
thanks, looks like it's leftover from Contents generation, I'm going to take a look into it |
@demasiadovivo If testing succeeds, I'm going to build 1.0.1 version with this fix Thanks for the bug report! |
@smira thank you for the quick response and fix! I've tested on a qa environment with a smaller repo and had these results:
I found that the same happens if I interrupt a mirror update, when executing something like "aptly mirror update xenial". I think the general case is solved, but would be great if a catch for interrupts like SIGTERM is added, so if a mirror update or publish fails for some reason, the tmp folders are removed. Thank you again. |
Thanks for the testing, I'll get 1.0.1 released today with just this fix on top of 1.0.0 For the general case, I agree that aptly should cleanup after itself on signals, I will put that as separate issue for the next release, as that plays well with Go 1.7+ |
When running aptly publish repo, it generates folders on /tmp in the form /tmp/aptlyNNNNNN and they're not removed after finishing process.
Detailed Description
After upgrading aptly from 0.9.6 to 1.0.0 I've found that a lot of folders /tmp/aptlyNNNNN are created and never removed. Since we have a pretty heavy usage of our repositories, the created folders end up filling the disk.
Possible Implementation
Remove /tmp/aptly folders after publish ends.
Your Environment
Ubuntu 14.04.
The text was updated successfully, but these errors were encountered: