Google Cloud Shell Disconnects

3,137 views
Skip to first unread message

Gustavo Orozco

unread,
Sep 11, 2017, 5:27:16 PM9/11/17
to gce-discussion
Hi. Google Cloud Shell disconnects every few minutes making it impossible to work. Any recommendation? Thanks.

Kenworth (Google Cloud Platform)

unread,
Sep 11, 2017, 9:20:27 PM9/11/17
to gce-discussion
You can first check your development environment. 

1- Try different browsers.
2- Try different computers.
3- Inspect your internet connection, etc.

If all else fails, work locally and use Cloud SDK instead of Google Cloud Shell.

Gustavo Orozco

unread,
Sep 12, 2017, 10:52:39 AM9/12/17
to gce-discussion

Thank you for your kind response. The problem definitely is not local. I need to work there because I have important information stored. SSH connection to Compute Engine also fails.
Cloud Shell Unavailable.png

Gustavo Orozco

unread,
Sep 12, 2017, 11:23:32 AM9/12/17
to gce-discussion
Connection to sdk.cloud.google.com fails... I ran out of options.


On Monday, September 11, 2017 at 4:27:16 PM UTC-5, Gustavo Orozco wrote:
Connection Failed SDK.png

Kenworth (Google Cloud Platform)

unread,
Sep 12, 2017, 5:50:16 PM9/12/17
to gce-discussion

This can be caused by a couple of reasons, most commonly:

1- The .bashrc or other shell configuration files were modified.

2- Storing unusually large amounts of data in the home disk.

3- Adding some programs to automatically start up on login.

You can choose to reset your Cloud Shell by doing "sudo rm -rf $HOME" and restarting the Cloud Shell VM. This should give you a clean state but make sure to backup your data before doing so (this will delete all data). If this solution is not feasible or you are still affected after doing the above, you should consider reporting the issue on our Issue Tracker so proper attention can be given to it.

Gustavo Orozco

unread,
Sep 13, 2017, 8:34:16 AM9/13/17
to gce-discussion
Thanks for your kind reply. Fortunately everything was normalized. I did not have to make any adjustments. Just wait patiently.
Unfortunately I have no way to reproduce the problem to report the issue. But it is clear to me now that there was a problem in GCP that prevented me from connecting via SSH to my cluster.

On Monday, September 11, 2017 at 4:27:16 PM UTC-5, Gustavo Orozco wrote:

hukam khan

unread,
May 18, 2020, 8:37:23 AM5/18/20
to gce-discussion
hello bro same problembut I also loss my all data after restart cloud shell help me please

Cameron Thomas Otway

unread,
May 18, 2020, 3:59:07 PM5/18/20
to gce-discussion
Hello  Gustavo /Hukam

Seems really strange that you connection is dropping. @Gustavo, you mentioned "prevented me from connecting via SSH to my cluster." so you cannot ssh at all? if possible, ssh with the following : 

gcloud compute ssh [INSTANCE_NAME] --zone [ZONE_NAME] --verbosity=debug

Here is a link to the command above. The verbosity flag will give us more information as to why you cannot ssh to the VM. You can share the info to us, just make sure to sanitize all sensitive information. Perhaps you can serial console into the VM and check out what's happening. As for connection dropping, it might be an overall issue with  the health of the VM? /var/logs might have a clue for you. use basic commands to check the status of the VM like 'free -h ' to check memory usage or 'df -h' to check disk usage. if all else fails, you can create a snapshot of the instance, create  disk from the snapshot then attach it to a newly created instance and backup your data. This will be the most efficient way to get up and running. 
Reply all
Reply to author
Forward
0 new messages