audeering / audfactory

Communicating with Artifactory
https://audeering.github.io/audfactory/
Other
0 stars 0 forks source link

Stuck in download loop #29

Closed frankenjoe closed 2 years ago

frankenjoe commented 2 years ago

When I try to download a specific file from our Artifactory server on my local computer, I get stuck in the following loop:

image

Basically, it reads 0 bytes from the file, which is an indication that there are no more bytes left to read, but the condition src_size > dst_size is still True.

src_size is:

>>> src_size / 1024 / 1024 / 1024
1.0912588462233543

but dst_size only:

>>> dst_size / 1024 / 1024 / 1024
1.0105332834646106

On disk the file has 1.1 GB (1,085,050,880 bytes) and on Artifactory it says:

image

I have the following versions installed:

frankenjoe commented 2 years ago

It seems to be a problem with Artifactory. Downloading the file with the browser also fails...

hagenw commented 2 years ago

Can you try to download it with artifactory.rest_get_stream(), compare https://github.com/devopshq/artifactory/blob/master/artifactory.py#L753-L766

But it seems indeed related to Artifactory if you can also not download from the browser.

frankenjoe commented 2 years ago

Can you try to download it with artifactory.rest_get_stream(), compare https://github.com/devopshq/artifactory/blob/master/artifactory.py#L753-L766

Do you have some sample code how to use this function? Having a hard to figure out and can't find any documentation.

hagenw commented 2 years ago

This was caused by having a size limit on cache file for downloading on a slow connection, compare https://www.jfrog.com/jira/browse/RTFACT-16743

We increased the allowed caching size on the server, can you try to download again and check if it is working now?

frankenjoe commented 2 years ago

We increased the allowed caching size on the server, can you try to download again and check if it is working now?

Great, this solved the issue.