Problem installing chef-server


#1

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


#2

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, michael.belfer.bernstein@gmail.com 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


#3

I was struggling with that most of the morning, I had to install two gem
versions of net-ssh, and net-ssh-gateway before I finally got it to run.
I’m using an rvm gemset and I’m not ready to use Chef 11 just yet, so
here’s what I did to get around it:

rvm use 1.9.3-p125@chef
rvm --force gemset empty
gem install net-ssh -v 2.2.2
gem install net-ssh -v 2.6.4
gem install net-ssh-gateway -v 1.1.1
gem install net-ssh-gateway -v 1.1.0
gem install net-ssh-multi -v 1.1
gem install chef -v ‘< 11.0’

On Wed, Feb 6, 2013 at 2:19 PM, Jesse Campbell hikeit@gmail.com wrote:

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, michael.belfer.bernstein@gmail.comwrote:

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


GnuPG public key http://db.tt/oulTa7bK


#4

Yeah, I dealt with the same issue earlier today working with soloist
in a clean gemset. This was the winning combo that worked for me:

gem install net-ssh-gateway --version 1.1.0
gem install net-ssh-multi --version 1.1
gem install net-ssh --version 2.2.2
gem install soloist

On Wed, Feb 6, 2013 at 3:24 PM, Bryan Bishop bryanjbishop@yahoo.com wrote:

I was struggling with that most of the morning, I had to install two gem
versions of net-ssh, and net-ssh-gateway before I finally got it to run.
I’m using an rvm gemset and I’m not ready to use Chef 11 just yet, so here’s
what I did to get around it:

rvm use 1.9.3-p125@chef
rvm --force gemset empty
gem install net-ssh -v 2.2.2
gem install net-ssh -v 2.6.4
gem install net-ssh-gateway -v 1.1.1
gem install net-ssh-gateway -v 1.1.0
gem install net-ssh-multi -v 1.1
gem install chef -v ‘< 11.0’

On Wed, Feb 6, 2013 at 2:19 PM, Jesse Campbell hikeit@gmail.com wrote:

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, michael.belfer.bernstein@gmail.com
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


GnuPG public key


Kevin Karwaski
Operations Engineer @ {Fiksu}