# All builds fail with 'Circle Bug'

**URL:** <https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514>\
**Category:** Build Environment\
**Tags:** 2.0, config, workflow, contexts\
**Created:** [December 2, 2017, 4:06pm UTC](https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514 "2017-12-02T16:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helaoban](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/helaoban/32/9824_2.png) [@helaoban](https://discuss.circleci.com/u/helaoban)\
**Post date:** [December 2, 2017, 4:06pm UTC](https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514/1 "2017-12-02T16:06:13Z")

</div>

Hey Circle dudes,

Since yesterday all of my builds have been failing with the following error message:

> 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 or if the problem persists.

The error message makes clear that this is an issue on your end, but the issue still persists so I thought I’d make sure.

My config file looks like this:

```auto
version: 2
jobs:

  deploy:
    working_directory: ~/project
    docker:
      - image: node:9.2.0
    steps:
      - checkout
      - run:
          name: Install deploy dependencies
          command: |
            apt-get update
            apt-get -y install build-essential python python-dev python-pip
            pip install awscli
      - run:
          name: Install build dependencies
          command: yarn
      - run:
          name: Build
          command: yarn build
      - run:
          name: Write production config to env file
          command: |
            echo "window.env = {" >> public/dist/env.js
            echo "API_PROTOCOL: '$API_PROTOCOL'," >> public/dist/env.js
            echo "API_HOST: '$API_HOST'," >> public/dist/env.js
            echo "API_PORT: '$API_PORT'," >> public/dist/env.js
            echo "HOST: '$HOST'," >> public/dist/env.js
            echo "CALLBACK_URI: '$CALLBACK_URI'," >> public/dist/env.js
            echo "};" >> public/dist/env.js
      - run:
          name: Push to S3
          command: yarn deploy

workflows:
  version: 2
  deploy:
    jobs:
      - deploy:
          filters:
            branches:
              only: master
          context: org-global

```

Any news / ideas ?

---

<div class="post-metadata">

**Author:** ![helaoban](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/helaoban/32/9824_2.png) [@helaoban](https://discuss.circleci.com/u/helaoban)\
**Post date:** [December 4, 2017, 6:16pm UTC](https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514/2 "2017-12-04T18:16:08Z")

</div>

So it turns out this problem occurs when referencing `context: org-global` in a workflow step without having first added the context in the project settings. I had copied the config.yml from another project and forgot to add the context in the new project.

Maybe a more specific error message could be generated when this happens?

Otherwise, awesome product!

---

<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:40am UTC](https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514/3 "2018-06-18T11:40:07Z")

</div>

Closed on June 18, 2018, 11:40am UTC


