Bitrise Build Issue Report template
Description of the issue
I just updated my stack with Android & Docker (on Ubuntu 20.04) and each builds are aborted with this error “Lost connection to build agent”.
Environment:
Android & Docker (on Ubuntu 20.04)
Step : Gradle runner 2.0.1
Reproducibility
- _Does a “Rebuild” help? NO
- _Does a rebuild without caches help? NO
- _Does the issue happen sporadically, or every time? every time
- _Does upgrading the build Step to the latest version help? NO
- _When did the issue start? Since the last stack upgrade (Android & Docker on Ubuntu 20.04).
Local reproduction
_Can it be reproduced on your own Mac/PC by following our [local debug guide] YES
Local reproduction: Linux / Android (docker based) stack builds
_Can it be reproduced by running the build locally : YES
Build log
1 Like
Hello,
Please add a script step to the beginning of your workflow containing:
#!/usr/bin/env bash
`docker run --privileged -i -v /:/host/ ubuntu:focal chroot /host/ sudo bash -c 'echo "Adjusting OOM scores"; for i in $(pgrep bitrise) $(pgrep docker) $(pgrep bitrise-agent); do echo "PID: $i $(ps -p $i -o comm=)"; echo -n "Old score: "; cat "/proc/${i}/oom_score"; echo "-1000" > "/proc/${i}/oom_score_adj"; echo -n "New score: "; cat "/proc/${i}/oom_score"; echo ""; done'`
Please be sure to post your results and let us know if that resolved the issue. THANKS!
1 Like
Hi @cathy.harmon, since I added this script, it worked for two days, but now this error appears after the script execution.
Unable to find image 'ubuntu:focal' locally
focal: Pulling from library/ubuntu
7b1a6ab2e44d: Pulling fs layer
7b1a6ab2e44d: Verifying Checksum
7b1a6ab2e44d: Download complete
7b1a6ab2e44d: Pull complete
Digest: sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322
Status: Downloaded newer image for ubuntu:focal
sudo: unable to resolve host 8fc4a96d6e9e: Temporary failure in name resolution
/tmp/bitrise404323720/step_src/._script_cont: line 3: Adjusting: command not found
1 Like
system
Closed
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.