Skip to main content
Gadi Ben-Avi
Participating Frequently
Mar 15, 2023 5:54 AM UTC
Question

Installing curl

Hi,

I was asked to install curl to help diagnose a problem with another product. 

I installed miniconda, and that seems to be ok.

When I try to use miniconda to install curl, I get:

Collecting package metadata (repodata.json):   failed                           
                                                                                
CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

I don't have a support contract with Rocket Software.

What do I have to do?

Thanks

Gadi

    10 replies

    Mar 15, 2023 7:41 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi Gadi,

    You do not need a support contract with Rocket to download and install cURL.  Only you will not be able to get the latest binaries with the latest security fixes.  The error is stemming from the fact that you chose the conda channel server option that is reserved for customers on support contract.  I think if you re-read the install instructions more carefully you will see instructions describing the fact that there are two conda channel servers - one free for all, and one reserved for customers.  Now that you have chosen the wrong option you will I think need to edit your conda.config file to point to the free channel server hosted by anaconda.org.

    Best

    -Peter

    Gadi Ben-Avi
    Participating Frequently
    Mar 15, 2023 7:54 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi Peter,

    Thanks for your reply.

    I am trying the command:

    conda install -c https://conda.anaconda.org/zoss-appdev curl

    And I get:

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

    Could this be happening because a firewall is blocking my access?

    I'm waiting for the firewall admins to give access to conda.anaconda.org

    Gadi

    Tatiana Balaburkina
    Rocketeer
    Mar 15, 2023 7:58 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    That's true, if there is a firewall, it is almost certainly the root cause.

    Gadi Ben-Avi
    Participating Frequently
    Mar 15, 2023 9:30 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi all,

    The firewall people did their thing, and now I'm getting:

    (base) bash-5.1# conda install -c https://conda.anaconda.org/zoss-appdev curl   
    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftwar
    e.com/api/repo/zoss-appdev/zos-z/repodata.json>                                 
    Elapsed: 00:04.079479                                                           
                                                                                    
    Resources of type {resource_type} cannot be accessed by unauthenticated users.  

    What can I do to tell conda to only look at conda.anaconda.org?

    Gadi

    Alexander Klochkov
    Rocketeer
    Mar 15, 2023 10:11 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi Gabi,

    Most likely you choose to use a private channel during the installation of the miniconda and you have condaserver.rocketsoftware.com in your .condarc now. To confirm that try conda config --show-sources command and delete the line with channel_alias from appropriate .condarc

    Thanks,
    Alexander

    Gadi Ben-Avi
    Participating Frequently
    Mar 15, 2023 10:24 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi All,

    Using conda config --show-sources showed me that I had two .condarc files, one in the conda root directory, and another in my home directory. 

    I deleted the one in my home directory.

    now, when I run the install command, I get:

    (base) bash-5.1# conda install -c https://conda.anaconda.org/zoss-appdev curl   
    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pk
    gs/main/zos-z/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.
                                                                                    
    If your current network has https://www.anaconda.com blocked, please file       
    a support request with your network engineering team.                           
                                                                                    
    'https//repo.anaconda.com/pkgs/main/zos-z'

    What is missing now?

    Gadi

    Alexander Klochkov
    Rocketeer
    Mar 15, 2023 10:45 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi,
    looks like repo.anaconda.com is blocked also by your firewall, it's the default anaconda repository. You can override channels in conda install command.

    conda install -c https://conda.anaconda.org/zoss-appdev curl --override-channels

    Gadi Ben-Avi
    Participating Frequently
    Mar 15, 2023 11:55 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    HI Alexander,

    When I issued the command:

    conda install -c https://conda.anaconda.org/zoss-appdev curl --override-channels

    I got:

    <a.anaconda.org/zoss-appdev curl --override-channels                            
    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel conda.anaconda.org/zos
    s-appdev <https://conda.anaconda.org/conda.anaconda.org/zoss-appdev>            
                                                                                    
    The channel is not accessible or is invalid.                                    
                                                                                    
    You will need to adjust your conda configuration to proceed.                    
    Use `conda config --show channels` to view your configuration's current state,  
    and use `conda config --show-sources` to view config file locations.

    I issued the command and got:

    (base) bash-5.1# conda config --show channels    
    channels:                                        
      - r                                            
      - defaults                                     
    (base) bash-5.1# conda config --show-sources     
    ==> /u/ptfs/rocket/bin/.condarc <==              
    channels:                                        
      - r                                            
      - defaults                                     
    show_channel_urls: True                          
                                                     
    (base) bash-5.1# conda config --get              
    --add channels 'defaults'   # lowest priority    
    --add channels 'r'   # highest priority          
    --set show_channel_urls True

    Gadi

    Alexander Klochkov
    Rocketeer
    Mar 15, 2023 12:25 PM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Are you sure about the correctness of the command which you are trying to run?
    I see "<a.anaconda.org/zoss-appdev curl --override-channels" as part of command and conda.anaconda.org/conda.anaconda.org in conda error output.

    so looks like you a trying to run something like

    conda install -c https://conda.anaconda.org/conda.anaconda.org/zoss-appdev curl --override-channels
    this is wrong channel, please use the command from my previous post. 

    Thanks,
    Alex

    Gadi Ben-Avi
    Participating Frequently
    Mar 16, 2023 2:09 AM UTC

    Hi,

    I was asked to install curl to help diagnose a problem with another product. 

    I installed miniconda, and that seems to be ok.

    When I try to use miniconda to install curl, I get:

    Collecting package metadata (repodata.json):   failed                           
                                                                                    
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss-appdev/zos-z/repodata.json>

    I don't have a support contract with Rocket Software.

    What do I have to do?

    Thanks

    Gadi

    Hi Alexander,

    I noticed that the problem was accessing https://conda.anaconda.org/conda.anaconda.org/zoss-appdev

    I issued this command conda install -c zoss-appdev curl --override-channels, and it worked and installed curl. 

    Thanks to everyone for your help

    Gadi