[chef] Re: Problem installing chef-server


Chronological Thread 
  • From: Jesse Campbell < >
  • To: chef < >
  • Subject: [chef] Re: Problem installing chef-server
  • Date: Wed, 6 Feb 2013 15:19:12 -0500

I've been getting that today too. i had to manually run gem install net-ssh, then it worked for my purposes, though i wasn't installing server.


On Wed, Feb 6, 2013 at 2:55 PM, < " target="_blank"> > wrote:
Hi,

I'm having a new problem installing chef-server from chef-solo:

## first-boot.json
{
  "chef_server": {
    "server_url": "http://localhost:4000",
    "webui_enabled": true
  },
  "run_list": [ "recipe[chef-server::rubygems-install]" ]
}

## Install chef
curl -L http://www.opscode.com/chef/install.sh | bash -s -- -v 10.18.2

## Run chef
chef-solo -c /etc/chef/solo.rb -j /etc/chef/first-boot.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz



The problem:
[2013-02-06T19:40:46+00:00] INFO: Processing gem_package[chef-solr] action
install (chef-server::rubygems-install line 83)

================================================================================
Error executing action `install` on resource 'gem_package[chef-solr]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install chef-solr -q --no-rdoc
--no-ri -v "10.18.2" ----
STDOUT:
STDERR: ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: net-ssh-gateway requires net-ssh (>= 2.6.5)
---- End output of /opt/chef/embedded/bin/gem install chef-solr -q --no-rdoc
--no-ri -v "10.18.2" ----
Ran /opt/chef/embedded/bin/gem install chef-solr -q --no-rdoc --no-ri -v
"10.18.2" returned 1

Resource Declaration:
---------------------
# In /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb

 83:   gem_package gem do
 84:     version node['chef_packages']['chef']['version']
 85:   end
 86: end

Compiled Resource:
------------------
# Declared in
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:83:in `block
in from_file'

gem_package("chef-solr") do
  provider Chef::Provider::Package::Rubygems
  action :install
  retries 0
  retry_delay 2
  package_name "chef-solr"
  version "10.18.2"
  cookbook_name :"chef-server"
  recipe_name "rubygems-install"
  gem_binary "/opt/chef/embedded/bin/gem"
end

[2013-02-06T19:41:12+00:00] ERROR: Running exception handlers
[2013-02-06T19:41:12+00:00] ERROR: Exception handlers complete
[2013-02-06T19:41:12+00:00] FATAL: Stacktrace dumped to
/tmp/chef-solo/chef-stacktrace.out
[2013-02-06T19:41:12+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed:
gem_package[chef-solr] (chef-server::rubygems-install line 83) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but
received '1'
---- Begin output of /opt/chef/embedded/bin/gem install chef-solr -q --no-rdoc
--no-ri -v "10.18.2" ----
STDOUT:
STDERR: ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: net-ssh-gateway requires net-ssh (>= 2.6.5)
---- End output of /opt/chef/embedded/bin/gem install chef-solr -q --no-rdoc
--no-ri -v "10.18.2" ----
Ran /opt/chef/embedded/bin/gem install chef-solr -q --no-rdoc --no-ri -v
"10.18.2" returned 1



Did somebody got this one today?

Thanks,

Michael




Archive powered by MHonArc 2.6.16.

§