I am in the process of trying out google sdk app engine. I could get the local app running on my laptop but having problems with the gcloud auth login.
我正在试用谷歌sdk app engine。我可以在我的笔记本电脑上运行本地应用程序,但在gcloud auth登录上有问题。
When I type the gcloud auth login command, a new browser window opens and after verifying my credentails, it says - You are now authenticated with the Google Cloud SDK!
当我输入gcloud auth登录命令时,一个新的浏览器窗口会打开,在验证我的credentails后,它会说-您现在已经通过谷歌云SDK进行了身份验证!
But, in the command line, where I typed the command, I get the following error -
但是,在命令行中,我键入命令时,会得到以下错误。
D:\appengine-try-java>gcloud auth login
Your browser has been opened to visit:
您的浏览器已开放访问:
https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhos
t%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.
googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.
admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fbigquery+https%3A%2F%2Fwww.googl
eapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdevstorage.
full_control+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2
F%2Fwww.googleapis.com%2Fauth%2Fndev.cloudman+https%3A%2F%2Fwww.googleapis.com%2
Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fsqlservice.admi
n+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fprediction+https%3A%2F%2Fwww.googlea
pis.com%2Fauth%2Fprojecthosting&access_type=offline
Traceback (most recent call last):
`enter code here`File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line
139, in <module>
main()
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line
135, in main
_cli.Execute()
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\__init__.py", l
ine 1615, in Execute
post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\__init__.py", l
ine 1166, in _Execute
pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\__init__.py", l
ine 885, in Run
result = command_instance.Run(args)
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\exceptions.py",
line 78, in TryFunc
return func(*args, **kwargs)
File "D:\google-cloud-sdk\lib\googlecloudsdk\gcloud\sdktools\auth\login.py", l
ine 61, in Run
creds = self.DoWebFlow(args.launch_browser)
File "D:\google-cloud-sdk\lib\googlecloudsdk\gcloud\sdktools\auth\login.py", l
ine 104, in DoWebFlow
return c_store.AcquireFromWebFlow(launch_browser=launch_browser)
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\core\credentials\store.p
y", line 324, in AcquireFromWebFlow
cred = flow.Run(webflow, launch_browser=launch_browser)
File "D:\google-cloud-sdk\bin\..\./lib\googlecloudsdk\core\credentials\flow.py
", line 156, in Run
credential = flow.step2_exchange(code, http=http)
File "D:\google-cloud-sdk\bin\..\./lib\oauth2client\util.py", line 132, in pos
itional_wrapper
Because of this, I am unable to deploy my application on the google cloud.
因此,我无法在谷歌云上部署应用程序。
After some search, I figured out it has got to do with the cacerts.txt file in D:\google-cloud-sdk\lib\httplib2. I replaced the cacerts.txt file from my colleague and it worked fine once but now I am getting the issue again.
经过一番搜寻,我发现这和仙人掌有关。txt文件在D:\ google-cloud-sdk \ lib \ httplib2。我除取代了。来自我同事的txt文件,它曾经运行良好,但现在我又遇到了这个问题。
Anypointers in resolving this will be really helpful
解决这个问题的任何指针都将非常有用
1 个解决方案
#1
1
Upgrading to Python 2.7.9 fixed this for me. I'm on a Mac though and I don't know your Python version, so YMMV.
升级到Python 2.7.9为我修复了这个问题。我用的是Mac,我不知道你的Python版本,所以是YMMV。
More details here:
更多细节在这里:
GAE SDK 1.7.4 and InvalidCertificateException
GAE SDK 1.7.4和invalidcertificate异常。
#1
1
Upgrading to Python 2.7.9 fixed this for me. I'm on a Mac though and I don't know your Python version, so YMMV.
升级到Python 2.7.9为我修复了这个问题。我用的是Mac,我不知道你的Python版本,所以是YMMV。
More details here:
更多细节在这里:
GAE SDK 1.7.4 and InvalidCertificateException
GAE SDK 1.7.4和invalidcertificate异常。