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
You can use gcloud app deploy command to deploy both code and configuration to the App Engine server.
Go into App Engine, Versions, and then click on STOP.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With