Fail to run `vagrant up` with chef, berkshelf and automatic box downloading
Closed this issue · 1 comments
nabam commented
It looks like reincarnation of #158
When box already available in local repository it works fine. Running vagrant reload
also fixes the issue.
$ vagrant plugin list
vagrant-berkshelf (4.0.4)
vagrant-lxc (1.1.0)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.4, system)
$ vagrant -v
Vagrant 1.7.4
$ berks -v
3.2.4
Bringing machine 'default' up with 'lxc' provider...
default: The Berkshelf shelf is at "/home/vagrant/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150909-7053-wc5607-default"
==> default: Sharing cookbooks with VM
==> default: Box 'fgrehm/trusty64-lxc' could not be found. Attempting to find and install...
default: Box Provider: lxc
default: Box Version: 1.2.0
==> default: Loading metadata for box 'fgrehm/trusty64-lxc'
default: URL: https://atlas.hashicorp.com/fgrehm/trusty64-lxc
==> default: Adding box 'fgrehm/trusty64-lxc' (v1.2.0) for provider: lxc
default: Downloading: https://atlas.hashicorp.com/fgrehm/boxes/trusty64-lxc/versions/1.2.0/providers/lxc.box
==> default: Successfully added box 'fgrehm/trusty64-lxc' (v1.2.0) for 'lxc'!
...
==> default: Setting up mount entries for shared folders...
default: /vagrant => /home/vagrant/chef-repo
default: /var/cache/apt/archives => /var/cache/apt/archives
default: /tmp/vagrant-chef/08af36ca1a158076ddf583914dfba3be/roles => /home/vagrant/chef-repo/roles
default: /tmp/vagrant-chef/95ef92cc675398028aa42558b17b27d5/cookbooks => /home/vagrant/chef-repo/cookbooks
default: /tmp/vagrant-chef/762bda64c77cb6cb17758b33a9fda3f4/data_bags => /home/vagrant/chef-repo/data_bags_vagrant
...
==> default: [2015-09-09T19:04:16+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-09-09T19:04:16+00:00] ERROR: Cookbook apt not found. If you're loading apt from another cookbook, make sure you configure the dependency in your metadata
==> default: [2015-09-09T19:04:16+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Full log: https://gist.github.com/nabam/e9c7766117f22e4f792f
After vagrant reload
or if box available locally:
default: /tmp/vagrant-chef/69816df4ef0cad84c6360ab1f9613681/cookbooks => /home/vagrant/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150909-7053-wc5607-default