Problem when provisioning with Chef, but also with dpkg
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 , 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)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×