- From: <
>
- To:
- Subject: [chef] Joomla is not working on ubuntu
- Date: Wed, 25 Jun 2014 05:59:50 -0700 (PDT)
tried to deploy joomla cookbook on ubuntu and found following issues.
1.Its not compatible with latest mysql cookbook.
joomla is having mysql::ruby this recipe does not exits in latest mysql.
2.So used older version 2.9.1 of package mysql and got following error
[2014-06-25T12:52:30+00:00] DEBUG: Loading Recipe zip::default via
include_recipe
[2014-06-25T12:52:30+00:00] DEBUG: Found recipe default in cookbook zip
[2014-06-25T12:52:30+00:00] DEBUG: Loading Recipe php-fpm::default via
include_recipe
[2014-06-25T12:52:30+00:00] DEBUG: Found recipe default in cookbook php-fpm
[2014-06-25T12:52:30+00:00] DEBUG: filtered backtrace of compile error:
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in
`[]',/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `block in
from_file',/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in
`each',/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in
`from_file',/var/chef/cookbooks/joomla/recipes/default.rb:37:in `from_file'
[2014-06-25T12:52:30+00:00] DEBUG: filtered backtrace of compile error:
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in
`[]',/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `block in
from_file',/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in
`each',/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in
`from_file',/var/chef/cookbooks/joomla/recipes/default.rb:37:in `from_file'
[2014-06-25T12:52:30+00:00] DEBUG: backtrace entry for compile error:
'/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `[]''
[2014-06-25T12:52:30+00:00] DEBUG: Line number of compile error: '133'
================================================================================
Recipe Compile Error in /var/chef/cookbooks/joomla/recipes/default.rb
================================================================================
TypeError
---------
can't convert Symbol into Integer
Cookbook Trace:
---------------
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `[]'
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `block in from_file'
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in `each'
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in `from_file'
/var/chef/cookbooks/joomla/recipes/default.rb:37:in `from_file'
Relevant File Content:
----------------------
/var/chef/cookbooks/php-fpm/recipes/default.rb:
126: service_name php_fpm_service_name
127: supports :start => true, :stop => true, :restart => true, :reload =>
true
128: action [ :enable, :start ]
129: end
130:
131: if node['php-fpm']['pools']
132: node['php-fpm']['pools'].each do |pool|
133>> php_fpm_pool pool[:name] do
134: pool.each do |k, v|
135: self.params[k.to_sym] = v
136: end
137: end
138: end
139: end
140:
[2014-06-25T12:52:30+00:00] DEBUG: Re-raising exception: TypeError - can't
convert Symbol into Integer
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `[]'
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `block in from_file'
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in `each'
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:237:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:134:in
`block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/dsl/include_recipe.rb:26:in
`include_recipe'
/var/chef/cookbooks/joomla/recipes/default.rb:37:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:237:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:140:in
`block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:138:in
`each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:138:in
`compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:75:in
`compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:88:in
`load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/policy_builder/expand_node_object.rb:73:in
`setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:265:in
`setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:429:in
`do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:213:in
`block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in
`fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in
`run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:217:in
`run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:221:in
`block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in
`loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in
`run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:67:in
`run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/bin/chef-solo:25:in
`<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
Running handlers:
[2014-06-25T12:52:30+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-06-25T12:52:30+00:00] ERROR: Exception handlers complete
[2014-06-25T12:52:30+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2014-06-25T12:52:30+00:00] DEBUG: TypeError: can't convert Symbol into
Integer
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `[]'
/var/chef/cookbooks/php-fpm/recipes/default.rb:133:in `block in from_file'
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in `each'
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:237:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:134:in
`block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/dsl/include_recipe.rb:26:in
`include_recipe'
/var/chef/cookbooks/joomla/recipes/default.rb:37:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:237:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:140:in
`block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:138:in
`each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:138:in
`compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:75:in
`compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:88:in
`load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/policy_builder/expand_node_object.rb:73:in
`setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:265:in
`setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:429:in
`do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:213:in
`block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in
`fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in
`run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:217:in
`run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:221:in
`block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in
`loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in
`run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:67:in
`run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/bin/chef-solo:25:in
`<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
Chef Client failed. 9 resources updated in 118.649749891 seconds
[2014-06-25T12:52:30+00:00] ERROR: can't convert Symbol into Integer
[2014-06-25T12:52:30+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef
run process exited unsuccessfully (exit code 1)
- [chef] Joomla is not working on ubuntu, venki.ain, 06/25/2014
Archive powered by MHonArc 2.6.16.