Open-source Languages & Tools for z/OS

Expand all | Collapse all

401 Unauthorized

Jump to Best Answer
  • 1.  401 Unauthorized

    Posted 14 days ago
    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 14 days ago
    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 14 days ago
    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 5 days ago
    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 5 days ago
    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 4 days ago
    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
    ------------------------------