英文:
(gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]
问题
当我尝试使用 gdloud auth login
登录时,出现以下错误:
ERROR: (gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]: The provided path must exist.
我不确定问题是什么,因为几个小时前它还能正常工作。
我尝试搜索这个问题,但无法找到与确切错误相关的信息。
更新:
我删除了 gcloud 并安装了一个新的。现在 gcloud auth login
重定向我到浏览器,我能够在浏览器中成功验证。然而,在我的终端中,我收到以下错误:
ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem
英文:
When I try to log in with gdloud auth login
I get this error:
ERROR: (gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]: The provided path must exist.
I am not sure what is the problem as it was working a few hours ago.
I tried to google the issue but I cannot find anything on the exact error.
UPDATE:
I deleted gcloud and installed a new one.
Now gcloud auth login
redirects me to my browser and I am able to successfully authenticate in the browser. However, in my terminal I get this error:
ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem
答案1
得分: 2
如在我的更新中提到的,我重新安装了gcloud,但在尝试使用gcloud auth login
登录时遇到了一个新错误:
ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem
我在Mac上尝试了以下操作:
(security find-certificate -a -p ls /System/Library/Keychains/SystemRootCertificates.keychain && security find-certificate -a -p ls /Library/Keychains/System.keychain) > $HOME/.mac-ca-roots
然后,我在我的.zshrc文件中添加了export REQUESTS_CA_BUNDLE="$HOME/.mac-ca-roots"
,并重新启动了终端。
现在一切正常运行。
英文:
As mentioned in my update I reinstalled gcloud but was facing a new error when trying to login with gcloud auth login
:
ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem
I am on Mac so I tried:
(security find-certificate -a -p ls /System/Library/Keychains/SystemRootCertificates.keychain && security find-certificate -a -p ls /Library/Keychains/System.keychain) > $HOME/.mac-ca-roots
I added export REQUESTS_CA_BUNDLE="$HOME/.mac-ca-roots"
to my .zshrc file and restarted terminal.
It is working fine now.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论