Skip to main content
New Participant
Jun 7, 2021 12:46 PM UTC

401 Unauthorized

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
------------------------------

    9 replies

    Vladimir Ein
    Rocketeer
    Jun 7, 2021 3:51 PM UTC
    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
    ------------------------------
    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
    ------------------------------
    New Participant
    Jun 7, 2021 3:57 PM UTC
    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
    ------------------------------
    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
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jun 16, 2021 4:23 PM UTC
    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
    ------------------------------
    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
    ------------------------------
    Alexander Klochkov
    Rocketeer
    Jun 17, 2021 3:35 AM UTC
    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
    ------------------------------
    Hi Lionel,

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

    Thanks,
    Alexander

    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jun 17, 2021 7:09 AM UTC
    Hi Lionel,

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

    Thanks,
    Alexander

    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------
    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
    ------------------------------
    Alexander Klochkov
    Rocketeer
    Jun 23, 2021 7:00 AM UTC
    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
    ------------------------------
    Hi Lionel,

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

    Thanks,
    Alexander

    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------
    New Participant
    Aug 30, 2021 11:20 AM UTC
    Hi Lionel,

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

    Thanks,
    Alexander

    ------------------------------
    Alexander Klochkov
    Rocket Software
    ------------------------------
    (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
    ------------------------------
    Vladimir Ein
    Rocketeer
    Aug 31, 2021 3:04 AM UTC
    (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
    ------------------------------
    Hi Jeff,

    I've replied in your other thread.

    Regards,
    Vladimir

    ------------------------------
    Vladimir Ein
    Rocket Internal - All Brands
    ------------------------------
    New Participant
    Sep 3, 2021 1:47 PM UTC
    Hi Jeff,

    I've replied in your other thread.

    Regards,
    Vladimir

    ------------------------------
    Vladimir Ein
    Rocket Internal - All Brands
    ------------------------------
    Thanks Vladimir.

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