Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams
  • Google Cloud SDK installer is downloaded successfully.

  • After successful installation, it runs gcloud init command

  • It asked for sign-in

  • After providing signing in details, the following error occurs

    ERROR: gcloud crashed (ConnectionError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000016A45426A08>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

    How to handle this error?

    I was trying gcloud init on a remote desktop, and received this error: gcloud crashed (ConnectionError)

    The following solution worked for me.

    I used the command gcloud init --console-only instead of gcloud init

    SSL verification fails mostly if you are behind proxy. You can disable ssl auth for gcloud client using below cmd:

    gcloud config set auth/disable_ssl_validation True
            

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.

  •