popularity
question
8

TypeError: can't convert Array into String - ruby 1.9.2

Hey all, I’m trying to setup a server with ruby 1.9.2 instead of the default chef version. I’ve got the bootstrap file in chef-repo/boostrap/ubuntu10.04_ruby192.erb.
When I try and run this command, it fails. Anyone have any idea what I’m doing wrong?

bash-3.2$ knife bootstrap ec2-50-16-81-106.compute-1.amazonaws.com -x ubuntu --distro      ubuntu10.04-ruby192
Bootstrapping Chef on ec2-50-16-81-106.compute-1.amazonaws.com
ERROR: TypeError: can't convert Array into String
 

very good website:

===== http://www.ccdeal.net// =====

The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations.

WE ACCEPT CREDIT CARD /WESTERN UNION PAYMENT YOU MUST NOT MISS IT!!!

Mar 11 '13 at 13:48
 
Answers: 3
3

In version of Chef 0.10.x prior to version 0.10.6, this is the error you receive if knife can’t find the bootstrap file you specified. I have seen this error caused by two related situations:

  1. Simply mispelled or missing bootstraps. Note that in the example in tis question, the bootstrap is ubuntu10.04-ruby192 but that the file is ubuntu10.04_ruby192.erb. The “–” should be a “_”

  2. As ahawthorne mentioned, not running the knife bootstrap command from the top of your Chef repository. Prior to 0.10.6, knife-bootstrap naively looked for custom bootstraps in the relative path “.chef/bootstrap/”.

The second issue is fixed in 0.10.6 and a more informative error message should be seen in the case of the first issue as well.

Answered
Dec 22 '11 at 14:24
 

very good website:

===== http://www.ccdeal.net// =====

The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations.

WE ACCEPT CREDIT CARD /WESTERN UNION PAYMENT YOU MUST NOT MISS IT!!!

Mar 11 '13 at 13:48
 
1

I was not clear in my last post. Apologies for “required directory”.

For example, with a directory structure like what is shown on https://github.com/jtimberman/chef-repo/ you need to run knife bootstrap (and possibly other knife commands) from /home/user/opscode/

I hope that clarifies a bit.

Answered
Dec 08 '11 at 19:48
 

very good website:

===== http://www.ccdeal.net// =====

The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations.

WE ACCEPT CREDIT CARD /WESTERN UNION PAYMENT YOU MUST NOT MISS IT!!!

Mar 11 '13 at 13:49
 
-1

We were experiencing the same issue. Take a look at your knife.rb file for relative paths and make sure you run knife from the required directory.

Answered
Sep 30 '11 at 16:49
 

Having the same issue and the relative paths seem to check out fine. knife.rb is also inside of my .chef directory inside of the chef-repo directory. Any other ideas?

Oct 05 '11 at 00:47
 

Also having the same problem.

Nov 09 '11 at 10:53
 

very good website:

===== http://www.ccdeal.net// =====

The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations.

WE ACCEPT CREDIT CARD /WESTERN UNION PAYMENT YOU MUST NOT MISS IT!!!

Mar 11 '13 at 13:49