Google Cloud SDK install on OS X: (gcloud.components.list) Failed to fetch component listing from server

后端 未结 3 1084
陌清茗
陌清茗 2020-12-29 08:54

I\'m trying to install the Google Cloud SDK (https://cloud.google.com/sdk/docs/quickstart-mac-os-x) and get this error:
ERROR: (gcloud.components.list) Failed to f

3条回答
  •  悲&欢浪女
    2020-12-29 09:18

    After turning off ipv6 support, the tool works like a charm. Looks like gcloud can not work gracefully with ipv6...

    Disable ipv6:

    networksetup -setv6off Wi-Fi
    

    Enable ipv6:

    networksetup -setv6automatic Wi-Fi
    

    Note: While investigating this, I was also able to make it work by using a very long timeout — 120 seconds. This wouldn't be practical, though, for most use cases due to the long delays it would introduce for each command.

    The timeout is located in google-cloud-sdk/lib/googlecloudsdk/core/updater/installers.py at line 36 called TIMEOUT_IN_SEC

提交回复
热议问题