# How to configure GCS deploy timeout in travis\_ci

**URL:** <https://travis-ci.community/t/how-to-configure-gcs-deploy-timeout-in-travis-ci/12531>\
**Category:** Deployment\
**Created:** [December 22, 2021, 7:09pm UTC](https://travis-ci.community/t/how-to-configure-gcs-deploy-timeout-in-travis-ci/12531 "2021-12-22T19:09:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HILLBILLYHeisT](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hillbillyheist/32/7476_2.png) [@HILLBILLYHeisT](https://travis-ci.community/u/HILLBILLYHeisT)\
**Post date:** [December 22, 2021, 7:09pm UTC](https://travis-ci.community/t/how-to-configure-gcs-deploy-timeout-in-travis-ci/12531/1 "2021-12-22T19:09:32Z")

</div>

Hi,

I want to configure our GCS deployment instance timeout in Travis but I get:

```auto
No output has been received in the last 10m0s, 
this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: 
https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

```

But I don’t find option to change timeout ? How it’s possible ?

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [December 22, 2021, 7:12pm UTC](https://travis-ci.community/t/how-to-configure-gcs-deploy-timeout-in-travis-ci/12531/2 "2021-12-22T19:12:05Z")

</div>

There is no configuration tweak in Travis for a deployment timeout, but you could add a background process that writes something to `STDOUT` before the deployment starts. This will prevent your deployment from getting killed when the 10 minutes is up.

For the least visual infractions, one can write visual bells `(\a)`:

```auto
before_deploy: |
  function keep_alive() {
    while true; do
      echo -en "\a"
      sleep 5
    done
  }
  keep_alive &

```

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 23, 2021, 10:28am UTC](https://travis-ci.community/t/how-to-configure-gcs-deploy-timeout-in-travis-ci/12531/3 "2021-12-23T10:28:05Z")

</div>

Speaking of which, why is there no output for 10 minutes? Maybe that does mean a stalled deployment?  
The timeout exists specifically to terminate hung builds.

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [December 23, 2021, 6:43pm UTC](https://travis-ci.community/t/how-to-configure-gcs-deploy-timeout-in-travis-ci/12531/4 "2021-12-23T18:43:57Z")

</div>

Heyo @native-api,

It could mean various things, so for example let’s say a build runs the same task on all jobs (on different stacks). Let’s also say you have 4 jobs, you can see that jobs 1 and 2 ran on GCE (with `sudo: required` , which is the default for the repository, but now moot), and the jobs 3 and 4 ran on EC2 (with `sudo: false` ).

From this, I deduce that the issue is present only on containers (on EC2, with `sudo: false` ). The OP didn’t give much information, but I assume something like this is going on, and if that’s the case could cause queue hangups causing this to happen.
