Skip to main content
Participating Frequently
Dec 10, 2020 12:47 PM UTC

ROCKET PUBLIC CONDA CHANNEL - HTTP 000

Firstly great idea and impressive suite of tools .

I just installed miniconda and was testing it purely for personal self study for now,  but Im having issues getting to the public Conda Server

The documentation says to use this channel for public Conda server

Rocket public conda channel for z/OS open source

The channel https://anaconda.org/zoss-appdev has been set up and is maintained by Rocket and is open and available to anyone.

 

I removed defaults and other repos from condarc

/.condarc

*****************************************

channels:

  - https://anaconda.org/zoss-appdev

 

/usr/rocketsw/miniconda/.condarc

********************************************

add_pip_as_python_dependency: False

 

conda info

channel URLs : https://anaconda.org/zoss-appdev/zos-z

               https://anaconda.org/zoss-appdev/noarch

 

conda search git

Loading channels: failed

      CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://anaconda.org/zoss-appdev/noarch/repodata.json>

Elapsed: -

      An HTTP error occurred when trying to retrieve this URL.

HTTP errors are often intermittent, and a simple retry will get you on your way.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\\'anaconda.org\\', port=443): Max retries exceeded with url: /zoss-appdev/noarch/rep

odata.json (Caused by SSLError(SSLError("bad handshake: Error([(\\'SSL routines\\', \\'ssl3_get_server_certificate\\', \\'certificate ver

ify failed\\')])")))'))

thanks 
Mike 



------------------------------
Michael Hurley
DELL EMC
------------------------------

    15 replies

    Participating Frequently
    Jan 4, 2021 11:53 AM UTC

    Hi Michael,

    1. remove following line from  /usr/lpp/miniconda/miniconda/.condarc

    channel_alias: http://conda.anaconda.org

    2. remove the following lines from  /.condarc

    default_channels:
    - http://repo.anaconda.com/pkgs/main
    - http://repo.anaconda.com/pkgs/free
    - http://repo.anaconda.com/pkgs/r
    - http://repo.anaconda.com/pkgs/pro

    3. conda activate isn't work because of the missed step of miniconda configuration: make sure you have ". <miniconda_installation_path>/etc/profile.d/conda.sh" in .bashrc or .profile, check zOS Miniconda Documentation 1.2.pdf for details, also don't forget to restart ssh or omvs session after .bashrc or .profile modifications

    4. Also is link "https://conda.anaconda.org/zoss-appdev/noarch/repodata.json" reachable from your corporate network? just try it in the browser or curl

    Thanks,

    Alex



    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------
    Alex all those changes were made in previous attempts and multiple installs have been run following the Pdf steps.
    At this stage Im just retrying things I have done before . 
    Yes the link works https://conda.anaconda.org/zoss-appdev/noarch/repodata.json .




    ------------------------------
    Michael Hurley
    DELL EMC
    ------------------------------
    Tatiana Balaburkina
    Rocketeer
    Jan 5, 2021 8:03 AM UTC
    Alex all those changes were made in previous attempts and multiple installs have been run following the Pdf steps.
    At this stage Im just retrying things I have done before . 
    Yes the link works https://conda.anaconda.org/zoss-appdev/noarch/repodata.json .




    ------------------------------
    Michael Hurley
    DELL EMC
    ------------------------------
    Michael,
    We recommend to contact your system administrator to clarify the network settings. It seems there is a proxy, which blocks access to internet from z/OS. If so, you need to adjust your config file.

    ------------------------------
    Tatiana Balaburkina
    Rocket Software
    ------------------------------
    Tatiana Balaburkina
    Rocketeer
    Mar 15, 2021 2:33 PM UTC
    Michael,
    We recommend to contact your system administrator to clarify the network settings. It seems there is a proxy, which blocks access to internet from z/OS. If so, you need to adjust your config file.

    ------------------------------
    Tatiana Balaburkina
    Rocket Software
    ------------------------------
    Hi Michael,

    I am sorry to hear that your issue was not resolved. You didn't respond to our last message and we assumed that you were able to resolve the issue.

    If you take a look at the output of command "openssl s_client -connect conda.anaconda.org:443", you will notice self-signed certificates, which shouldn't be there. You can also check status: "Verify return code: 19 (self signed certificate in certificate chain)", but it should be "Verify return code: 0 (ok)". That leads to the conda error. 

    Let's try the following:
    1. Run "conda activate".
    2. Make sure that your base environment is active: "conda info | grep active". The output should contain the line "active environment : base".
    3. Check environment variables: "env | grep SSL". You should see the following variables in the output:
    SSL_CERT_FILE=/usr/lpp/miniconda/miniconda/ssl/cert.pem
    SSL_CERT_DIR=/usr/lpp/miniconda/miniconda/ssl/certs
    OPENSSL_CONF=/usr/lpp/miniconda/miniconda/ssl/openssl.cnf
    4. If everything was fine on the previous steps, try "conda search g".


    ------------------------------
    Tatiana Balaburkina
    Rocket Software
    ------------------------------
    Participating Frequently
    Mar 15, 2021 3:18 PM UTC
    Hi Michael,

    I am sorry to hear that your issue was not resolved. You didn't respond to our last message and we assumed that you were able to resolve the issue.

    If you take a look at the output of command "openssl s_client -connect conda.anaconda.org:443", you will notice self-signed certificates, which shouldn't be there. You can also check status: "Verify return code: 19 (self signed certificate in certificate chain)", but it should be "Verify return code: 0 (ok)". That leads to the conda error. 

    Let's try the following:
    1. Run "conda activate".
    2. Make sure that your base environment is active: "conda info | grep active". The output should contain the line "active environment : base".
    3. Check environment variables: "env | grep SSL". You should see the following variables in the output:
    SSL_CERT_FILE=/usr/lpp/miniconda/miniconda/ssl/cert.pem
    SSL_CERT_DIR=/usr/lpp/miniconda/miniconda/ssl/certs
    OPENSSL_CONF=/usr/lpp/miniconda/miniconda/ssl/openssl.cnf
    4. If everything was fine on the previous steps, try "conda search g".


    ------------------------------
    Tatiana Balaburkina
    Rocket Software
    ------------------------------
    It was a test environment, I already spent alot of time trying all you other suggestions, none of which worked. 
    I dont have time to devote to this anymore.

    thanks
    Mike 


    ------------------------------
    Michael Hurley
    DELL EMC
    ------------------------------
    New Participant
    Mar 26, 2021 5:13 PM UTC
    It was a test environment, I already spent alot of time trying all you other suggestions, none of which worked. 
    I dont have time to devote to this anymore.

    thanks
    Mike 


    ------------------------------
    Michael Hurley
    DELL EMC
    ------------------------------
    Hi, 

    I had the same issue where no matter what I did, I would get the following error:

    OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]

    Initially I specified ssl_verify: False in /usr/lpp/<miniconda_install>/.condarc. That didn't work. (Not recommend by the way, only for testing purposes.)

    Then I found this post on github, from user "ibelieveai". 

    Long story short, I put the following in my .profile:

    export REQUESTS_CA_BUNDLE=/u/your_user_id/cacert.pem

    Re-logged back into SSH, and it worked fine. It seems that conda requires that PEM file even if you have SSL validation turned off. 

    My particular cacert.pem had my companies CA in it, so I could actually use SSL validation. 

    If you don't have a corporate proxy, or have SSL validation turned off, you can use /usr/lpp/<miniconda_install>/ssl/cacert.pem


    Hope this helps.

    Chris Gulledge



    ------------------------------
    Chris Gulledge
    Systems Programmer
    First Horizon
    ------------------------------