Open-source Languages & Tools for z/OS

 View Only
  • 1.  401 Unauthorized

    Posted 06-07-2021 13:00
    I believe I have miniconda installed correctly. I left the default config files, and I'm using the base environment.

    When I try to do a search on the free repo, I get the following:

    (base) bash-4.3# conda search p*

    Loading channels: failed

    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftware.com/api/repo/zoss

    Elapsed: 00:01.360496

    The remote server has indicated you are using invalid credentials for this channel.

    If the remote site is anaconda.org or follows the Anaconda Server API, you

    will need to

      (a) remove the invalid token from your system with `anaconda logout`, optionally

          followed by collecting a new token with `anaconda login`, or

      (b) provide conda with a valid token directly.

    Further configuration help can be found at <https://conda.io/docs/config.html>.



    ------------------------------
    Richard Smrcina
    Velocity Software
    ------------------------------


  • 2.  RE: 401 Unauthorized
    Best Answer

    ROCKETEER
    Posted 06-07-2021 15:51
    Hello Richard,

    I believe your Miniconda got configured to use Rocket's secure channel, which is only available to customers with a support contract. This usually happens when you answer 'yes' (or simply press Enter) to the corresponding question during setup. You can switch to the public channel by issuing the following command:

    conda config --set channel_alias https://conda.anaconda.org

    Hope this helps.

    Regards,
    Vladimir

    ------------------------------
    Vladimir Ein
    Rocket Software
    ------------------------------



  • 3.  RE: 401 Unauthorized

    Posted 06-07-2021 15:57
    Vladimir,

    That is entirely likely. I issued the command as you indicated, and now I can access the repository.

    Thank you!

    ------------------------------
    Richard Smrcina
    Velocity Software
    ------------------------------



  • 4.  RE: 401 Unauthorized

    Posted 06-16-2021 16:23
    I was forced to completely reinstall  conda (miniconda) and have this same problem but the solution did not resolve things for me.

    This is my .condarc file:

    add_pip_as_python_dependency: false
    Channels:
       - https://conda.anaconda.org/zoss-appdev
    channel_alias: https://conda.anaconda.org​

    When I do a conda config --show channels I get this:

    channels:     
      - defaults  ​


    ------------------------------
    LionelDyck <><
    https://github.com/zigi
    https://github.com/lbdyck
    ------------------------------



  • 5.  RE: 401 Unauthorized

    ROCKETEER
    Posted 06-17-2021 03:35
    Hi Lionel,

    You have capital C in the word "Channels" in your .condarc, it should be "channels"

    Thanks,
    Alexander

    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------



  • 6.  RE: 401 Unauthorized

    Posted 06-17-2021 07:09
    That was it - I had to run from memory (which was obviously faulty) as the miniconda installation did not setup the .condarc with a channels section.

    Is there any reason why miniconda installation can't setup the public channel is the user indicates during the install that they aren't using the paid for channel?

    ------------------------------
    LionelDyck <><
    https://github.com/zigi
    https://github.com/lbdyck
    ------------------------------



  • 7.  RE: 401 Unauthorized

    ROCKETEER
    Posted 06-23-2021 07:00
    Hi Lionel,

    Thanks for the suggestion - we'll take it into account

    Thanks,
    Alexander

    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------



  • 8.  RE: 401 Unauthorized

    Posted 08-30-2021 11:29
    Edited by Jeff Adams 08-30-2021 12:16
    (apologies-I was having trouble posting and ended up creating a new post after a few attempts.)
    Hi-
    I believe I have a support contract but still get the 
    CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://condaserver.rocketsoftwar
    e.com/api/repo/zoss-appdev/noarch/repodata.json>

    Can you point me to the doc explaining how I specify my credentials?
    Thanks!

    Jeff A

    ------------------------------
    Jeff Adams
    Systems Programmer
    Truist Bank
    Raleigh NC United States
    ------------------------------



  • 9.  RE: 401 Unauthorized

    ROCKETEER
    Posted 08-31-2021 03:04
    Hi Jeff,

    I've replied in your other thread.

    Regards,
    Vladimir

    ------------------------------
    Vladimir Ein
    Rocket Internal - All Brands
    ------------------------------



  • 10.  RE: 401 Unauthorized

    Posted 09-03-2021 13:47
    Thanks Vladimir.

    ------------------------------
    Jeff Adams
    Systems Programmer
    Truist Bank
    Wilson NC United States
    ------------------------------