Chef 11 server on ubuntu 12.04 pedant fails

I’m looking for pointers on how to debug my problem with chef server 11 on
ubuntu 12.04.

I’ve tried the following versions:

11.0.4
11.0.6
11.0.8
11.0.10

and in every case:

The package installs successfully.
The command “chef-server-ctl reconfigure” completes successfully
The command “chef-server-ctl test” fails with the following output:

Configuring logging…
Creating platform…
Starting Pedant Run: 2014-02-18 06:07:43 UTC
setting up rspec config for #Pedant::OpenSourcePlatform:0x0000000248af10
Configuring RSpec for Open-Source Tests


| || || || || || | | |
| _ || _ || || || _ || _ || |
| | | || |
| || |
| || | | || | | || |
_
| || || ||__ || || || || || || |
| || | _| || | | || || |
|
||| |||||||| |_______|

 _______  _______  ______	_______  __    _  _______
|	    ||	     ||      | |   _   ||  |  | ||	 |
|	 _  ||	  ___||  _    ||  |_|  ||   |_| ||_	_|
|	|_| ||	 |___ | | |   ||       ||	|  |   |
|	 ___||	  ___|| |_|   ||       ||  _	|  |   |
|	|    |	 |___ |       ||   _   || | |	|  |   |
|___|    |_______||______| |__| |__||_|  |__|  |___|

	    "Accuracy Over Tact"

	  === Testing Environment ===
	 Config File:

/var/opt/chef-server/chef-pedant/etc/pedant_config.rb
HTTP Traffic Log File: /var/log/chef-server/chef-pedant/http-traffic.log

Running tests from the following directories:
/opt/chef-server/embedded/service/chef-pedant/spec/api
Ruby? Erlang? true
Run options:
include {:focus=>true, :smoke=>true}
exclude {:platform=>:multitenant, :cleanup=>true}
Creating client pedant_admin_client…
Exception during Pedant credentials setup
#<Errno::ECONNRESET: Connection reset by peer - SSL_connect>
/opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:799:in connect' /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:799:inblock in connect’
/opt/chef-server/embedded/lib/ruby/1.9.1/timeout.rb:54:in timeout' /opt/chef-server/embedded/lib/ruby/1.9.1/timeout.rb:99:intimeout’
/opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:799:in connect' /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:755:indo_start’
/opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:744:in start' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:intransmit’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
execute' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:inexecute’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient.rb:72:in
post' /opt/chef-server/embedded/service/chef-pedant/lib/pedant/request.rb:103:inauthenticated_request’
/opt/chef-server/embedded/service/chef-pedant/lib/pedant/request.rb:125:in
post' /opt/chef-server/embedded/service/chef-pedant/lib/pedant/opensource/platform.rb:81:increate_client’
/opt/chef-server/embedded/service/chef-pedant/lib/pedant/opensource/platform.rb:122:in
client_from_config' /opt/chef-server/embedded/service/chef-pedant/lib/pedant/opensource/platform.rb:40:inblock in setup’
/opt/chef-server/embedded/service/chef-pedant/lib/pedant/opensource/platform.rb:35:in
each' /opt/chef-server/embedded/service/chef-pedant/lib/pedant/opensource/platform.rb:35:insetup’
/opt/chef-server/embedded/service/chef-pedant/lib/pedant.rb:102:in block (2 levels) in configure_rspec' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/hooks.rb:23:ininstance_eval’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/hooks.rb:23:in
run' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/hooks.rb:72:inblock in run’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/hooks.rb:72:in
each' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/hooks.rb:72:inrun’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/hooks.rb:424:in
run_hook' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:27:inblock in run’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in
report' /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:inrun’
/opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in
run' ./bin/chef-pedant:29:in

Finished in 0.86836 seconds
0 examples, 0 failures

Hi,

jjs@mainphrame.com writes:

I'm looking for pointers on how to debug my problem with chef server 11 on
ubuntu 12.04.

Can you describe the specs of the system you are running these tests on?

The command "chef-server-ctl test" fails with the following output:

Exception during Pedant credentials setup
#<Errno::ECONNRESET: Connection reset by peer - SSL_connect>

It would be useful to look through the logs in /var/log/chef-server

  • seth

--
Seth Falcon | Development Lead | CHEF | http://www.getchef.com/ | @sfalcon

Seth -

The system is a 64 bit virtual environment (openvz container) with 1 GB
RAM, 4 CPUs and about 15 G free disk space.

root@hiro:/var/log/chef-server# uname -a
Linux hiro.mainphrame.net 2.6.32-042stab084.25 #1 SMP Wed Feb 12 16:04:42
MSK 2014 x86_64 x86_64 x86_64 GNU/Linux

Looking at the logs, I see.... aha!

(face palm) nginx isn't able to bind to port 80 because the VE had apache
installed and running by default.

OK, stopped and removed apache, did a "chef-server-ctl restart" and now
chef-server-ctl test" produces a good looking output:

...
Finished in 47.47 seconds
70 examples, 0 failures

Thanks for the hints.

J J

On Mon, Feb 17, 2014 at 10:14 PM, Seth Falcon seth@getchef.com wrote:

Hi,

jjs@mainphrame.com writes:

I'm looking for pointers on how to debug my problem with chef server 11
on
ubuntu 12.04.

Can you describe the specs of the system you are running these tests on?

The command "chef-server-ctl test" fails with the following output:

Exception during Pedant credentials setup
#<Errno::ECONNRESET: Connection reset by peer - SSL_connect>

It would be useful to look through the logs in /var/log/chef-server

  • seth

--
Seth Falcon | Development Lead | CHEF | http://www.getchef.com/ | @sfalcon