[chef] Re: Re: Re: Re: Joomla is not working on ubuntu


Chronological Thread 
  • From: Venkatesh Ainalli < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Joomla is not working on ubuntu
  • Date: Wed, 2 Jul 2014 10:54:55 +0530

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:in `block in from_file'
  /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in `each'
  /var/chef/cookbooks/php-fpm/recipes/configure.rb:30:in `from_file'
  /var/chef/cookbooks/php-fpm/recipes/default.rb:22:in `from_file'
  /var/chef/cookbooks/joomla/recipes/default.rb:37:in `from_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 < " target="_blank"> > wrote:
Thanks will try


On Wed, Jul 2, 2014 at 1:12 AM, DV < " target="_blank"> > wrote:
I suggest you get the latest version of php-fpm cookbook:



On Wed, Jun 25, 2014 at 10:19 AM, Venkatesh Ainalli < " target="_blank"> > 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" < " target="_blank"> > wrote:


On Wednesday, June 25, 2014 at 5:59 AM, " target="_blank"> 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: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


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

--
Daniel DeLeo




--
Best regards, Dmitriy V.





Archive powered by MHonArc 2.6.16.

§