Joomla is not working on ubuntu


#1

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:inblock in
from_file’,/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in
each',/var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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:ineach’,/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in
from_file',/var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_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:inblock in from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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:inblock in from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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:infrom_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

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:inblock in from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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:infrom_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:inload_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:ineach’
/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:ininclude_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:ininstance_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:inload_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:inblock 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:incompile_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:inload’
/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:insetup_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:inblock 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:inrun’
/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:inblock 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:inrun_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'
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)


#2

On Wednesday, June 25, 2014 at 5:59 AM, venki.ain@gmail.com wrote:

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

================================================================================
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:inblock in from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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

This means the pool variable is an Array and not a Hash (or Hash-like thing).


Daniel DeLeo


#3

I’m new to chef cookbook can you please give little more details to make it
work
On Jun 25, 2014 10:21 PM, “Daniel DeLeo” dan@kallistec.com wrote:

On Wednesday, June 25, 2014 at 5:59 AM, venki.ain@gmail.com wrote:

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

================================================================================

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:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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

This means the pool variable is an Array and not a Hash (or Hash-like
thing).


Daniel DeLeo


#4

I suggest you get the latest version of php-fpm cookbook:

On Wed, Jun 25, 2014 at 10:19 AM, Venkatesh Ainalli venki.ain@gmail.com
wrote:

I’m new to chef cookbook can you please give little more details to make
it work
On Jun 25, 2014 10:21 PM, “Daniel DeLeo” dan@kallistec.com wrote:

On Wednesday, June 25, 2014 at 5:59 AM, venki.ain@gmail.com wrote:

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

================================================================================

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:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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

This means the pool variable is an Array and not a Hash (or Hash-like
thing).


Daniel DeLeo


Best regards, Dmitriy V.


#5

Thanks will try

On Wed, Jul 2, 2014 at 1:12 AM, DV vindimy@gmail.com wrote:

I suggest you get the latest version of php-fpm cookbook:

https://github.com/yevgenko/cookbook-php-fpm

On Wed, Jun 25, 2014 at 10:19 AM, Venkatesh Ainalli venki.ain@gmail.com
wrote:

I’m new to chef cookbook can you please give little more details to make
it work
On Jun 25, 2014 10:21 PM, “Daniel DeLeo” dan@kallistec.com wrote:

On Wednesday, June 25, 2014 at 5:59 AM, venki.ain@gmail.com wrote:

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

================================================================================

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:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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

This means the pool variable is an Array and not a Hash (or Hash-like
thing).


Daniel DeLeo


Best regards, Dmitriy V.


#6

Hi
Tried with latest php-fpm getting same issue.

Starting Chef Client, version 11.12.8
Compiling Cookbooks…

================================================================================
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/configure.rb:31:in []' /var/chef/cookbooks/php-fpm/recipes/configure.rb:31:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in each' /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:infrom_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:22:in from_file' /var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_file’

Relevant File Content:

/var/chef/cookbooks/php-fpm/recipes/configure.rb:

24: owner "root"
25: group "root"
26: notifies :restart, "service[php-fpm]"
27: end
28:
29: if node[‘php-fpm’][‘pools’]
30: node[‘php-fpm’][‘pools’].each do |pool|
31>> php_fpm_pool pool[:name] do
32: pool.each do |k, v|
33: self.params[k.to_sym] = v
34: end
35: end
36: end
37: end
38:

Running handlers:
[2014-07-01T22:12:49-07:00] ERROR: Running exception handlers
Running handlers complete

On Wed, Jul 2, 2014 at 9:12 AM, Venkatesh Ainalli venki.ain@gmail.com
wrote:

Thanks will try

On Wed, Jul 2, 2014 at 1:12 AM, DV vindimy@gmail.com wrote:

I suggest you get the latest version of php-fpm cookbook:

https://github.com/yevgenko/cookbook-php-fpm

On Wed, Jun 25, 2014 at 10:19 AM, Venkatesh Ainalli venki.ain@gmail.com
wrote:

I’m new to chef cookbook can you please give little more details to make
it work
On Jun 25, 2014 10:21 PM, “Daniel DeLeo” dan@kallistec.com wrote:

On Wednesday, June 25, 2014 at 5:59 AM, venki.ain@gmail.com wrote:

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

================================================================================

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:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:132:in each' /var/chef/cookbooks/php-fpm/recipes/default.rb:132:infrom_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

This means the pool variable is an Array and not a Hash (or Hash-like
thing).


Daniel DeLeo


Best regards, Dmitriy V.


#7

On Tuesday, July 1, 2014 at 10:24 PM, Venkatesh Ainalli wrote:

Hi
Tried with latest php-fpm getting same issue.

Starting Chef Client, version 11.12.8
Compiling Cookbooks…

================================================================================
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/configure.rb:31:in []' /var/chef/cookbooks/php-fpm/recipes/configure.rb:31:inblock in from_file’
/var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in each' /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:infrom_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:22:in from_file' /var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_file’

Relevant File Content:

/var/chef/cookbooks/php-fpm/recipes/configure.rb:

24: owner "root"
25: group "root"
26: notifies :restart, "service[php-fpm]"
27: end
28:
29: if node[‘php-fpm’][‘pools’]
30: node[‘php-fpm’][‘pools’].each do |pool|
31>> php_fpm_pool pool[:name] do

where does the attribute node['php-fpm']['pools’] get set? It looks like it’s expected to be an Array of Hashes, like

[ {“name” => name, key2 => value2, …}, { “name” => name2, …} ]

but you have set it to an Array.


Daniel DeLeo


#8

Hey Venkatesh,

Could you tell us which Jomla cookbook you’re using? I couldn’t find one on
the community site. I did find this one
https://github.com/brint/chef-joomla/ on Github. If that’s the one you’re
using, I notice that their attributes file
https://github.com/brint/chef-joomla/blob/master/attributes/default.rb#L141-L153
has some… problems. At the very least, one line calls the attribute
default[‘php-fpm’][‘pools’] and the rest calls it default[‘php-fpm’][‘pool’]
(no ‘s’), but there might be others.

Matt Moretti

On Wed, Jul 2, 2014 at 11:22 AM, Daniel DeLeo dan@kallistec.com wrote:

On Tuesday, July 1, 2014 at 10:24 PM, Venkatesh Ainalli wrote:

Hi
Tried with latest php-fpm getting same issue.

Starting Chef Client, version 11.12.8
Compiling Cookbooks…

================================================================================

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/configure.rb:31:in []' /var/chef/cookbooks/php-fpm/recipes/configure.rb:31:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in each' /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:infrom_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:22:in from_file' /var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_file’

Relevant File Content:

/var/chef/cookbooks/php-fpm/recipes/configure.rb:

24: owner "root"
25: group "root"
26: notifies :restart, "service[php-fpm]"
27: end
28:
29: if node[‘php-fpm’][‘pools’]
30: node[‘php-fpm’][‘pools’].each do |pool|
31>> php_fpm_pool pool[:name] do

where does the attribute node['php-fpm']['pools’] get set? It looks like
it’s expected to be an Array of Hashes, like

[ {“name” => name, key2 => value2, …}, { “name” => name2, …} ]

but you have set it to an Array.


Daniel DeLeo


#9

Hi Mathew,
I’m using joomla from Github https://github.com/brint/chef-joomla

On Wed, Jul 2, 2014 at 9:28 PM, Matthew Moretti werebus@gmail.com wrote:

Hey Venkatesh,

Could you tell us which Jomla cookbook you’re using? I couldn’t find one
on the community site. I did find this one
https://github.com/brint/chef-joomla/ on Github. If that’s the one
you’re using, I notice that their attributes file
https://github.com/brint/chef-joomla/blob/master/attributes/default.rb#L141-L153
has some… problems. At the very least, one line calls the attribute
default[‘php-fpm’][‘pools’] and the rest calls it
default[‘php-fpm’][‘pool’] (no ‘s’), but there might be others.

Matt Moretti

On Wed, Jul 2, 2014 at 11:22 AM, Daniel DeLeo dan@kallistec.com wrote:

On Tuesday, July 1, 2014 at 10:24 PM, Venkatesh Ainalli wrote:

Hi
Tried with latest php-fpm getting same issue.

Starting Chef Client, version 11.12.8
Compiling Cookbooks…

================================================================================

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/configure.rb:31:in []' /var/chef/cookbooks/php-fpm/recipes/configure.rb:31:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in each' /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:infrom_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:22:in from_file' /var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_file’

Relevant File Content:

/var/chef/cookbooks/php-fpm/recipes/configure.rb:

24: owner "root"
25: group "root"
26: notifies :restart, "service[php-fpm]"
27: end
28:
29: if node[‘php-fpm’][‘pools’]
30: node[‘php-fpm’][‘pools’].each do |pool|
31>> php_fpm_pool pool[:name] do

where does the attribute node['php-fpm']['pools’] get set? It looks
like it’s expected to be an Array of Hashes, like

[ {“name” => name, key2 => value2, …}, { “name” => name2, …} ]

but you have set it to an Array.


Daniel DeLeo


#10

Yes, that’s the one I linked to. I would say you’re definitely running up
agains a bug in that cookbook. They’ve defined some attributes for the
php-fpm cookbook to use that aren’t in the right format. You should
contact the author of the Joomla cookbook (maybe file an issue on their
Github repository?) with your issue. If that doesn’t work out, then you
might end up having to fix it yourself.

Matt Moretti

On Wed, Jul 2, 2014 at 12:04 PM, Venkatesh Ainalli venki.ain@gmail.com
wrote:

Hi Mathew,
I’m using joomla from Github https://github.com/brint/chef-joomla

On Wed, Jul 2, 2014 at 9:28 PM, Matthew Moretti werebus@gmail.com wrote:

Hey Venkatesh,

Could you tell us which Jomla cookbook you’re using? I couldn’t find one
on the community site. I did find this one
https://github.com/brint/chef-joomla/ on Github. If that’s the one
you’re using, I notice that their attributes file
https://github.com/brint/chef-joomla/blob/master/attributes/default.rb#L141-L153
has some… problems. At the very least, one line calls the attribute
default[‘php-fpm’][‘pools’] and the rest calls it
default[‘php-fpm’][‘pool’] (no ‘s’), but there might be others.

Matt Moretti

On Wed, Jul 2, 2014 at 11:22 AM, Daniel DeLeo dan@kallistec.com wrote:

On Tuesday, July 1, 2014 at 10:24 PM, Venkatesh Ainalli wrote:

Hi
Tried with latest php-fpm getting same issue.

Starting Chef Client, version 11.12.8
Compiling Cookbooks…

================================================================================

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/configure.rb:31:in []' /var/chef/cookbooks/php-fpm/recipes/configure.rb:31:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in each' /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:infrom_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:22:in from_file' /var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_file’

Relevant File Content:

/var/chef/cookbooks/php-fpm/recipes/configure.rb:

24: owner "root"
25: group "root"
26: notifies :restart, "service[php-fpm]"
27: end
28:
29: if node[‘php-fpm’][‘pools’]
30: node[‘php-fpm’][‘pools’].each do |pool|
31>> php_fpm_pool pool[:name] do

where does the attribute node['php-fpm']['pools’] get set? It looks
like it’s expected to be an Array of Hashes, like

[ {“name” => name, key2 => value2, …}, { “name” => name2, …} ]

but you have set it to an Array.


Daniel DeLeo


#11

Thank you for your time Mathew and Dani
On Jul 2, 2014 11:01 PM, “Matthew Moretti” werebus@gmail.com wrote:

Yes, that’s the one I linked to. I would say you’re definitely running up
agains a bug in that cookbook. They’ve defined some attributes for the
php-fpm cookbook to use that aren’t in the right format. You should
contact the author of the Joomla cookbook (maybe file an issue on their
Github repository?) with your issue. If that doesn’t work out, then you
might end up having to fix it yourself.

Matt Moretti

On Wed, Jul 2, 2014 at 12:04 PM, Venkatesh Ainalli venki.ain@gmail.com
wrote:

Hi Mathew,
I’m using joomla from Github https://github.com/brint/chef-joomla

On Wed, Jul 2, 2014 at 9:28 PM, Matthew Moretti werebus@gmail.com
wrote:

Hey Venkatesh,

Could you tell us which Jomla cookbook you’re using? I couldn’t find one
on the community site. I did find this one
https://github.com/brint/chef-joomla/ on Github. If that’s the one
you’re using, I notice that their attributes file
https://github.com/brint/chef-joomla/blob/master/attributes/default.rb#L141-L153
has some… problems. At the very least, one line calls the attribute
default[‘php-fpm’][‘pools’] and the rest calls it
default[‘php-fpm’][‘pool’] (no ‘s’), but there might be others.

Matt Moretti

On Wed, Jul 2, 2014 at 11:22 AM, Daniel DeLeo dan@kallistec.com wrote:

On Tuesday, July 1, 2014 at 10:24 PM, Venkatesh Ainalli wrote:

Hi
Tried with latest php-fpm getting same issue.

Starting Chef Client, version 11.12.8
Compiling Cookbooks…

================================================================================

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/configure.rb:31:in []' /var/chef/cookbooks/php-fpm/recipes/configure.rb:31:inblock in
from_file’
/var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in each' /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:infrom_file’
/var/chef/cookbooks/php-fpm/recipes/default.rb:22:in from_file' /var/chef/cookbooks/joomla/recipes/default.rb:37:infrom_file’

Relevant File Content:

/var/chef/cookbooks/php-fpm/recipes/configure.rb:

24: owner "root"
25: group "root"
26: notifies :restart, "service[php-fpm]"
27: end
28:
29: if node[‘php-fpm’][‘pools’]
30: node[‘php-fpm’][‘pools’].each do |pool|
31>> php_fpm_pool pool[:name] do

where does the attribute node['php-fpm']['pools’] get set? It looks
like it’s expected to be an Array of Hashes, like

[ {“name” => name, key2 => value2, …}, { “name” => name2, …} ]

but you have set it to an Array.


Daniel DeLeo