gcloud app deploy crash

1,193 views
Skip to first unread message

Rajesh Biswal

unread,
Feb 11, 2022, 3:36:53 PM2/11/22
to Google Cloud Developers
I am new to gcloud.
Today I was trying to deploy the app and it is giving error (It was fine till yesterday).
Following is the error:

> gcloud app deploy
ERROR: gcloud crashed (TransportError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))

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
 

Horace (Cloud Platform Support)

unread,
Feb 11, 2022, 6:04:05 PM2/11/22
to Google Cloud Developers

Hello

To better understand the issue could you please provide the following information:

  1. Are you using SDK on your local machine to deploy the app? Are you able to deploy the app through Cloud Shell instead?

  2. Try running gcloud info --run-diagnostics from your machine, it could be that you have some proxy setup that is causing connectivity problems. Or the error could be transient in nature.

  3. Were there any changes from the previous version of your app?

  4. Could you please try to run the command you are using to deploy but this time add the --verbosity [1] flag and share the output please? This will help us to see why this is failing.  

Regards

[1] https://cloud.google.com/sdk/gcloud/reference#--verbosity

Horace (Cloud Platform Support)

unread,
Feb 11, 2022, 6:33:03 PM2/11/22
to Google Cloud Developers
Hello,

It looks like this is a known issue [1] with Cloud Networking and App Engine. Kindly try later.

We apologize for the inconvenience. 

Regards

Rajesh Biswal

unread,
Feb 13, 2022, 1:26:02 PM2/13/22
to Google Cloud Developers
Thank you for your quick response.
The current status of the known issue [1] is shown as resolved. However I am still facing the issue.

Output of Diagnostics
> gcloud info --run-diagnostics
Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.
Reachability Check passed.
Network diagnostic passed (1/1 checks passed).

Property diagnostic detects issues that may be caused by properties.
Checking hidden properties...done.
Hidden Property Check passed.
Property diagnostic passed (1/1 checks passed).

Output from running deploy command in verbosity (level = debug) mode
> gcloud app deploy --verbosity=debug
DEBUG: Running [gcloud.app.deploy] with arguments: [--verbosity: "debug"]
DEBUG: Making request: POST https://oauth2.googleapis.com/token
DEBUG: Starting new HTTPS connection (1): oauth2.googleapis.com:443
DEBUG: Making request: POST https://oauth2.googleapis.com/token
DEBUG: Starting new HTTPS connection (2): oauth2.googleapis.com:443
DEBUG: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))
Traceback (most recent call last):
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\contrib\pyopenssl.py", line 488, in wrap_socket
    cnx.do_handshake()
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\OpenSSL\SSL.py", line 1894, in do_handshake
    self._raise_ssl_error(self._ssl, result)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\OpenSSL\SSL.py", line 1624, in _raise_ssl_error
    raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (10054, 'WSAECONNRESET')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 670, in urlopen    
    httplib_response = self._make_request(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 976, in _validate_conn
    conn.connect()
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\connection.py", line 361, in connect
    self.sock = ssl_wrap_socket(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\util\ssl_.py", line 382, in ssl_wrap_socket  
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\contrib\pyopenssl.py", line 494, in wrap_socket
    raise ssl.SSLError("bad handshake: %r" % e)
ssl.SSLError: ("bad handshake: SysCallError(10054, 'WSAECONNRESET')",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 724, in urlopen    
    retries = retries.increment(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\urllib3\util\retry.py", line 439, in increment      
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\google\auth\transport\requests.py", line 183, in __call__
    response = self.session.request(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\transport.py", line 251, in WrappedRequest  
    response = orig_request(*modified_args, **modified_kwargs)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\requests.py", line 216, in WrappedRequest    
    return orig_request_method(*args, **kwargs)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\requests\sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\requests\sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\requests\adapters.py", line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 987, in Execute
    resources = calliope_command.Run(cli=self, args=args)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 809, in Run
    resources = command_instance.Run(args)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\surface\app\deploy.py", line 116, in Run
    api_client = appengine_api_client.GetApiClientForTrack(self.ReleaseTrack())
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\app\appengine_api_client.py", line 58, in
GetApiClientForTrack
    return AppengineApiClient.GetApiClient(api_version)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\app\api\appengine_api_client_base.py", line 64, in GetApiClient
    return cls(core_apis.GetClientInstance('appengine', api_version))
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\util\apis.py", line 244, in GetClientInstance
    return apis_internal._GetClientInstance(api_name, api_version, no_http, None,
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\util\apis_internal.py", line 168, in _GetClientInstance
    http_client = transports.GetApitoolsTransport(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\transports.py", line 91, in GetApitoolsTransport
    return http.Http(timeout=timeout,
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\http.py", line 77, in Http      
    http_client = request_wrapper.WrapQuota(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\http.py", line 126, in WrapQuota
    quota_project = self.QuotaProject(enable_resource_quota,
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\transport.py", line 55, in QuotaProject
    creds = store.LoadIfEnabled(allow_account_impersonation, use_google_auth)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 455, in LoadIfEnabled
    return Load(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 560, in Load    
    cred = _Load(account, scopes, prevent_refresh, use_google_auth)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 713, in _Load    
    RefreshIfAlmostExpire(cred)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 927, in RefreshIfAlmostExpire
    RefreshIfExpireWithinWindow(credentials, window=_CREDENTIALS_EXPIRY_WINDOW)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 923, in RefreshIfExpireWithinWindow
    Refresh(credentials)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 757, in Refresh  
    _RefreshGoogleAuth(credentials, http_client, is_impersonated_credential,
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 867, in _RefreshGoogleAuth
    credentials.refresh(request_client)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\creds.py", line 553, in _WrappedRefresh
    orig_refresh(request)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\google_auth_credentials.py", line 102, in refresh
    return self._Refresh(request)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\google_auth_credentials.py", line 129, in _Refresh
    access_token, refresh_token, expiry, grant_response = _RefreshGrant(
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\google_auth_credentials.py", line 206, in _RefreshGrant
    response_data = _TokenEndpointRequestWithRetry(request, token_uri, body)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\util\retry.py", line 312, in DecoratedFunction
    exceptions.reraise(to_reraise[1], tb=to_reraise[2])
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\exceptions.py", line 146, in reraise
    six.reraise(type(exc_value), exc_value, tb)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\six\__init__.py", line 693, in reraise
    raise value
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\util\retry.py", line 182, in TryFunc
    return func(*args, **kwargs), None
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\google_auth_credentials.py", line 262, in _TokenEndpointRequestWithRetry
    response = request(method='POST', url=token_uri, headers=headers, body=body)
  File "D:\Users\rbiswal\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\google\auth\transport\requests.py", line 189, in __call__
    six.raise_from(new_exc, caught_exc)
  File "<string>", line 3, in raise_from
google.auth.exceptions.TransportError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))

ERROR: gcloud crashed (TransportError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))

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

Rajesh Biswal

unread,
Feb 13, 2022, 4:02:22 PM2/13/22
to Google Cloud Developers
It started working now.
Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-dev/a6ff16ff-c2c7-4bb1-af9a-26a91f9dff66n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages