Troubleshoot issues

You can take a series of steps to recover from common causes of Cloud Shell failures and crashes.

Unresponsive or corrupted environment

If Cloud Shell becomes unresponsive, crashes immediately, or fails to connect, there are several steps you can take to resolve the issue:

  • Always try restarting Cloud Shell first to resolve transient errors.

    Restarting provisions a new virtual machine and stops any running processes. Except when using Cloud Shell in Ephemeral mode, a restart preserves all of your persistent $HOME directory files.

  • Check your disk space to see if it's full and, if necessary, free up space.

  • Check if your startup files are broken.

  • If your network uses forward proxies, firewalls, or certain security solutions, your Cloud Shell terminal connection might fail if they're not configured to allow Cloud Shell traffic. See Corporate proxies, firewalls, and SSL inspection for configuration details.

  • If you are unable to resolve your issue, you can use Ephemeral mode for immediate gcloud access. However, Ephemeral mode doesn't have access to the persistent storage in your Cloud Shell $HOME directory.

  • To permanently deletes all files in your $HOME directory and restore Cloud Shell to its default state, you can reset the home directory.

Exceeded a Cloud Shell limit

Cloud Shell provides 50 hours of interactive usage per week. To see when your quota resets and options if you need more quota, see Cloud Shell quotas and limits.

If your session is disabled with a message stating that access has been restricted or that you've violated the Terms of Service, you must open an appeal ticket with details on your workload in Google Cloud console Support to reactivate Cloud Shell.