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


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

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 < " target="_blank"> > 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 on Github. If that’s the one you’re using, I notice that their attributes file 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 < " target="_blank"> > 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: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


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






Archive powered by MHonArc 2.6.16.

§