Reputation: 2253
I am trying to start the Google Cloud shell but it does not launch.It keeps on saying "Connecting: Establishing connection to your Google Cloud Shell..." but nothing happens. I am under a company's network which might be a reason. How should I debug this?
Upvotes: 1
Views: 10098
Reputation: 705
To resolve the issue: add the following in the address bar so it will open the shell in the safe mode:
&cloudshellsafemode=true
It will open the shell/editor window. Then click on the vertical three points (top-right) and select "restart". It will restart the shell.
Take care sometimes it is not necessary to make a clean installation of the gcloud shell.
Upvotes: 2
Reputation: 2754
Do you have several tabs with different google accounts? This happened to me when using several accounts for some reason.
Upvotes: 0
Reputation: 564
You can try to access with a different browser, such as Mozilla Firefox in incognito mode to prevent unintended behavior from browser extensions. You can also try to access from another computer behind a different network. I would recommend, run Cloud Shell in safe mode by appending cloudshellsafemode=true to the URL [1].
[1] https://cloud.google.com/shell/docs/features#safe_mode
EDIT (adding the comment below for clarity):
If you are using a corporate network is highly probable that your IP address in behind a proxy, in that case, you need to work with the company system administrator to enable access to the possible IPs that are assigned when a Cloud Shell is launched.
You can get the aforementioned IPs by running this:
google_ips=$(for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`; do dig txt $LINE +short; done | tr " " "\n" | grep ip4 | cut -f 2 -d : | sort -n | xargs | tr " " ",") ; echo IPs: ; echo $google_ips
Upvotes: 4