gcloud crashed (SSLHandshakeError) in gcloud app deploy

google-cloud sdk sslhandshakeerror
uninstall gcloud
gcloud crashed servernotfounderror: unable to find the server at www googleapis com
pip uninstall google-cloud
gcloud deinstallieren
configure google cloud sdk
downloading google cloud sdk core stuck
remove gcp sdk

Unable to deploy my app as I started getting below error since today morning. I have tried gcloud info --run-diagnostics and gcloud components reinstall without much help.

I tried to deploy it using the old Google App Engine Launcher for Windows but faced the same error. Earlier it worked till yesterday night (IST) using gcloud. Please help!

I am on latest gcloud sdk and have updated all its components. I use Win10. I tried rebooting my laptop as well.

C:\gaurav\coding\python\myapp\myapp\dist>gcloud app deploy --project=myproject --version 1 --verbosity=info ./app.yaml
INFO: Refreshing access_token
ERROR: gcloud crashed (SSLHandshakeError): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

C:\gaurav\coding\python\myapp\myapp\dist>

Diagnostics Output.

C:\gaurav\coding\python\myapp\myapp\dist> gcloud info --run-diagnostics
Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.
ERROR: Reachability Check failed.
    Cannot reach https://accounts.google.com (SSLHandshakeError)
    Cannot reach https://cloudresourcemanager.googleapis.com/v1beta1/projects (SSLHandshakeError)
    Cannot reach https://www.googleapis.com/auth/cloud-platform (SSLHandshakeError)
Network connection problems may be due to proxy or firewall settings.


Do you have a network proxy you would like to set in gcloud (Y/n)?  n

ERROR: Network diagnostic (0/1 checks) failed.


C:\gaurav\coding\python\myapp\myapp\dist>

Although gcloud info --run-diagnostics complains that the three URLs are not reachable. I am able to open them from web browser.

I found that when using Fiddler (for viewing network traffic) and have decrypting https traffic enabled, then I received the SSLHandshakeError.

Stopping the tool (or choosing not to decrypt https traffic) and then running the gcloud resulted in success.


According to the comments, also a problem with other web debugging proxies such as Charles.

gcloud app ssl-certificates | Cloud SDK Documentation, deploy. Overview. configure. Overview · gke · gke · describe · list · log · submit. triggers. Overview. create. Overview · cloud-source-repositories  Tagged with googlecloudsdk, gcp, gcloud. If you find yourself behind a corporate proxy and need to disable SSL validation for google-cloud-sdk, here's the setting for it $ gcloud config set auth/disable_ssl_validation True

A problem in recent GAE and GCloud SDK versions is the presence of invalid SSH certificates, see, for example, Google App Engine SSL Certificate Error and issue 38338974.

You could try to use my suggested solution in the above-mentioned post and replace your SDK's certificate file with a valid one (will have to locate a good one for the gcloud SDK, my answer was for the GAE SDK).

You might also be able to use the gcloud config command to set the core custom_ca_certs_file configurable property to point to a file with up to date certificates, if you have one. I didn't try it, YMMV.

gcloud crashed (SSLHandshakeError) in gcloud app deploy, Unable to deploy my app as I started getting below error since today morning. I have tried gcloud info --run-diagnostics and gcloud components reinstall without​  Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Upgrading to Python 2.7.9 on MacOS High Sierra solved the issue for me.

gcloud crash on AE Standard deployment to internal google.com , gcloud crashed (SSLHandshakeError): [SSL: gcloud crash on AE Standard deployment to internal google.com app #3416. Closed. Groundbreaking solutions. Transformative know-how. Whether your business is early in its journey or well on its way to digital transformation, Google Cloud's solutions and technologies help chart a path to success.

I had the same issue, downloaded the root/intermediate cert from one of the google url you get when you run the command: gcloud info --run-diagnostics and append to the cacerts.txt file that is being used. In my case it was the following one: google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/cacerts.txt

gcloud error: Network connection problems may be due to proxy or , After installing the google-cloud-sdk in Ubuntu I ran gcloud into Cannot reach https://www.google.com (SSLHandshakeError) Cannot reach 304 content-type: application/json; charset=UTF-8 date: Thu, 18 Apr 2019  Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

I had this issue upon install of the google cloud SDK on MacOS Mojave. I am not behind a corporate proxy, and all the answers on the web seemed to indicate that this was the issue. I noticed in the install.sh script that it takes an environment variable CLOUDSDK_PYTHON for the python executable. So, I fixed this by exporting the path to my python 3 executable.

In my case: export CLOUDSDK_PYTHON=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6

The install worked as expected after this.

python-2.7, Проблема в последних версиях GAE и GCloud SDK заключается в наличии недействительных сертификатов SSH, см., Например, Google App Engine  Unless you have a reason for using a specific configuration ID, we recommend that you remove the config_id: [YOUR_CONFIG_ID] from app.yaml and rerun gcloud app deploy. config_id must be specified when rollout_strategy is unspecified or set to "fixed"

How to Fix SSL Certificate Errors on Google Cloud – One Page Zen, In both the Bitnami and Click-to-Deploy SSL certificate tutorials for WordPress, you are certbot-auto certonly --webroot -w /opt/bitnami/apps/wordpress/htdocs/ -d How To Remove Bitnami Corner Banner From WordPress on Google Cloud​  Groundbreaking solutions. Transformative know-how. Whether your business is early in its journey or well on its way to digital transformation, Google Cloud's solutions and technologies help chart a path to success.

C:\gaurav\coding\python\myapp\myapp\dist>gcloud app deploy app.yaml INFO​: Refreshing access_token ERROR: gcloud crashed (SSLHandshakeError):  If the exit code is 1, the container crashed because the application crashed. If the exit code is 0, verify for how long your app was running. Containers exit when your application's main process exits. If your app finishes execution very quickly, container might continue to restart. Connect to a running container. Open a shell to the Pod:

Messages your trainer application sends to stderr. Output text your trainer application sends to stdout. You can make troubleshooting errors in your trainer application easier by following good programming practices: Send meaningful messages to stderr (with logging for example). Raise the most logical and descriptive exception when something

Comments
  • Do you suggest that a proxy or something may be decrypting and re encrypting my packets using an additional certificate installed on my laptop ?
  • Possibly. Did you attempt @Dan Cornilescu's fix?
  • No. My laptop got replaced around the same time. And then I started using the Cloud Shell for deployment.
  • I had the same with Charles! Late night and I didn't catch it :) Thanks for the suggestion.
  • This worked for me in Ubuntu (Windows Subsystem for Linux), after adding the SSL interception certificate to the main certificate store: gcloud config set custom_ca_certs_file /etc/ssl/certs/ca-certificates.crt