- From: William Hatch <
>
- To:
- Subject: [chef] Re: Re: Re: Re: How to properly upgrade chef-server from 11.08
- Date: Sat, 18 Jan 2014 16:31:31 -0500
Thanks Seth, I tried that, but now I get errors during reconfigure pertaining
to postgres not running; trace below:
* execute[/opt/chef-server/embedded/bin/createdb -T template0 -E UTF-8
opscode_chef] action run
================================================================================
Error executing action `run` on resource
'execute[/opt/chef-server/embedded/bin/createdb -T template0 -E UTF-8
opscode_chef]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef-server/embedded/bin/createdb -T template0 -E
UTF-8 opscode_chef ----
STDOUT:
STDERR: createdb: could not connect to database template1: could not connect
to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
---- End output of /opt/chef-server/embedded/bin/createdb -T template0 -E
UTF-8 opscode_chef ----
Ran /opt/chef-server/embedded/bin/createdb -T template0 -E UTF-8 opscode_chef
returned 1
Resource Declaration:
---------------------
# In /opt/chef-server/embedded/cookbooks/chef-server/recipes/postgresql.rb
141: execute "/opt/chef-server/embedded/bin/createdb -T template0 -E UTF-8
opscode_chef" do
142: user node['chef_server']['postgresql']['username']
143: not_if database_exists
144: retries 30
145: notifies :run, "execute[migrate_database]", :immediately
146: end
147:
Compiled Resource:
------------------
# Declared in
/opt/chef-server/embedded/cookbooks/chef-server/recipes/postgresql.rb:141:in
`from_file'
execute("/opt/chef-server/embedded/bin/createdb -T template0 -E UTF-8
opscode_chef") do
action "run"
retries 0
retry_delay 2
command "/opt/chef-server/embedded/bin/createdb -T template0 -E UTF-8
opscode_chef"
backup 5
returns 0
user "opscode-pgsql"
cookbook_name :"chef-server"
recipe_name "postgresql"
not_if "/opt/chef-server/embedded/bin/chpst -u opscode-pgsql
/opt/chef-server/embedded/bin/psql -d 'template1' -c 'select datname from
pg_database' -x|grep opscode_chef"
end
[2014-01-18T21:28:28+00:00] ERROR: Running exception handlers
[2014-01-18T21:28:28+00:00] ERROR: Exception handlers complete
[2014-01-18T21:28:28+00:00] FATAL: Stacktrace dumped to
/opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 2 resources updated
[2014-01-18T21:28:28+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef
run process exited unsuccessfully (exit code 1)
And, I'm still on 11.0.8 after starting again.
Bill
On Jan 18, 2014, at 3:30 PM, Seth Falcon
<
>
wrote:
>
>
>
writes:
>
>
> Hi Bill,
>
>
>
> The latest release of chef-server is 11.0.10. The upgrade path from 11.0.8
>
> is as simple as Steffen mentioned:
>
>
>
> dpkg -i PACKAGE.deb
>
>
>
> chef-server-ctl reconfigure
>
>
I would recommend stopping all services before upgrading:
>
>
chef-server-ctl stop
>
dpkg -i PACKAGE.deb
>
chef-server-ctl reconfigure
>
chef-server-ctl start
>
>
+ seth
Archive powered by MHonArc 2.6.16.