question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

logout asks for user to login to complete action

See original GitHub issue

This is taken from a user on the anaconda mailing list. He’s seeing some pretty weird behavior.

(root)$ anaconda --version
anaconda Command line client (version 1.1.2)

(root)$ anaconda login
Using anaconda-server api site https://api.anaconda.org
Username: drf5n
drf5n's Password: 
[WARNING] It appears you are already logged in from host v21837.local
[WARNING] Logging in again will remove the previous token.  (This could cause troubles with virtual machines with the same hostname)
[WARNING] Otherwise you can login again and specify a different hostname with "--hostname"
Would you like to continue [Y|n]: y
drf5n's login successful

(root)$ anaconda whoami
Using anaconda-server api site https://api.anaconda.org
Anonymous User

(root)$ anaconda logout
Using anaconda-server api site https://api.anaconda.org
The action you are performing requires authentication, please sign in:
Using anaconda-server api site https://api.anaconda.org
Username: drf5n
drf5n's Password: 
[WARNING] It appears you are already logged in from host v21837.local
[WARNING] Logging in again will remove the previous token.  (This could cause troubles with virtual machines with the same hostname)
[WARNING] Otherwise you can login again and specify a different hostname with "--hostname"
Would you like to continue [Y|n]: y
drf5n's login successful
Using anaconda-server api site https://api.anaconda.org
[Unauthorized] (u'This domain requires token authentication', 401)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
srossrosscommented, Nov 11, 2015

@PeterDSteinberg to reproduce, can you try to log in and then remove the token from the gui /settings/access -> details -> Revoke Token.

Then try running the anaconda logout command.

0reactions
drf5ncommented, Dec 16, 2015

@dsludwig – I only had ‘–add-channels default’ listed, with no other channels or tokens listed.

$ conda config --get channels
--add channels 'defaults'
$ 

@srossross – Latest release of what? ‘conda update conda’ didn’t fix it. A ‘conda update anaconda’ appears to allow me to logout without asking for me to login again. But even with an updated conda and anaconda, login doesn’t appear to recognize that I’m logged in properly:

$ 
$ conda --version
conda 3.18.9
$ anaconda --version
anaconda Command line client (version 1.2.1)
$ python --version
Python 2.7.11 :: Anaconda 2.4.1 (x86_64)
$ anaconda logout
Using Anaconda Cloud api site https://api.anaconda.org
logout successful
$ anaconda login
Using Anaconda Cloud api site https://api.anaconda.org
Username: drf5n
drf5n's Password: 
[WARNING] It appears you are already logged in from host v21837.local
[WARNING] Logging in again will remove the previous token.  (This could cause troubles with virtual machines with the same hostname)
[WARNING] Otherwise you can login again and specify a different hostname with "--hostname"
Would you like to continue [Y|n]: y
drf5n's login successful
$ anaconda whoami
Using Anaconda Cloud api site https://api.anaconda.org
Anonymous User
$ 

I also still get the same series of errors if I try ‘conda create -n test_r -c r r-essentials’ as above. If I let the error loop run for a while it eventually faults out with a “RuntimeError: maximum recursion depth exceeded in cmp”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Login and Logout Actions - Perspective Component Actions
So, if you've designed your project in such a way that a user can have unauthenticated access, you may want to occasionally give...
Read more >
Login and logout actions not working - WordPress.org
The first thing to do to troubleshoot is therefore to confirm that the login and logout requests are actually fired at login/logout by...
Read more >
Check Login and Logout Issues - Auth0
Is the user trying to login to the second application from the same browser as their initial login? · Go to your Tenant...
Read more >
Solving the logout problem properly and elegantly - InfoWorld
The Web application displays a login page asking the user to enter a valid credential. She types in the userid and password.
Read more >
Login and Logout - Introduction
The Login and Logout actions can be used to log users in and out. Login. The Login action requests the OpenID provider's authorization...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found