# Error migrating config to version 2

**URL:** <https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [January 20, 2019, 7:39pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803 "2019-01-20T19:39:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 20, 2019, 7:39pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/1 "2019-01-20T19:39:46Z")

</div>

Hello all,  
I am trying to migrating to 2.0 ,  
and I got this error.  
**_in job ‘build’: steps is not a list_**  
can someone help me what is the reason ?

```
version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.2.3-jessie
    environment:
      AWS_REGION: eu-central-1
    steps:
      - checkout
      - run: echo "Tests are skipped because of static site."
      - run: mkdir -p /tmp/test-data
deploy:
  production:
    branch: master
    commands:
      - bundle exec middleman s3_sync
```

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [January 20, 2019, 10:06pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/2 "2019-01-20T22:06:43Z")

</div>

I’d guess that your `steps` key needs four spaces to the right to be valid - see the examples in the manual.

---

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 20, 2019, 10:39pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/3 "2019-01-20T22:39:57Z")

</div>

Thanks for your response,  
actually the problem is that i am totally new in CircleCi , what do you mean by preformatted text in YAML ?(I have searched but couldn’t find helpful topic) can you explain more. also i changed the spaces to 4, but the problem still is remain.

---

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 20, 2019, 10:49pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/5 "2019-01-20T22:49:20Z")

</div>

oh, okay . I got it 🙂 I hope that other guys can help me to solve my problem .

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [January 20, 2019, 10:53pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/6 "2019-01-20T22:53:36Z")

</div>

The keys `version` and `jobs` should have no indentation, and yet you have four. Are you sure that what you have presented is an accurate representation of what is in your file?

> [@Helia](#):
>
> [Also] [I] changed the spaces to 4, but the problem still is remain.

If you changed the file on your side, please change it above too - it needs four _additional_ spaces. That is aside from the problem that the whole file appears to be indented four spaces, which is incorrect.

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [January 20, 2019, 10:55pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/7 "2019-01-20T22:55:33Z")

</div>

One of my files looks like this:

```auto
version: 2
jobs:
  build:
    working_directory: /app
    docker:
      - image: docker/compose:1.20.1
    steps:
      - checkout

```

You need to ensure your YAML file has _exactly_ the same indentation, starting from zero for `version` and `jobs`.

---

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 21, 2019, 8:11am UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/8 "2019-01-21T08:11:07Z")

</div>

oh , it was my mistake, when i uploaded them .  
so now i edited my post , and copy accurate file .  
the main file does not have additional spaces.  
maybe now you can realize better. 🙂

---

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 21, 2019, 8:31am UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/9 "2019-01-21T08:31:19Z")

</div>

I did changes, and now I got new error :

Build-agent version 0.1.1301-dd8e9365  
Starting container circleci/ruby:2.2.3-jessie  
image cache not found on this host, downloading circleci/ruby:2.2.3-jessie

Error response from daemon: manifest for circleci/ruby:2.2.3-jessie not found

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [January 21, 2019, 8:53am UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/10 "2019-01-21T08:53:09Z")

</div>

The string `circleci/ruby:2.2.3-jessie` must be a valid Docker image on Docker Hub. Have a look at CircleCI’s Docker Hub page to find all the valid image names.

---

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 21, 2019, 1:56pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/11 "2019-01-21T13:56:52Z")

</div>

I checked Docker Hub , how can I realize which version of Ruby should I use ?  
`ruby:2.2.3-jessie` this version was not available  
(I did not do this configuration, someone else did it and I am trying to migrating, that’s why i have a lot of question 🙂 )

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [January 22, 2019, 7:49pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/12 "2019-01-22T19:49:39Z")

</div>

> [@Helia](#):
>
> how can I realize which version of Ruby should I use ?

Find out from your application documentation what version it needs.

If that documentation does not exist, ask a colleague (and then write the documentation).

If your colleagues do not know, then choose the latest version that allows all your test to pass.

If you do not have any tests, find out what you are using in production, and then hope for the best. 😁

---

<div class="post-metadata">

**Author:** ![Helia](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@Helia](https://discuss.circleci.com/u/Helia)\
**Post date:** [January 22, 2019, 9:00pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/13 "2019-01-22T21:00:26Z")

</div>

thank you very much for your help,  
I changed ruby 2.2.3 to 2.3 , and then the problem is gone :)))

---

<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:** [April 29, 2019, 4:19pm UTC](https://discuss.circleci.com/t/error-migrating-config-to-version-2/27803/15 "2019-04-29T16:19:35Z")

</div>

Closed on April 29, 2019, 4:19pm UTC

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