Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Nginx Chef recipe can potentially throw NoMethodError during AMI provisioning #66

Open
AndyJS opened this issue Aug 28, 2015 · 0 comments
Labels

Comments

@AndyJS
Copy link
Contributor

AndyJS commented Aug 28, 2015

Exception appears to rarely be an issue, but has been encountered whilst Packer provisions to t2.micro builder instance. This has not been observed since defaulting to t2.small instance_type in ami.json, but further investigation is needed. Re-running build.sh usually leads to a successful build.

Recipe: nginx::package
    amazon-ebs: * yum_package[nginx] action install
    amazon-ebs:
    amazon-ebs: ================================================================================
    amazon-ebs: Error executing action `install` on resource 'yum_package[nginx]'
    amazon-ebs: ================================================================================
    amazon-ebs:
    amazon-ebs: NoMethodError
    amazon-ebs: -------------
    amazon-ebs: undefined method `>' for nil:NilClass
    amazon-ebs:
    amazon-ebs: Resource Declaration:
    amazon-ebs: ---------------------
    amazon-ebs: # In /tmp/packer-chef-solo/cookbooks-0/nginx/recipes/package.rb
    amazon-ebs:
    amazon-ebs: 41: package node['nginx']['package_name'] do
    amazon-ebs: 42:   options package_install_opts
    amazon-ebs: 43:   notifies :reload, 'ohai[reload_nginx]', :immediately
    amazon-ebs: 44:   not_if 'which nginx'
    amazon-ebs: 45: end
    amazon-ebs: 46:
@AndyJS AndyJS added the bug label Aug 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant