I am experiencing errors with the interaction between conan search
and the Nexus conan repos. Is anyone having success where I am not?
Here is a list of my remotes:
(virtualenv) austin@Austin-PC-GM export % conan remote list
conan-dev-proxy: https://myrepo.net:8443/repository/conan-dev-proxy/ [Verify SSL: True]
conan-dev-hosted: https://myrepo.net:8443/repository/conan-dev-hosted/ [Verify SSL: True]
conan-center: https://conan.bintray.com [Verify SSL: True]
Searching the Nexus hosted repo produces a 404 error. I have verified simpleini is a package that exists in that repository. Clearing my users and “logging” into conan-dev-hosted with a known good user doesn’t change the result.
(virtualenv) austin@Austin-PC-GM export % conan search simpleini -r=conan-dev-hosted
ERROR: 404: Not Found. [Remote: conan-dev-hosted]
Searching the Nexus proxy repo produces a timeout error. The expected result should show the matching packages in the Nexus repository and(?) the matching packages in the proxied public server (https://conan.bintray.com, in this case). There is probably some discussion needed about what is returned, between the Nexus repo and public server.
(virtualenv) austin@Austin-PC-GM export % conan search openssl -r=conan-dev-proxy
ERROR: HTTPSConnectionPool(host='myrepo.net', port=8443): Max retries exceeded with url: /repository/conan-dev-proxy/v1/conans/search?q=openssl (Caused by ReadTimeoutError("HTTPSConnectionPool(host='myrepo.net', port=8443): Read timed out. (read timeout=60.0)"))
Unable to connect to conan-dev-proxy=https://myrepo.net:8443/repository/conan-dev-proxy/
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.
Here is a successful search of the public repository, labeled Conan-center in my remotes list.
(virtualenv) austin@Austin-PC-GM export % conan search openssl -r=conan-center
Existing package recipes:
openssl/1.0.2s
openssl/1.0.2t
openssl/1.0.2u
openssl/1.1.0k
openssl/1.1.0l
openssl/1.1.1c
openssl/1.1.1d
openssl/1.1.1e
openssl/1.1.1f
openssl/1.1.1g
I have tried conan versions 1.21.1 and 1.26, and our Nexus repository manager is OSS 3.22.1-02.
Most other commands work, including conan install
and conan upload
. We are also having trouble with conan remove
, but that’s a separate topic.
EDIT: Here is my Nexus repo configuration, to verify that it is correct: