# "An error occurred while generating the build script."

**URL:** <https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413>\
**Category:** macOS\
**Created:** [November 22, 2021, 10:15pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413 "2021-11-22T22:15:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![logancautrell](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logancautrell/32/7436_2.png) [@logancautrell](https://travis-ci.community/u/logancautrell)\
**Post date:** [November 22, 2021, 10:15pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/1 "2021-11-22T22:15:12Z")

</div>

I am able to run my build locally and all tests pass. I have not modified my `.travis.yml` recently. Status page shows no errors.

Sorry if this is the wrong category. Never posted here before.

---

<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:** [November 22, 2021, 11:22pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/2 "2021-11-22T23:22:37Z")

</div>

Hey @logancautrell,

It’s hard to say what’s wrong without seeing your `.travis.yml`. I’m given limited information here to work with.

---

<div class="post-metadata">

**Author:** ![logancautrell](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logancautrell/32/7436_2.png) [@logancautrell](https://travis-ci.community/u/logancautrell)\
**Post date:** [November 23, 2021, 3:53pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/3 "2021-11-23T15:53:23Z")

</div>

It started working without any changes. Thanks.

---

<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:** [November 23, 2021, 4:40pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/4 "2021-11-23T16:40:14Z")

</div>

Good to hear.

---

<div class="post-metadata">

**Author:** ![eserte](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eserte/32/4500_2.png) [@eserte](https://travis-ci.community/u/eserte)\
**Post date:** [December 3, 2021, 7:59pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/5 "2021-12-03T19:59:50Z")

</div>

It happened also today in one of my jobs: [Travis CI - Test and Deploy with Confidence](https://app.travis-ci.com/github/eserte/bbbike/jobs/550826148)  
My guess is that it was caused by a flaky network.

---

<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 7, 2021, 12:29am UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/6 "2021-12-07T00:29:15Z")

</div>

After looking at how far this particular build got, the problem is definitely within the processing infrastructure, probably a small one like a Travis worker being rebooted or refreshed.

Is this still happening? Your Travis job(s) run in a fully functional Linux environment, which includes the ability to create firewall rules, seeing when and if the network cuts out, use the unix commands at your disposal to get as much verbose information as possible.

---

<div class="post-metadata">

**Author:** ![eserte](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eserte/32/4500_2.png) [@eserte](https://travis-ci.community/u/eserte)\
**Post date:** [December 7, 2021, 5:34pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/7 "2021-12-07T17:34:44Z")

</div>

This particular error did not happen since then. However, 10 of 12 jobs since then failed, in most cases it was a stalled build without ever getting to the initial “git clone” command. Example failed job: [Travis CI - Test and Deploy with Confidence](https://app.travis-ci.com/github/eserte/bbbike/jobs/551073622)

---

<div class="post-metadata">

**Author:** ![mustafa](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mustafa/32/2752_2.png) [@mustafa](https://travis-ci.community/u/mustafa)\
**Post date:** [December 8, 2021, 11:53am UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/8 "2021-12-08T11:53:36Z")

</div>

@eserte we have pushed additional fixes on the image itself from then. Hopefully this should be fixed. Thanks.

---

<div class="post-metadata">

**Author:** ![eserte](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eserte/32/4500_2.png) [@eserte](https://travis-ci.community/u/eserte)\
**Post date:** [December 8, 2021, 9:19pm UTC](https://travis-ci.community/t/an-error-occurred-while-generating-the-build-script/12413/9 "2021-12-08T21:19:13Z")

</div>

Thanks, looks much better now.
