Installing Jenkins on Scalarium (Issues running java chef setup commands)

drice's Avatar

drice

08 Mar, 2012 06:29 PM

Hi there, I'm trying to install Jenkins on Scalarium.

I've published my cookbooks here http://github.com/rumblelabs/rumble-cookbooks
Am using the apt and java recipes from the scalarium example cookbooks.

The problem I have is I'm having trouble with the Java chef recipes.

Here is an excerpt from the logs of the failing step.

[Thu, 08 Mar 2012 18:03:09 +0000] DEBUG: Checking apt-cache policy for sun-java6-jre
[Thu, 08 Mar 2012 18:03:10 +0000] DEBUG: Current version is nil
[Thu, 08 Mar 2012 18:03:10 +0000] DEBUG: Candidate version is (none)
[Thu, 08 Mar 2012 18:03:10 +0000] ERROR: package[sun-java6-jre] (/root/scalarium-agent/site-cookbooks/java/recipes/default.rb:13:in `from_file') had an error: apt does not have a version of package sun-java6-jre
/root/scalarium-agent/vendor/bundle/ruby/1.8/gems/naked-chef-0.9.15.3/bin/../lib/chef/provider/package/apt.rb:57:in `load_current_resource'
/root/scalarium-agent/vendor/bundle/ruby/1.8/gems/naked-chef-0.9.15.3/bin/../lib/chef/resource.rb:403:in `run_action'
  1. Support Staff 2 Posted by Daniel Hüsch on 09 Mar, 2012 07:13 AM

    Daniel Hüsch's Avatar

    Canonical removed Sun's java packages from their sources. You can run Jenkins with OpenJDK instead.

  2. Support Staff 3 Posted by Jonathan Weiss on 09 Mar, 2012 02:38 PM

    Jonathan Weiss's Avatar

    I also updated our example Java cookbook to the latest from Opscode that you can use to either install OpenJDK or Oracle Java.

  3. Support Staff 4 Posted by Jonathan Weiss on 09 Mar, 2012 02:39 PM

    Jonathan Weiss's Avatar

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.