MiniCodeMonkey / Vagrant-LAMP-Stack

A dead-simple LAMP stack without any bells and whistles for your basic Linux/Apache/MySQL/PHP install.
431 stars 173 forks source link

Error executing action `install` on resource 'package[php5-cgi]' #32

Open syropian opened 10 years ago

syropian commented 10 years ago

I think I almost got this thing working, but right at the end, it fails:

Error executing action `install` on resource 'package[php5-cgi]'
==> cider: [2014-10-18T13:41:18+00:00] INFO: Forking chef instance to converge...
==> cider: [2014-10-18T13:41:18+00:00] INFO: *** Chef 11.6.0 ***
==> cider: [2014-10-18T13:41:19+00:00] INFO: Setting the run_list to ["recipe[app::packages]", "recipe[app::web_server]", "recipe[app::vhost]", "recipe[memcached]", "recipe[app::db]"] from JSON
==> cider: [2014-10-18T13:41:19+00:00] INFO: Run List is [recipe[app::packages], recipe[app::web_server], recipe[app::vhost], recipe[memcached], recipe[app::db]]
==> cider: [2014-10-18T13:41:19+00:00] INFO: Run List expands to [app::packages, app::web_server, app::vhost, memcached, app::db]
==> cider: [2014-10-18T13:41:19+00:00] INFO: Starting Chef Run for ciderdev
==> cider: [2014-10-18T13:41:19+00:00] INFO: Running start handlers
==> cider: [2014-10-18T13:41:19+00:00] INFO: Start handlers complete.
==> cider: [2014-10-18T13:41:19+00:00] ERROR: Running exception handlers
==> cider: [2014-10-18T13:41:19+00:00] ERROR: Exception handlers complete
==> cider: [2014-10-18T13:41:19+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> cider: [2014-10-18T13:41:19+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.
Sokka commented 9 years ago

Wanted to get this working quickly so locked the versions to about the same time as the repo and that did the trick for a quick fix.

Try changing the Berksfile to

source "https://supermarket.getchef.com"

cookbook 'apache2', '<=1.10.4'
cookbook 'apt', '<=2.4.0'
cookbook 'build-essential', '<=2.0.4'
cookbook 'dotdeb', git: 'git://github.com/tomcoonen/chef-dotdeb.git'
cookbook 'memcached'
cookbook 'mysql', '<=5.6.1'
cookbook 'openssl'
cookbook 'php', '<=1.4.6'
cookbook 'postfix'
cookbook 'app', path: './site-cookbooks/app'