# Test Kitchen | $'\\r': command not found

**URL:** https://discourse.chef.io/t/test-kitchen-r-command-not-found/9457
**Category:** Chef Infra (archive)
**Created:** [September 20, 2016, 10:46am UTC](https://discourse.chef.io/t/test-kitchen-r-command-not-found/9457 "2016-09-20T10:46:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mukherjee\_mk](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mukherjee\_mk](https://discourse.chef.io/u/mukherjee_mk)
#### Post date: [September 20, 2016, 10:46am UTC](https://discourse.chef.io/t/test-kitchen-r-command-not-found/9457/1 "2016-09-20T10:46:38Z")

</div>

Hi,

I have been struggling to get my `kitchen converge` to work. It is failing with this error -

```
kitchen converge
-----> Starting Kitchen (v1.13.0)
-----> Converging <default-centos-72>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 5.1.0...
       Removing non-cookbook files before transfer
       Preparing validation.pem
       Preparing client.rb
       sh: line 9: $'\r': command not found
       sh: line 10: $'\r': command not found
       sh: -c: line 12: syntax error near unexpected token `$'{\r''
' sh: -c: line 12: `capture_tmp_stderr() {

```

My .kitchen.yml file is as follows -  
—  
driver:  
name: docker  
use\_sudo: false

```
provisioner:
  name: chef_zero

platforms:
  - name: centos-7.2

suites:
  - name: default
    run_list:
      - recipe[nginxMyCompany::default]
    attributes:

```

When I execute `kitchen converge -l debug`, it does spit out a lot of debug level logs, but not something which helps understand the root cause.

I tried searching for this error on the Internet, and get pointers to check for windows-line endings. I am on a mac. I checked the ‘.kitchen.yml’ file - which seems to be fine in that aspect.

What am I missing? What could be causing this error?

---

<div class="post-metadata">

### Author: ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)
#### Post date: [September 20, 2016, 2:22pm UTC](https://discourse.chef.io/t/test-kitchen-r-command-not-found/9457/2 "2016-09-20T14:22:48Z")

</div>

This was due to mixlib-install 1.2.1 being released yesterday with carriage returns in the `installer.sh` file. (my fault entirely). I have added a gitattributes file to that repo to protect against that from happening in the future and have released a 1.2.2 and confirmed line endings are good. 1.2.1 has been yanked.

My sincerest apologies for this.

---

<div class="post-metadata">

### Author: ![mukherjee\_mk](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mukherjee\_mk](https://discourse.chef.io/u/mukherjee_mk)
#### Post date: [September 21, 2016, 1:09am UTC](https://discourse.chef.io/t/test-kitchen-r-command-not-found/9457/3 "2016-09-21T01:09:22Z")

</div>

Thanks Matt. I updated the gem and am unblocked now.
