Ok, did the following, which seems to be the common approach, and what you suggested:
wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.10-1.ubuntu.12.04_amd64.deb
Then installed using the system package manager:
sudo dpkg -i chef-server_11.0.10-1.ubuntu.12.04_amd64.deb
And then ran the chef-server-ctl reconfigure command like:
sudo chef-server-ctl reconfigure, which hit an error on solr; here's the output:
Recipe: chef-server::default
- file[/etc/chef-server/chef-server-running.json] action create
- update content in file /etc/chef-server/chef-server-running.json from 9a16b2 to 25d78a
--- /etc/chef-server/chef-server-running.json 2013-10-21 02:33:17.167171003 +0000
+++ /tmp/.chef-server-running.json20140118-23607-8ra0ps 2014-01-18 20:06:17.503171012 +0000
@@ -45,7 +45,7 @@
"max_commit_docs": 1000,
"commit_interval": 60000,
"poll_seconds": 20,
Recipe: chef-server::chef-solr
- service[chef-solr] action restart
================================================================================
Error executing action restart
on resource 'service[chef-solr]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv restart /opt/chef-server/service/chef-solr ----
STDOUT: timeout: down: /opt/chef-server/service/chef-solr: 1s, normally up, want up
STDERR:
---- End output of /opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv restart /opt/chef-server/service/chef-solr ----
Ran /opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv restart /opt/chef-server/service/chef-solr returned 1
Resource Declaration:
In /opt/chef-server/embedded/cookbooks/runit/definitions/runit_service.rb
172: service params[:name] do
173: control_cmd = node[:runit][:sv_bin]
174: if params[:owner]
175: control_cmd = "#{node[:runit][:chpst_bin]} -u #{params[:owner]} #{control_cmd}"
176: end
177: provider Chef::Provider::Service::Simple
Compiled Resource:
Declared in /opt/chef-server/embedded/cookbooks/runit/definitions/runit_service.rb:172:in `block in from_file'
service("chef-solr") do
params {:directory=>"/opt/chef-server/sv", :only_if=>false, :finish_script=>false, :control=>, :run_restart=>true, :active_directory=>"/opt/chef-server/service", :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"chef-solr", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{:log_directory=>"/var/log/chef-server/chef-solr", :directory=>nil, :only_if=>false, :finish_script=>false, :control=>, :run_restart=>true, :active_directory=>nil, :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>nil, :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{}, :env=>{}, :action=>:enable, :down=>false}, :env=>{}, :action=>:enable, :down=>false, :name=>"chef-solr"}
provider Chef::Provider::Service::Simple
action [:nothing]
supports {:restart=>true, :status=>true}
retries 0
retry_delay 2
service_name "chef-solr"
pattern "chef-solr"
start_command "/opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv start /opt/chef-server/service/chef-solr"
stop_command "/opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv stop /opt/chef-server/service/chef-solr"
status_command "/opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv status /opt/chef-server/service/chef-solr"
restart_command "/opt/chef-server/embedded/bin/chpst -u root /opt/chef-server/embedded/bin/sv restart /opt/chef-server/service/chef-solr"
startup_type :automatic
cookbook_name :"chef-server"
recipe_name "chef-solr"
end
Recipe: chef-server::bookshelf
- service[bookshelf] action restart
- restart service service[bookshelf]
Recipe: chef-server::erchef
- service[erchef] action restart
- restart service service[erchef]
[2014-01-18T20:06:27+00:00] ERROR: Running exception handlers
[2014-01-18T20:06:27+00:00] ERROR: Exception handlers complete
[2014-01-18T20:06:27+00:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 14 resources updated
[2014-01-18T20:06:28+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
the rest of the services restarted properly, but my server is still showing as running 11.0.8, and hitting the cookbook show link still results in the error.
Any ideas?
Bill
On Jan 18, 2014, at 5:32 AM, Steffen Gebert st+gmane@st-g.de wrote:
Hi Bill,
go to http://www.getchef.com/chef/install/ and pick the "Chef Server"
tab. Then download the package and do what you already did when
installing it:
- install the packet using your OS's package management utility (apt,
yum, ..)
- run
chef-server-ctl reconfigure
Like described here: Install the Chef Infra Server
But I agree that an "Upgrading Chef Server" section the docs would be of
help. I also had to search a lot while doing the update.
Yours
Steffen
On 18/01/14 07:41, William Hatch wrote:
I've hit a known bug with the web-ui, where the show action on a cookbook results in "ERROR: undefined method `close!' for nil:NilClass". On a somewhat related note, the same cookbooks' changes are not being picked up on a client when converging. Due to the error, I cannot confirm (or I don't know how) whether or not the knife upload is actually resulting in my changes being persisted on the server, although the knife command returns success. So, I'm thinking it might be best to upgrade the server. I've been looking for a definitive resource on the proper means of upgrading chef server, but not finding anything very concrete.
Per the /version, I've got:
chef-server 11.0.8
Component Installed Version Version GUID
bookshelf 0.2.1 git:0a01f74ffd1313c4dc9bf0d236e03a871add4e01
chef-expander 11.0.0 git:14b11a96da1273b362f39ab11c411470688a8bd6
chef-gem 11.4.0
chef-pedant 1.0.3 git:15de6cd06f16ee5dee501d6aba36f4ba60162e62
chef-server-cookbooks 11.0.8
chef-server-ctl 11.0.8
chef-server-scripts 11.0.8
chef-server-webui 11.0.4 git:498097c0793e51e4f4e7df9f35ee1a3ed3282841
chef-solr 11.0.1 git:bcd45175fd402f3082e7146f94c5d571b0620434
erchef 1.2.6 git:77ade20f166367b5f0cde468e3c6066b8a327475
nginx 1.2.3 md5:0a986e60826d9e3b453dbefc36bf8f6c
postgresql 9.2.4 md5:6ee5bb53b97da7c6ad9cb0825d3300dd
preparation 11.0.8
rabbitmq 2.7.1 md5:34a5f9fb6f22e6681092443fcc80324f
runit 2.1.1 md5:8fa53ea8f71d88da9503f62793336bc3
unicorn 4.2.0
version-manifest 11.0.8
I'm on ubuntu 12.04
Are there any solid resources that explain this, or brief summary on steps involved? Pointers to good resources, or brief walk through would be much appreciated. Thanks.
Bill