[chef] Re: Issue running tomcat cookbook on Ubuntu


Chronological Thread 
  • From: Michael Goetz < >
  • To: < >, Ricardo Mayerhofer < >
  • Cc:
  • Subject: [chef] Re: Issue running tomcat cookbook on Ubuntu
  • Date: Tue, 10 Sep 2013 16:11:11 -0500

My first guess would be your apt-cache is out of date possibly? Try running an apt-get update and then re-run chef-client to validate. If that solves it, you can put an apt-get update in your recipe or include the apt cookbook (which I believe does this by default) in your run list.

Michael Goetz — Automation Consulting Engineer

651-271-7121 –  " style="color: rgb(105, 117, 130); ">  – my: Linkedin  Twitter

OPSCODE

CODE CAN

opscode.com   Blog   Facebook   Twitter   YouTube

On September 10, 2013 at 4:08:32 PM, Ricardo Mayerhofer ( ) wrote:

Hi all,
I'm trying to run the tomcat cookbook (http://community.opscode.com/cookbooks/tomcat) on an Ubuntu box, but I'm getting the following error:

162.209.81.190 Recipe: java::openjdk←[0m
162.209.81.190
162.209.81.190   * bash[update-java-alternatives] action nothing←[0m
162.209.81.190  (skipped due to action :nothing)←[0m
162.209.81.190
162.209.81.190   * package[openjdk-6-jdk] action install←[0m
162.209.81.190 ←[0m
162.209.81.190
162.209.81.190 =================================================================
===============←[0m
162.209.81.190
162.209.81.190 ←[31mError executing action `install` on resource 'package[openjdk-6-jdk]'←[0m
162.209.81.190
162.209.81.190 =================================================================
===============←[0m
162.209.81.190
162.209.81.190
162.209.81.190 ←[0m
162.209.81.190
162.209.81.190 Chef::Exceptions::Exec←[0m
162.209.81.190
162.209.81.190 ----------------------←[0m
162.209.81.190
162.209.81.190 apt-get -q -y install openjdk-6-jdk=6b27-1.12.5-0ubuntu0.12.04.1 returned 100, expected 0←[0m
162.209.81.190
162.209.81.190
162.209.81.190 ←[0m

Any suggestion on how to fix it?

Thanks,

--
Ricardo Mayerhofer



Archive powered by MHonArc 2.6.16.

§