Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 244
Annie C Avatar asked Jun 21 '14 21:06

Annie C


People also ask

Which of the following command helps to create an App Engine app within the current Google Cloud project?

You can use gcloud app deploy command to deploy both code and configuration to the App Engine server.

How do I stop App Engine?

Go into App Engine, Versions, and then click on STOP.


1 Answers

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.

like image 138
topless Avatar answered Nov 25 '22 15:11

topless