Installing Jenkins on Scalarium (Issues running java chef setup commands)
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'
Support Staff 2 Posted by Daniel Hüsch on 09 Mar, 2012 07:13 AM
Canonical removed Sun's java packages from their sources. You can run Jenkins with OpenJDK instead.
Support Staff 3 Posted by Jonathan Weiss on 09 Mar, 2012 02:38 PM
I also updated our example Java cookbook to the latest from Opscode that you can use to either install OpenJDK or Oracle Java.
Support Staff 4 Posted by Jonathan Weiss on 09 Mar, 2012 02:39 PM
See https://github.com/scalarium/example-cookbooks/tree/master/java