Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with Chef build-essential cookbook on ubuntu 12.04

I am trying to get an nginx/unicorn ruby app server configured with chef. The problem I am running into is a dependency on the build-essential cookbook which when run, results in the output:

================================================================================
Error executing action `install` on resource 'package[build-essential]'
================================================================================


Chef::Exceptions::Exec
----------------------
apt-get -q -y install build-essential=11.5ubuntu2 returned 100, expected 0

I am still pretty new to chef and am not sure why this is happening. Any ideas?

like image 267
chrishomer Avatar asked Dec 06 '22 12:12

chrishomer


1 Answers

As soon as I posted this it occurred to me that maybe apt wasn't updating first. Sure enough, I needed to have the apt cookbook installed and in the run list ahead of nginx. This solves the problem.

like image 175
chrishomer Avatar answered Dec 11 '22 10:12

chrishomer