# Frequent build Aborted: Lost connection to build agent

**URL:** <https://discuss.bitrise.io/t/frequent-build-aborted-lost-connection-to-build-agent/19291>\
**Category:** Builds\
**Tags:** android\
**Created:** [February 3, 2022, 11:04pm UTC](https://discuss.bitrise.io/t/frequent-build-aborted-lost-connection-to-build-agent/19291 "2022-02-03T23:04:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phsu-bc](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@phsu-bc](https://discuss.bitrise.io/u/phsu-bc)\
**Post date:** [February 3, 2022, 11:04pm UTC](https://discuss.bitrise.io/t/frequent-build-aborted-lost-connection-to-build-agent/19291/1 "2022-02-03T23:04:48Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

May builds get aborted for a particular workflow fail with the message “Lost connection to build agent”.

## Environment:

Android & Docker, on Ubuntu 20.04

Fastlane - 3.3.0, running android tests

- \_Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) YES
- \_Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can _delete all the caches_ on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches).didn’t try
- \_Does the issue happen sporadically, or every time? 40-60%:
- \_When did the issue start? 2022/2/1 :

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [Running your build locally in Docker](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

## Build log

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [Contact us](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 5, 2022, 11:05pm UTC](https://discuss.bitrise.io/t/frequent-build-aborted-lost-connection-to-build-agent/19291/2 "2022-03-05T23:05:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
