I’m new to Chef, but from what I can tell this has to do with dpkg. Any thoughts?
Running handlers:
[2014-09-22T15:50:26-04:00] ERROR: Running exception handlers
Running handlers complete
[2014-09-22T15:50:26-04:00] ERROR: Exception handlers complete
[2014-09-22T15:50:26-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated in 32.856243327 seconds
[2014-09-22T15:50:26-04:00] ERROR: package[nginx] (nginx::default line 10) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install nginx=1.4.6-1ubuntu3.1 ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
fontconfig-config libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8
libtiff5 libvpx1 libxpm4 libxslt1.1 nginx-common nginx-core
Suggested packages:
libgd-tools fcgiwrap nginx-doc
The following NEW packages will be installed:
fontconfig-config libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8
libtiff5 libvpx1 libxpm4 libxslt1.1 nginx nginx-common nginx-core
0 upgraded, 13 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,703 kB of archives.
After this operation, 6,088 kB of additional disk space will be used.
Selecting previously unselected package fontconfig-config.
(Reading database ... 140901 files and directories currently installed.)
Preparing to unpack .../fontconfig-config_2.11.0-0ubuntu4.1_all.deb ...
STDERR: debconf: apt-extracttemplates failed: No such file or directory
dpkg: unrecoverable fatal error, aborting:
fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)
---- End output of apt-get -q -y install nginx=1.4.6-1ubuntu3.1 ----
Ran apt-get -q -y install nginx=1.4.6-1ubuntu3.1 returned 100
[2014-09-22T15:50:26-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
That’s very strange… Does the file /usr/bin/apt-extracttemplates exist on the the system?
$ dpkg -S /usr/bin/apt-extracttemplates
apt-utils: /usr/bin/apt-extracttemplates
It should be available on most systems as the apt-utils package is a dependency of ubuntu-minimal
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.