# Build breaks with error "tee: ‘standard output’: Resource temporarily unavailable"

**URL:** https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121
**Category:** Travis CI Discussions & Feedback
**Tags:** build-env, bug
**Created:** [February 2, 2021, 8:40am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121 "2021-02-02T08:40:17Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![berickus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/berickus/32/3091_2.png) [@berickus](https://travis-ci.community/u/berickus)
#### Post date: [February 2, 2021, 8:40am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/1 "2021-02-02T08:40:17Z")

</div>

Hi there

After upgrading our build config from nodejs 8 and python2 to nodejs 11 and python3, our builds fail in the middle with error:  
tee: standard output.

also cache upload fails for no reported reasons.

Anyone got an idea how to fix this?

---

<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: [February 2, 2021, 9:43am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/2 "2021-02-02T09:43:32Z")

</div>

Can’t say anything without seeing the build.

---

<div class="post-metadata">

### Author: ![berickus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/berickus/32/3091_2.png) [@berickus](https://travis-ci.community/u/berickus)
#### Post date: [February 2, 2021, 9:51am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/3 "2021-02-02T09:51:54Z")

</div>

What information do you need?

Just got this again:  
tee: ‘standard output’: Resource temporarily unavailable

out of nowhere after roughly 16k lines

---

<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: [February 2, 2021, 10:14am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/4 "2021-02-02T10:14:40Z")

</div>

As @native-api stated,

It would really help to see more of your `.travis.yml` file or more of the build.

---

<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: [February 2, 2021, 10:17am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/5 "2021-02-02T10:17:10Z")

</div>

> [@berickus](#):
>
> tee: ‘standard output’: Resource temporarily unavailable

From this, I believe you’re overloading the logging system by producing too much output too fast:

> [@TAR command exits with 2 when extracting contents of android studio](https://travis-ci.community/t/tar-command-exits-with-2-when-extracting-contents-of-android-studio/2851/4):
>
> You are passing -v to tar, making it write file names as they are extracted. That’s LOTS of output very fast. It’s possible that Travis can’t handle so much and that “write error” is error from writing to stdout rather than disk. There are already a few known issues with this, e.g. [https://github.com/travis-ci/travis-ci/issues/8189](https://github.com/travis-ci/travis-ci/issues/8189) and [https://travis-ci.community/t/characters-in-travis-console-log/](https://travis-ci.community/t/characters-in-travis-console-log/) . Travis is not unique here, either, see e.g. [https://stackoverflow.com/questions/37540792/jenki…](https://stackoverflow.com/questions/37540792/jenkins-script-tar-write-error/38738272)

* * *

In any case, I need to see the build to say for sure, this is just speculation.

---

<div class="post-metadata">

### Author: ![berickus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/berickus/32/3091_2.png) [@berickus](https://travis-ci.community/u/berickus)
#### Post date: [February 2, 2021, 10:26am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/6 "2021-02-02T10:26:04Z")

</div>

Here my yml config:

```
os: linux
dist: xenial

env:
  global:
    - PATH=$HOME/.local/bin:$PATH
language: java
jdk:
  - openjdk11
python:
  - "3.5"

services:
  - mysql

addons:
  sonarcloud:
    organization: "tamedia-pmd"
    token: ${SONAR_TOKEN}

before_script:
  - wget https://repo.mysql.com/mysql-apt-config_0.8.10-1_all.deb
  - sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
  - sudo apt-get update -q
  - sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
  - sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
  - sudo cp "$TRAVIS_BUILD_DIR/.travis_config/mysql/my.cnf" /etc/mysql/my.cnf
  - sudo systemctl restart mysql
  - sudo mysql_upgrade

before_install:
  - mysql -e 'CREATE DATABASE IF NOT EXISTS ci_tamedia;'
  - mysql -e "GRANT ALL ON ci_tamedia.* TO 'hybris'@'%' IDENTIFIED BY 'hybris';"
  - pyenv global 3.7.1
  - pip install --upgrade pip
  - pip install --user awscli
  - python3 -c 'import os,sys; os.set_blocking(sys.stdout.fileno(), True)'
  - nvm use 11

git:
  quiet: true
  depth: false

cache:
  directories:
  - $HOME/.m2
  - $HOME/.gradle

jobs:
  include:
    - stage: "deploy"
      name: "Create Deployment Package"
      if: tag IS present
      script:
        - cd build
        - export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER; export JOB_NAME=$TRAVIS_JOB_NAME; export GIT_BRANCH=$TRAVIS_BRANCH; export GIT_COMMIT=$TRAVIS_COMMIT; export BUILD_ID=$TRAVIS_BUILD_ID
        - bash gradlew --quiet clean all || travis_terminate 1;
        - bash gradlew --quiet production || travis_terminate 1;
        - bash gradlew publish -Pversion=${TRAVIS_TAG}
    - stage: "build"
      name: "CI Build"
      if: branch IN (develop, master) || type = pull_request || (branch =~ support/* AND type = push)
      script:
        - cd build
        - bash build.sh || travis_terminate 1;
        - bash unittests.sh
        - bash allwebtests.sh
        - bash integrationtests.sh
        - bash checkLogs.sh unittests.log;
        - bash checkLogs.sh allwebtests.log;
        - bash checkLogs.sh integrationtests.log;
        - bash gradlew copyFilesTask;
        - bash gradlew generateJacocoReport;
        - cd ..
        - CURRENTVERSION=`git describe`
        - sonar-scanner -Dsonar.projectVersion=${CURRENTVERSION}

notifications:
  slack:
    rooms:
     - secure: ${SLACK_SECRECT}
    on_success: change
    on_failure: always
    on_pull_requests: true

```

The tee is in the test shell scripts:

```
./gradlew -Psystem="ci" -Dtestclasses.packages='com.unic.*, com.tamedia.*' -DHYBRIS_LOG_DIR=${TRAVIS_BUILD_DIR}/hybris/log/junit/integration -DHYBRIS_TEMP_DIR=${TRAVIS_BUILD_DIR}/hybris/temp/junit/integration --quiet integrationtests | tee -i integrationtests.log

```

So I can ready with checkLogs.sh if some tests failed. Our gradle build generates quite some output, we already have it on quiet mode to not exceed 50k lines. But I can not reduce it more. That is due to the framework we use for the project.

---

<div class="post-metadata">

### Author: ![berickus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/berickus/32/3091_2.png) [@berickus](https://travis-ci.community/u/berickus)
#### Post date: [February 2, 2021, 10:29am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/7 "2021-02-02T10:29:04Z")

</div>

If anyone has an idea to improve the build process/pipeline I would be really happy. We never bothered as it was running.

---

<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: [February 2, 2021, 10:33am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/8 "2021-02-02T10:33:24Z")

</div>

The author of [Build log truncated](https://travis-ci.community/t/build-log-truncated/10395) pipes the output through [`pv -q -L 1K`](https://linux.die.net/man/1/pv) to throttle output speed.

You need to install the `pv` Apt package to get this utility.

---

<div class="post-metadata">

### Author: ![berickus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/berickus/32/3091_2.png) [@berickus](https://travis-ci.community/u/berickus)
#### Post date: [February 2, 2021, 11:40am UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/9 "2021-02-02T11:40:55Z")

</div>

That does work but makes the build much slower.

---

<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: [February 2, 2021, 12:22pm UTC](https://travis-ci.community/t/build-breaks-with-error-tee-standard-output-resource-temporarily-unavailable/11121/10 "2021-02-02T12:22:21Z")

</div>

You can try higher speed limits.
