Open hagenw opened 1 month ago
@ChristianGeng any idea how we could track down what is wrong with the settings of the public Artifactory server, or if we need to change how we connect to it in order to avoid the error?
In general, it seems to me that we should try to get another solution for hosting public datasets.
When re-running the same code, but using audb==1.6.5
and audbackend==1.0.2
, the download does succeed.
But it also takes 30 minutes, instead of 10 minutes.
So the problem seems related to the changes we introduced in https://github.com/audeering/audbackend/pull/222, where we use a requests.Session
object to authenticate only once.
When re-running the same code, but using
audb==1.6.5
andaudbackend==1.0.2
, the download does succeed. But it also takes 30 minutes, instead of 10 minutes. So the problem seems related to the changes we introduced in audeering/audbackend#222, where we use arequests.Session
object to authenticate only once.
Could it be an async thingy - with _close
getting callled too early? requests.Session()
is used with a context manager, and could it also be that the context manager insists on closing itself?
I have no clue, the only thing I can report is that those problems do not happen with our internal Artifactory server. So it must be a mixture of the changes introduced to audbackend
2.0.0, e.g. requests.Session()
, _close()
, and how the Artifactory server at jfrog.io is configured.
This was first reported in https://github.com/audeering/audb/issues/389#issuecomment-2109056287
When downloading a dataset with anonymous access to Artifactory, the download fails after some time:
When running the same download using my credentials for authentication with Artifactory the download fails after the same time, but with a different error message:
When downloading the same or a larger dataset from our internal Artifactory server, the download does not fail.
When restarting a failed download it will pick up, where it left and will finish the download, also using several workers will work in that case.