# Mongo container failed

**URL:** <https://discuss.circleci.com/t/mongo-container-failed/46448>\
**Category:** Build Environment\
**Tags:** mongo\
**Created:** [January 2, 2023, 4:44am UTC](https://discuss.circleci.com/t/mongo-container-failed/46448 "2023-01-02T04:44:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hantsy](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/hantsy/32/31845_2.png) [@hantsy](https://discuss.circleci.com/u/hantsy)\
**Post date:** [January 2, 2023, 4:44am UTC](https://discuss.circleci.com/t/mongo-container-failed/46448/1 "2023-01-02T04:44:39Z")

</div>

I used the new Circle v2.1 format, and declare an executor using the latest OpenJDK and mongo, but the mongo container always failed when running the pipeline.

```yaml
version: 2.1

orbs:
  maven: circleci/maven@1.4.0
  codecov: codecov/codecov@3.2.4
executors:
  docker-mongo:
    docker:
      - image: cimg/openjdk:19.0.1
      - image: mongo:6
jobs:
  build:
    executor: docker-mongo
    steps:
      - checkout
      - maven/with_cache:
          steps:
            - run: mvn -q test verify -Pcoverage
      - maven/process_test_results
      - codecov/upload:
          when: on_success
workflows:
  build:
    jobs:
      - build

```

See the build errors on Circle CI: [https://app.circleci.com/pipelines/github/hantsy/spring-reactive-jwt-sample/469/workflows/e04f6c58-1099-4821-b9c4-21ab96b22337/jobs/480](https://app.circleci.com/pipelines/github/hantsy/spring-reactive-jwt-sample/469/workflows/e04f6c58-1099-4821-b9c4-21ab96b22337/jobs/480)
