Annie C
Annie C

Reputation: 804

unable to deploy in google app engine launcher: googlecloudsdk.core.credentials.store.RefreshError: invalid_grant

I have been testing and deploying my application with no problem for 2 weeks. Yesterday, I got this error message after clicking the Deploy button. I have also tried to deploy by using command line (appcfg.py update applicationname), I got the same message. The application is running with no error from the GAE browser.

This is the last line of the log.

googlecloudsdk.core.credentials.store.RefreshError: invalid_grant

the complete message is here

Traceback (most recent call last):
  File "C:\google-cloud-sdk\bin\appcfg.py", line 32, in <module>
    bootstrapping.PrerunChecks()
  File "C:\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 436, in PrerunChecks
    CheckCredOrExit(can_be_gce=can_be_gce)
  File "C:\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 302, in CheckCredOrExit
    cred = c_store.Load()
  File "C:\google-cloud-sdk\bin\bootstrapping\..\..\lib\googlecloudsdk\core\credentials\store.py", line 205, in Load
    Refresh(cred)
  File "C:\google-cloud-sdk\bin\bootstrapping\..\..\lib\googlecloudsdk\core\credentials\store.py", line 229, in Refresh
    raise RefreshError(e)
googlecloudsdk.core.credentials.store.RefreshError: invalid_grant

Upvotes: 6

Views: 1050

Answers (1)

topless
topless

Reputation: 8221

If you type in your console gcloud auth login it will spawn manually the login process, click on the link to grant relevant permissions and after that you will be able to deploy.

You can also pass the parameter --no_cookies when you call deploy so you can force authentication every time.

Upvotes: 8

Related Questions