# 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](https://docs.cloud.google.com/shell/docs/using-cloud-shell.md.txt#restart)
  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](https://docs.cloud.google.com/shell/docs/using-cloud-shell.md.txt#ephemeral-mode), a restart
  preserves all of your persistent `$HOME` directory files.
- [Check your disk space](https://docs.cloud.google.com/shell/docs/quotas-limits.md.txt#clear-disk-space) to see
  if it's full and, if necessary, free up space.

- [Check if your startup files are broken](https://docs.cloud.google.com/shell/docs/configuring-cloud-shell.md.txt#startup-failures).

- 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](https://docs.cloud.google.com/shell/docs/quotas-limits.md.txt#corporate-proxies)
  for configuration details.

- If you are unable to resolve your issue, you can use
  [Ephemeral mode](https://docs.cloud.google.com/shell/docs/using-cloud-shell.md.txt#ephemeral-mode) for immediate
  `gcloud` access. However, Ephemeral mode doesn't have access to the
  [persistent storage](https://docs.cloud.google.com/shell/docs/how-cloud-shell-works.md.txt#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](https://docs.cloud.google.com/shell/docs/resetting-cloud-shell.md.txt#reset).

## 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](https://docs.cloud.google.com/shell/docs/quotas-limits.md.txt#viewing-quota).

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](https://console.cloud.google.com/support) to reactivate
Cloud Shell.