Closed nicolopignatelli closed 10 years ago
Hmmm I cannot confirm this locally on Chef 11.6.0, which I just tested right now. I imagine this has something to do with how AWS Opsworks, well, works.
The error:
ERROR: Caught exception while compiling opsworks custom run list: NoMethodError - undefined method `[]' for nil:NilClass - /opt/aws/opsworks/releases/20130806085854_205/site-cookbooks/wkhtmltopdf/recipes/wkhtmltopdf_binary.rb:2:in `from_file'
Is complaining about this line:
download_dest = File.join(cache_dir, "#{node['wkhtmltopdf']['wkhtmltopdf']['binary_full_name']}.tar.bz2")
Which makes me think it has something to do with not being able to read node attributes although I cannot see anything obvious in their documentation to suggest needing to do anything special to get cookbook attributes working. Are you still having this issue? Is there something that needs to be done to get this to work on Opsworks?
No, it should work seamlessly, and that's why it's so weird. 99% is an OpsWorks related issue. Anyway, I directly embedded wkhtmltopdf into my project, so I do not need the recipe anymore, but I will make another attempt to test if something has changed since I created this issue.
Still working with fresh 11.8.2 installation. I'm going to close this for now since it seems to be an Opsworks issue. If there's something extra we need to be doing for supporting that environment, please reopen. Thanks!
As in subject, the following error is fired during setup of a node using Cheff 11.4