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

"ERROR: Cookbook apt not found" when running packer build command #1

Closed
maoo opened this issue Apr 12, 2014 · 1 comment
Closed

"ERROR: Cookbook apt not found" when running packer build command #1

maoo opened this issue Apr 12, 2014 · 1 comment

Comments

@maoo
Copy link
Contributor

maoo commented Apr 12, 2014

I've followed this tutorial to integrate packer in the Chef + Vagrant logic - http://engineering.cotap.com/post/78783269747/hello-world-using-packer-chef-and-berkshelf-on-ec2

I can successfully run packer validate packer/allinone.json but when I run packer build -var 'aws_access_key=YOUR ACCESS KEY' -var 'aws_secret_key=YOUR SECRET KEY' packer/allinone.json I get the following error

    amazon-ebs: [2014-04-12T10:54:36+00:00] ERROR: Running exception handlers
    amazon-ebs: Running handlers complete
    amazon-ebs: [2014-04-12T10:54:36+00:00] ERROR: Exception handlers complete
    amazon-ebs: [2014-04-12T10:54:36+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
    amazon-ebs: Chef Client failed. 0 resources updated in 4.73935002 seconds
    amazon-ebs: [2014-04-12T10:54:36+00:00] ERROR: Cookbook apt not found. If you're loading apt from another cookbook, make sure you configure the dependency in your metadata
    amazon-ebs:
    amazon-ebs: [2014-04-12T10:54:36+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Please checkout branch https://github.com/maoo/vagrant-alfresco-boxes/tree/remove-deploy-logic to reproduce the issue

@maoo
Copy link
Contributor Author

maoo commented Apr 12, 2014

The discussion about these features was triggered on AlfrescoLabs/chef-alfresco#1

/CC @dhartford

maoo pushed a commit that referenced this issue Apr 12, 2014
…to top-level, using vendor-cookbooks as tempoary (and .gitignored) folder to fetch cookbooks with Berkshelf and use them from Packer
@maoo maoo closed this as completed Apr 12, 2014
maoo pushed a commit that referenced this issue Jan 19, 2016
added vagrantbox configurations
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant