> For the complete documentation index, see [llms.txt](https://i.janardhanpulivarthi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://i.janardhanpulivarthi.com/season-1/gcloud-commands-hang.md).

# gcloud commands hang

Dated: 11th March, 2021

Context: <https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster>

```bash
gcloud container hub memberships register $REMOTE_CLUSTER_NAME \
>  --context=$REMOTE_CLUSTER_NAME \
>  --service-account-key-file=$GKE_SA_CREDS \
>  --project=$PROJECT
```

This command did hang. I tried to `REGISTER` via UI.

![](/files/-MVW8KLzyB1vjtz_AkxZ)

![](/files/-MVWAp3FhF2w1Lud35TO)

Checklist

* [x] `gkeconnect.googleapis.com` is enabled
* [x] Tried via UI
* [x] Tried via cloud shell

Troubleshoot

.<https://cloud.google.com/anthos/multicluster-management/connect/overview>

![GKE Connect Agent is Enabled](/files/-MVWCwB26u2EyA8QkBn9)
