conan-center-index: [bug] Conan search returns timeout
To help us debug your issue please explain:
Hi!
As Conan Center is growing, the time requested to list all recipes is no longer enough:
conan search -r conan-center
ERROR: HTTPSConnectionPool(host='conan.bintray.com', port=443): Read timed out. (read timeout=60.0). [Remote: conan-center]
As you can see, 60 seconds is not enough to retrieve all information.
However, if I update the timeout request by CONAN_TIMEOUT_REQUEST, I can receive the answer:
CONAN_REQUEST_TIMEOUT=360 conan search -r conan-center
Existing package recipes:
7z_installer/1.0@conan/stable
Args/5.0.1.4@igormironchik/stable
...
Usingtime it took 1m39.
As Conan Center is the official repository, I think search should work without timeouts. So Or Bintray is slow, Or Conan needs to update its timeout limit.
Conan Version: 1.16.1
- I’ve read the CONTRIBUTING guide.
- I’ve specified the Conan version, operating system version and any tool that can be relevant.
- I’ve explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 29 (20 by maintainers)
Commits related to this issue
- Clamp Boost version - in hopes of avoiding CI job failures caused by slow JFrog REST API. - example failure: - job: https://github.com/johnmcfarlane/cnl/runs/4427931463?check_suite_focus=true#s... — committed to johnmcfarlane/cnl by johnmcfarlane 3 years ago
- Clamp Boost version - in hopes of avoiding CI job failures caused by slow JFrog REST API. - example failure: - job: https://github.com/johnmcfarlane/cnl/runs/4427931463?check_suite_focus=true#s... — committed to johnmcfarlane/cnl by johnmcfarlane 3 years ago
- Clamp Boost version - in hopes of avoiding CI job failures caused by slow JFrog REST API. - example failure: - job: https://github.com/johnmcfarlane/cnl/runs/4427931463?check_suite_focus=true#s... — committed to johnmcfarlane/cnl by johnmcfarlane 3 years ago
Unfortunately, search performance is becoming a significant bottleneck and often fails in my case. Sample error message:
The problem persists. Any solution insight?
Hi all,
yes, we are aware of this limitation. It is in our todo list, but as it is a complex thing that requires changes in the backend it will take some time. Thanks very much for your patience.
@uilianries I appreciate the feedback. Unfortunately the problem I am having is that I want to be able to specify version ranges within my conanfiles for different packages I am consuming. Since these dependencies are downloaded during my CMake run with cmake-conan (https://github.com/conan-io/cmake-conan) i don’t think there is any way to avoid this problem beacuse CMake will always be using the command line to fetch the dependencies.
For now I will have to just hard-code all of the version numbers to not be ranges, but I would prefer to be able to make my dependencies more flexible than that.
Also hit this issue.
It also happens if I have a range in
conanfile.txt:Output of
time conan search boost/* -r all:Moved to conan-center-index, as this is mostly about the ConanCenter, not the client side.
Discord? That’s cool, thanks for sharing! haha