Hi , I tried to follow
http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
installation guide and when ran chef-solo command got this error message :
chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
[2012-07-26T15:07:21+03:00] FATAL: Could not parse the provided JSON file
(/root/chef.json)!: 743: unexpected token at ‘{
“chef_server”: {
“server_url”: "http://localhost:4000"
“init_style”: “init”
},
“run_list”: [ “recipe[chef-server::rubygems-install]” ]
}
’
OS level is centOS 6.2 64 bits .
Chef version is 10.12.0 .
Regards ,
/Vlad .
You are missing a comma after the server URL value.
Sent from my iPhone
On Jul 26, 2012, at 6:54 AM, vlad.berezovski@gmail.com wrote:
Hi , I tried to follow
http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
installation guide and when ran chef-solo command got this error message :
chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
[2012-07-26T15:07:21+03:00] FATAL: Could not parse the provided JSON file
(/root/chef.json)!: 743: unexpected token at '{
"chef_server": {
"server_url": "http://localhost:4000"
"init_style": "init"
},
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}
'
OS level is centOS 6.2 64 bits .
Chef version is 10.12.0 .
Regards ,
/Vlad .
Hi Vlad,
There doesn't appear to be a comma after the localhost attribute.
--
Hector
On Jul 26, 2012 8:09 AM, vlad.berezovski@gmail.com wrote:
Hi , I tried to follow
http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
installation guide and when ran chef-solo command got this error
message :
chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
[2012-07-26T15:07:21+03:00] FATAL: Could not parse the provided JSON file
(/root/chef.json)!: 743: unexpected token at '{
"chef_server": {
"server_url": "http://localhost:4000"
"init_style": "init"
},
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}
'
OS level is centOS 6.2 64 bits .
Chef version is 10.12.0 .
Regards ,
/Vlad .
I use this site all the time when working with chef-solo:
Sascha Bates
| sascha.bates@gmail.com | 612 850 0444 | sascha.bates@skype | sascha_bates@yahoo |
On 7/26/12 6:54 AM, vlad.berezovski@gmail.com wrote:
Hi , I tried to follow
http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
installation guide and when ran chef-solo command got this error message :
chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
[2012-07-26T15:07:21+03:00] FATAL: Could not parse the provided JSON file
(/root/chef.json)!: 743: unexpected token at '{
"chef_server": {
"server_url": "http://localhost:4000"
"init_style": "init"
},
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}
'
OS level is centOS 6.2 64 bits .
Chef version is 10.12.0 .
Regards ,
/Vlad .
Thanks , this solved the problem .
Will continue with Chef setup .
/Vlad
On Thu, Jul 26, 2012 at 3:22 PM, Sascha Bates sascha.bates@gmail.comwrote:
I use this site all the time when working with chef-solo:
http://jsonlint.com/
Sascha Bates
| sascha.bates@gmail.com | 612 850 0444 | sascha.bates@skype |
sascha_bates@yahoo |
On 7/26/12 6:54 AM, vlad.berezovski@gmail.com wrote:
Hi , I tried to follow
http://wiki.opscode.com/**display/chef/Installing+Chef+**
Server+using+Chef+Solohttp://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
installation guide and when ran chef-solo command got this error
message :
chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r
http://s3.amazonaws.com/chef-**solo/bootstrap-latest.tar.gzhttp://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
[2012-07-26T15:07:21+03:00] FATAL: Could not parse the provided JSON file
(/root/chef.json)!: 743: unexpected token at '{
"chef_server": {
"server_url": "http://localhost:4000"
"init_style": "init"
},
"run_list": [ "recipe[chef-server::rubygems-**install]" ]
}
'
OS level is centOS 6.2 64 bits .
Chef version is 10.12.0 .
Regards ,
/Vlad .