Skip to content

Instantly share code, notes, and snippets.

@skymob
Created October 13, 2014 16:47
Show Gist options
  • Save skymob/8139cb1fb66b9ffeb5da to your computer and use it in GitHub Desktop.
Save skymob/8139cb1fb66b9ffeb5da to your computer and use it in GitHub Desktop.
chef-server-ctl upgrade
[root@testing-chefserver001 ~]# chef-server-ctl upgrade
Upgrading with options #<OpenStruct skip_confirmation=false, chef11_server_url="https://localhost", chef12_server_url="https://localhost", upload_threads=10, chef11_admin_client_name="admin", chef11_admin_client_key="/etc/chef-server/admin.pem">
Open source Chef 11 server detected.
Would you like to upgrade? [yN]
y
Upgrading the open source Chef 11 server.
Chef 12 short organization name? paperless
Chef 12 full organization name? Paperless Post
Creating /tmp/chef11-server-data20141013-3361-169r95c as the location to save the open source Chef 11 server data
Ensuring Chef 12 server is stopped
Ensuring the open source Chef 11 server is started
ok: run: bookshelf: (pid 3495) 0s
ok: run: chef-expander: (pid 3510) 1s
ok: run: chef-server-webui: (pid 3520) 0s
ok: run: chef-solr: (pid 3525) 1s
ok: run: erchef: (pid 3529) 0s
ok: run: nginx: (pid 3535) 0s
ok: run: postgresql: (pid 3546) 1s
ok: run: rabbitmq: (pid 3559) 0s
Preparing knife to download data from the open source Chef 11 server
Writing knife config to /tmp/knife-config.rb for use in downloading open source Chef 11 server data
Downloading data from the open source Chef 11 server
Running knife download
ERROR: File chef/cookbooks/var/chef is a directory while file chef/cookbooks/var/chef is a regular file
Pulling open source Chef 11 database credentials
Finished downloading data from the open source Chef 11 server
Ensuring open source Chef 11 server is stopped
ok: down: bookshelf: 0s, normally up
ok: down: chef-expander: 0s, normally up
ok: down: chef-server-webui: 0s, normally up
ok: down: chef-solr: 0s, normally up
ok: down: erchef: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: postgresql: 0s, normally up
ok: down: rabbitmq: 1s, normally up
Open source Chef 11 server data downloaded to /tmp/chef11-server-data20141013-3361-169r95c
Created /tmp/chef12-server-data20141013-3361-w79nkn as the location to save the tranformed data
Transforming open source Chef 11 server data for upload to Chef 12 server
/opt/opscode/embedded/lib/ruby/1.9.1/fileutils.rb:1515:in `stat': No such file or directory - /tmp/chef11-server-data20141013-3361-169r95c/users (Errno::ENOENT)
from /opt/opscode/embedded/lib/ruby/1.9.1/fileutils.rb:1515:in `block in fu_each_src_dest'
from /opt/opscode/embedded/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'
from /opt/opscode/embedded/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
from /opt/opscode/embedded/lib/ruby/1.9.1/fileutils.rb:436:in `cp_r'
from (eval):102:in `transform_chef11_data'
from (eval):45:in `run_upgrade'
from (eval):135:in `block (2 levels) in load_files'
from /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/omnibus-ctl-0.2.0/lib/omnibus-ctl.rb:148:in `call'
from /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/omnibus-ctl-0.2.0/lib/omnibus-ctl.rb:148:in `block in add_command'
from /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/omnibus-ctl-0.2.0/lib/omnibus-ctl.rb:471:in `run'
from /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/omnibus-ctl-0.2.0/bin/omnibus-ctl:31:in `<top (required)>'
from /opt/opscode/embedded/bin/omnibus-ctl:23:in `load'
from /opt/opscode/embedded/bin/omnibus-ctl:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment