# Build hangs (?) when installing Google Cloud SDK

**URL:** <https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398>\
**Category:** Build Environment\
**Created:** [November 5, 2015, 9:15pm UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398 "2015-11-05T21:15:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktsashes](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ktsashes/32/271_2.png) [@ktsashes](https://discuss.circleci.com/u/ktsashes)\
**Post date:** [November 5, 2015, 9:15pm UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398/1 "2015-11-05T21:15:51Z")

</div>

I’m trying to download the Google Cloud SDK in one of my scripts and it seems to be causing some issues. In my dependency step, I run a bash file with `sudo -E /bin/sh ./shell/install-deps.sh`. In that script, I have the following line (the [recommended install method](https://cloud.google.com/sdk/#nix) when you need to do deployment on linux):

```auto
curl https://sdk.cloud.google.com | bash

```

The script gets a few steps into the process before seemingly stalling. Locally, this script doesn’t really have any issues, but it seems to have some here. It will sit like that for several minutes, and reloading the page actually causes some log information to get lost (in the UI at least). Before timing out, the logs indicate it only gets to downloading the sdk scripts and creating the directory but never gets any further.

```auto
Installing Google Cloud SDK...
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

100 421 0 421 0 0 6353 0 --:--:-- --:--:-- --:--:-- 9790
Downloading Google Cloud SDK install script: https://dl.google.com/dl/cloudsdk/channels/rapid/install_google_cloud_sdk.bash

######################################################################## 100.0%
Running install script from: /tmp/tmp.6sVKRinztG/install_google_cloud_sdk.bash
which curl
curl -# -f https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz

######################################################################## 100.0%

Installation directory (this will create a google-cloud-sdk subdirectory) (/home/ubuntu/My-Repository):

```

---

<div class="post-metadata">

**Author:** ![levlaz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/levlaz/32/36978_2.png) [@levlaz](https://discuss.circleci.com/u/levlaz)\
**Post date:** [November 5, 2015, 9:17pm UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398/2 "2015-11-05T21:17:26Z")

</div>

Are you able to SSH into the build and try this step manually to see if it is getting stuck?

---

<div class="post-metadata">

**Author:** ![ktsashes](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ktsashes/32/271_2.png) [@ktsashes](https://discuss.circleci.com/u/ktsashes)\
**Post date:** [November 5, 2015, 9:19pm UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398/3 "2015-11-05T21:19:22Z")

</div>

You know what, I’m gonna bet that is waiting for input. Which it doesn’t do locally. I will ssh in and investigate. Likely not an issue on your end (hopefully)

---

<div class="post-metadata">

**Author:** ![ktsashes](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ktsashes/32/271_2.png) [@ktsashes](https://discuss.circleci.com/u/ktsashes)\
**Post date:** [November 5, 2015, 9:56pm UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398/4 "2015-11-05T21:56:20Z")

</div>

They seem to have tweaked the script for install. For anyone else who may hit this, add the environment variable `CLOUDSDK_CORE_DISABLE_PROMPTS` and set it to `1`. Bypasses all user input

---

<div class="post-metadata">

**Author:** ![levlaz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/levlaz/32/36978_2.png) [@levlaz](https://discuss.circleci.com/u/levlaz)\
**Post date:** [November 5, 2015, 10:01pm UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398/5 "2015-11-05T22:01:07Z")

</div>

Awesome! Glad you got this to work, thanks for posting the solution 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/build-hangs-when-installing-google-cloud-sdk/398/6 "2018-06-18T11:37:34Z")

</div>

Closed on June 18, 2018, 11:37am UTC


