# Build aborted with "Lost connection to build agent" when setting up VPN

**URL:** <https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526>\
**Category:** Builds\
**Created:** [March 22, 2019, 4:36pm UTC](https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526 "2019-03-22T16:36:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfesquet](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nfesquet](https://discuss.bitrise.io/u/nfesquet)\
**Post date:** [March 22, 2019, 4:36pm UTC](https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526/1 "2019-03-22T16:36:41Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

In my workflow, I setup a VPN with openconnect to access internal servers. However, build is aborted after some time with the error “Lost connection to build agent”.

## Environment:

**Where did the issue happen?**

Stack : Ubuntu 16.04

**Which build Step causes the issue and which version of the step?**

Step “Script” version 1.1.5 (currently latest)

## Reproducibility

- _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)_ : NO
- _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)._ : 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?_ : Around March 14th, when setting up workflow

### Local reproduction

I use a different stack on my local machine, so it is hard to migrate all the scripts to try to reproduce the issue.

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

Didn’t try as it requires a lot of time to setup, but will do if needed

## Build log

Not sure this is useful but here is the build log:

 ![40](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/4/4c25678bfa3fe6cf92a368e3cc5f354b87df58bb.png)

No more log after that, build is aborted.

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [March 25, 2019, 9:09am UTC](https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526/2 "2019-03-25T09:09:47Z")

</div>

Hy there!

if the connection is made but it times out, or gets stuck, that usually means that you are halfway through, but your vpn might block communication in a way with [bitrise.io](http://bitrise.io), so the connection is live but it does not let info to go through🤔

---

<div class="post-metadata">

**Author:** ![nfesquet](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nfesquet](https://discuss.bitrise.io/u/nfesquet)\
**Post date:** [March 25, 2019, 9:18am UTC](https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526/3 "2019-03-25T09:18:35Z")

</div>

That’s probably what happens. What is the exact URL to whitelist? “[bitrise.io](http://bitrise.io)”? I will ask our sysadmins to whitelist that and let you know if it solves the issue.

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [March 25, 2019, 10:05am UTC](https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526/4 "2019-03-25T10:05:48Z")

</div>

can You check this thread, I think this is the one: [How to configure bitrise to access an internally hosted git repository](http://discuss.bitrise.io/t/how-to-configure-bitrise-to-access-an-internally-hosted-git-repository/85)

---

<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:** [April 24, 2019, 10:05am UTC](https://discuss.bitrise.io/t/build-aborted-with-lost-connection-to-build-agent-when-setting-up-vpn/8526/5 "2019-04-24T10:05:51Z")

</div>

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