-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recipe compile error #32
Comments
I'm having the same issue. |
guys, do you've an example of chef repo with that problem or some additional tips to help me reproduce the problem? I created my_site cookbook with |
Could you try it with a CentOS 6.4 box? If it still works, I can try to get you more info when I'm back in the office. |
Ok, trying with the following box now |
Ok, same issue here, used the following box because previous was too minimal (without chef): |
Actually in my case it failed earlier
|
Above issue gone after I added |
Also tried with Chef 11.6.0, with in the following build: Works fine as far as dependency is specified, otherwise I'm getting error, but it looks a bit different versus what you have @ameir Could you please verify and possible provide more info for me? :) Thanks. |
For what it's worth, I caused this error by mistakenly ignoring the directions and assuming that the pool name would be its key. I did {
"php-fpm": {
"pools": {
"www": {
"listen": "127.0.0.1:9000"
}
}
}
} I needed: {
"php-fpm": {
"pools": [
{
"name": "www",
"listen": "127.0.0.1:9000"
}
]
}
} |
@ameir what do you think about it? |
Sorry for the delayed reply, @yevgenko. I ended up making some local tweaks to the cookbook to work around this a while back, and haven't had a chance to revert back to the original version due to time constraints. Feel free to close, unless @peteraba or others are still running into problems. Thanks! |
I am running into this issue as well.
|
I am using version 0.6.8 of cookbook for php-fpm now. It is caused by wrong expression of array in "attributes/default.rb". default['php-fpm']['pools'] = {'name' => ['www'], 'listen' => ['127.0.0.1:9000']} Also the 'each' statement in "recipes/default.rb" should be as follow. if node['php-fpm']['pools']
node['php-fpm']['pools'].each do |k,v|
self.params[k.to_sym] = v
end
end I could make a progress tentatively. |
Any update on this issue? I'm running in the same issue on CentOS |
I had an issue in my own recipe that caused this error. Everything is working good now. |
We had a related issue that was also resolved by using the attributes syntax specified by @raskolnikoff. This issue can probably be marked as resolved, I think. |
When I simply do
include_recipe "php-fpm"
, I get a recipe compile error. If I use the definition directly and install PHP-FPM from another recipe, it works fine. I think the solution would be to remove:default['php-fpm']['pools'] = [ { :name => "www" } ]
from the attributes.
Stack trace:
The text was updated successfully, but these errors were encountered: