-
Notifications
You must be signed in to change notification settings - Fork 60
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
Validate that there is enough space to actually perform the mirror #19
Comments
Hello, With this change it worked, so to face my issue, it would be sufficient to make the temp folder configurable. But what is the point of the tmp folder, why is the download not directly written to the target folder? |
Great, I'll do that in the next week or so
I run In any event, the problem should be solved by adding a command line argument that will allow you to specify where the transient download directory should be. |
Thanks for the explanation, that makes sense |
@MWigger I'd also welcome a PR from you implementing this feature 😄 I'll get to it eventually, but it's not a priority for me at the moment |
Being a co-worker of @MWigger I have applied some changes to fix this issue. Find the implementation in my current pull request. It's based on adding a new parameter for specifying the temporary directory to be used, with having a suitable default set and using this setting as the dir parameter of tempfile.TemporaryDirectory to use the setting. Tests pass successfully and the implementation solves our current problem. |
There has been a user report of the following stack trace:
I'm pretty sure that this is because there is not enough space in the
/tmp
directory on the host machine where this command was being run.One way to fix this would be to compute the space required to perform the mirror for all packages that are in the
to_mirror
set by using the bytes stored in thesize
key inrepodata[pkg_name]['size']
. Would need to check that there is enough space in the temp directory located atdownload_dir
and the final location for these packages at 'local_directory'.The text was updated successfully, but these errors were encountered: