# Getting failed build due to "Github or AWS" circle error every 1 out of 2 builds

**URL:** <https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178>\
**Category:** Bug Reports\
**Tags:** caching\
**Created:** [October 26, 2015, 11:27pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178 "2015-10-26T23:27:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpg1111](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cpg1111](https://discuss.circleci.com/u/cpg1111)\
**Post date:** [October 26, 2015, 11:27pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/1 "2015-10-26T23:27:46Z")

</div>

This is a very consistent issue. **Exactly every other build** , I get that it was canceled right after trying to restore cache, which **there is nothing to restore.** And when it fails, I get this error: “**Looks like we had a bug in our infrastructure, or that of our providers (generally GitHub or AWS) We should have automatically retried this build. We’ve been alerted of the issue and are almost certainly looking into it, please contact us if you’re interested in the cause of the problem.**” I messaged this to support at first and received a cut and paste response basically saying that it was my problem. Thankfully after that I got someone else to reply who told me to open a ticket here. Please let me know if there is any other info I could provide.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [October 26, 2015, 11:34pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/2 "2015-10-26T23:34:24Z")

</div>

Are you caching any directories outside the home folder? We cannot actually restore anything that is located outside of the home folder.

If that’s the case, please place the files you would like to cache into the home folder and then symlink them into the right place during the build, after the cache has been restored (`dependencies` step, for example).

---

<div class="post-metadata">

**Author:** ![cpg1111](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cpg1111](https://discuss.circleci.com/u/cpg1111)\
**Post date:** [October 27, 2015, 3:53am UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/3 "2015-10-27T03:53:35Z")

</div>

I said that there’s nothing to restore. **I’m not caching anything.**

---

<div class="post-metadata">

**Author:** ![cpg1111](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cpg1111](https://discuss.circleci.com/u/cpg1111)\
**Post date:** [October 27, 2015, 3:56am UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/4 "2015-10-27T03:56:31Z")

</div>

And even if I was caching, I’d be very surprised that it works **exactly** every other time.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [November 12, 2015, 11:48am UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/5 "2015-11-12T11:48:22Z")

</div>

Sorry for the delay here @cpg1111. Is this still happening for you? Would it be an option for you to paste the whole `circle.yml` file right here? If you are alright with sharing a build URL (if this is a private project, you might not want to do that), please post it here as well. Thanks.

---

<div class="post-metadata">

**Author:** ![cpg1111](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cpg1111](https://discuss.circleci.com/u/cpg1111)\
**Post date:** [November 12, 2015, 3:40pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/6 "2015-11-12T15:40:43Z")

</div>

Sorry, this is a private project, but what I can tell you is that is breaks right after the machine starts up docker, as in the daemon.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [November 12, 2015, 5:11pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/7 "2015-11-12T17:11:54Z")

</div>

Alright, thanks for that. Is this an OS X / iOS build? If so, Docker is still not supported on the OS X machines.

Also, what is the _next_ step in your build that comes after the Docker start-up? It might be that part that’s causing the issue.

---

<div class="post-metadata">

**Author:** ![cpg1111](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cpg1111](https://discuss.circleci.com/u/cpg1111)\
**Post date:** [November 16, 2015, 3:36pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/8 "2015-11-16T15:36:41Z")

</div>

…um no it’s a Linux build, otherwise I wouldn’t be using docker. The next step is pulling the last successful build of the containers from my docker registry, then building the new ones.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [November 16, 2015, 5:08pm UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/9 "2015-11-16T17:08:49Z")

</div>

Thanks for the details. I’ll have to look at the logs on our side to figure out what is going on here. Could you please contact us via in-app support mentioning this post and a link to the build that shows the failure? I’ll check the logs and we’ll continue the conversation here on Discuss. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/getting-failed-build-due-to-github-or-aws-circle-error-every-1-out-of-2-builds/178/10 "2018-06-18T11:33:52Z")

</div>


