awscli-login icon indicating copy to clipboard operation
awscli-login copied to clipboard

Daemon loses sync when machine sleeps

Open ckuehn-uiuc opened this issue 6 years ago • 5 comments

When my PC wakes from sleep mode, I find that awscli_login believes I'm still logged in even though my credentials have expired.

Symptoms:

  1. Daemon is running (according to ps)
  2. AWS rejects API calls: "An error occurred (ExpiredToken) when calling the ListBuckets operation: The provided token has expired."
  3. aws login reports "Already logged in!"

Workaround: aws logout; aws login

ckuehn-uiuc avatar Jun 15 '18 14:06 ckuehn-uiuc

#76 has additional diagnostic logs that are likely related.

edthedev avatar Mar 02 '21 22:03 edthedev

#88 May help us with investigating this in the future.

And @ddriddle's comment here might be an important part of this: https://github.com/techservicesillinois/awscli-login/issues/23#issuecomment-777193220

edthedev avatar Jul 07 '21 14:07 edthedev

Pushed the wrong 'comment' button.

edthedev avatar Jul 07 '21 14:07 edthedev

For whatever it's worth, my failures to renew have been while I was continuously working on the Mac – i.e., the computer never went to sleep. This sort of defies logic. :-)

JonRoma avatar Jul 08 '21 02:07 JonRoma

Per recent discussion, work in the AWS API V2 support milestone might allow us to revisit this. Can't promise a solution right now, but we're still thinking about this one.

edthedev avatar Dec 09 '21 20:12 edthedev

@ckuehn-uiuc The daemon will be retired with the next release, to allow AWS CLI V2 support. Refresh will still be supported, and won't require the daemon. See #106 for details.

edthedev avatar Oct 26 '22 18:10 edthedev