Skip to main content

401 Unauthorized

  • June 7, 2021
  • 9 replies
  • 0 views

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
Forum|alt.badge.img+1
  • Rocketeer
  • 110 replies
  • June 7, 2021
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
------------------------------

  • Author
  • New Participant
  • 1 reply
  • June 7, 2021
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
Forum|alt.badge.img
  • Participating Frequently
  • 72 replies
  • June 16, 2021
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
Forum|alt.badge.img+1
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
Forum|alt.badge.img
  • Participating Frequently
  • 72 replies
  • June 17, 2021
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
Forum|alt.badge.img+1
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
  • 2 replies
  • August 30, 2021
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
Forum|alt.badge.img+1
  • Rocketeer
  • 110 replies
  • August 31, 2021
(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
  • 2 replies
  • September 3, 2021
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
------------------------------