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


Chronological Thread 
  • From: DV < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Joomla is not working on ubuntu
  • Date: Tue, 1 Jul 2014 12:42:13 -0700

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.

§