Chef 11.0.11 to 12

Hi there,

I am trying to upgrade from chef 11.0.11 to 12 and I get the following error at the end of the upgrade:

Open source Chef 11 server data downloaded to /tmp/chef11-server-data20150320-14095-18tbt30
Created /tmp/chef12-server-data20150320-14095-1v5vnm3 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/2.1.0/fileutils.rb:1396:in copy': unknown file type: /tmp/chef11-server-data20150320-14095-18tbt30/environments (RuntimeError) from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:469:inblock in copy_entry’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:in call' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:inwrap_traverse’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:466:in copy_entry' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:441:inblock in cp_r’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1579:in block in fu_each_src_dest' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1595:infu_each_src_dest0’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1577:in fu_each_src_dest' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:440:incp_r’
from (eval):121:in block in transform_chef11_data' from (eval):120:ineach’
from (eval):120:in transform_chef11_data' from (eval):45:inrun_upgrade’
from (eval):135:in block (2 levels) in load_files' from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:incall’
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:in block in add_command_under_category' from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:555:inrun’
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/bin/omnibus-ctl:31:in <top (required)>' from /opt/opscode/embedded/bin/omnibus-ctl:23:inload’
from /opt/opscode/embedded/bin/omnibus-ctl:23:in `’

Do you have any ideas how I can resolve this?

Cheers,
Simon.


Disclaimer

This message is intended only for the use of the person(s) (“Intended Recipient”) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any dissemination, distribution, copying or other use of this message or any of its content by any person other than the Intended Recipient may constitute a breach of civil or criminal law and is strictly prohibited. If you are not the Intended Recipient, please contact the sender as soon as possible.

Totaljobs Group Limited Registered Office: Bluefin Building, 110 Southwark Street, London, SE1 0TA, UK Registered in England and Wales under company no. 4269861


Hi Simon,

The built in upgrade process only works with Chef Server 11.1 or
greater, so you need to upgrade from 11.0.11 to 11.1 or greater first,
then make the jump to 12.

It is possible to make the jump from version less than 11.1, but it's
not currently supported and takes a lot of manual work. You can see what
it takes in this issue: https://github.com/chef/opscode-omnibus/issues/463

I'd recommend you upgrade first to 11.1 and then try again.

Thanks,

Mark Mzyk

Simon Hawkins mailto:Simon.Hawkins@totaljobsgroup.com
March 20, 2015 at 11:15 AM

Hi there,

I am trying to upgrade from chef 11.0.11 to 12 and I get the following
error at the end of the upgrade:

Open source Chef 11 server data downloaded to
/tmp/chef11-server-data20150320-14095-18tbt30

Created /tmp/chef12-server-data20150320-14095-1v5vnm3 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/2.1.0/fileutils.rb:1396:in `copy':
unknown file type:
/tmp/chef11-server-data20150320-14095-18tbt30/environments (RuntimeError)

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:469:in 

`block in copy_entry'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:in 

`call'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:in 

`wrap_traverse'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:466:in 

`copy_entry'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:441:in 

`block in cp_r'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1579:in 

`block in fu_each_src_dest'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1595:in 

`fu_each_src_dest0'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1577:in 

`fu_each_src_dest'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:440:in 

`cp_r'

    from (eval):121:in `block in transform_chef11_data'

    from (eval):120:in `each'

    from (eval):120: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/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:in
`call'

    from 

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:in
`block in add_command_under_category'

    from 

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:555:in
`run'

    from 

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/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>'

Do you have any ideas how I can resolve this?

Cheers,

Simon.


Disclaimer

This message is intended only for the use of the person(s) ("Intended
Recipient") to whom it is addressed. It may contain information which
is privileged and confidential. Accordingly any dissemination,
distribution, copying or other use of this message or any of its
content by any person other than the Intended Recipient may constitute
a breach of civil or criminal law and is strictly prohibited. If you
are not the Intended Recipient, please contact the sender as soon as
possible.

Totaljobs Group Limited Registered Office: Bluefin Building, 110
Southwark Street, London, SE1 0TA, UK Registered in England and Wales
under company no. 4269861


Hi Mark,

Thanks for this, is there a link anywhere on how to upgrade on the older version?

I currently have chef-server-11.0.11-1.el6.x86_64.rpm and private-chef-11.3.0-1.el6.x86_64.rpm - I assume installing the rpm isn’t enough and there’s a process to upgrade?

Cheers,
Simon.
From: Mark Mzyk [mailto:mmzyk@chef.io]
Sent: 20 March 2015 15:29
To: chef@lists.opscode.com
Subject: [chef] Re: Chef 11.0.11 to 12

Hi Simon,

The built in upgrade process only works with Chef Server 11.1 or greater, so you need to upgrade from 11.0.11 to 11.1 or greater first, then make the jump to 12.

It is possible to make the jump from version less than 11.1, but it’s not currently supported and takes a lot of manual work. You can see what it takes in this issue: https://github.com/chef/opscode-omnibus/issues/463

I’d recommend you upgrade first to 11.1 and then try again.

Thanks,

Mark Mzyk

[cid:image001.jpg@01D06640.7F80C530]
Simon Hawkinsmailto:Simon.Hawkins@totaljobsgroup.com
March 20, 2015 at 11:15 AM
Hi there,

I am trying to upgrade from chef 11.0.11 to 12 and I get the following error at the end of the upgrade:

Open source Chef 11 server data downloaded to /tmp/chef11-server-data20150320-14095-18tbt30
Created /tmp/chef12-server-data20150320-14095-1v5vnm3 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/2.1.0/fileutils.rb:1396:in copy': unknown file type: /tmp/chef11-server-data20150320-14095-18tbt30/environments (RuntimeError) from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:469:inblock in copy_entry’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:in call' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:inwrap_traverse’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:466:in copy_entry' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:441:inblock in cp_r’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1579:in block in fu_each_src_dest' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1595:infu_each_src_dest0’
from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1577:in fu_each_src_dest' from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:440:incp_r’
from (eval):121:in block in transform_chef11_data' from (eval):120:ineach’
from (eval):120:in transform_chef11_data' from (eval):45:inrun_upgrade’
from (eval):135:in block (2 levels) in load_files' from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:incall’
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:in block in add_command_under_category' from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:555:inrun’
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/bin/omnibus-ctl:31:in <top (required)>' from /opt/opscode/embedded/bin/omnibus-ctl:23:inload’
from /opt/opscode/embedded/bin/omnibus-ctl:23:in `’

Do you have any ideas how I can resolve this?

Cheers,
Simon.


Disclaimer

This message is intended only for the use of the person(s) (“Intended Recipient”) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any dissemination, distribution, copying or other use of this message or any of its content by any person other than the Intended Recipient may constitute a breach of civil or criminal law and is strictly prohibited. If you are not the Intended Recipient, please contact the sender as soon as possible.

Totaljobs Group Limited Registered Office: Bluefin Building, 110 Southwark Street, London, SE1 0TA, UK Registered in England and Wales under company no. 4269861


Simon,

The two rpms that you listed that are not compatible with each other.
chef-server-11.0.11 is the open source Chef server. private-chef-11.3.0
is the Enterprise Chef 11 server.
We make both available for download since we opened source all the
server code with Chef server 12, incase anyone needs these older versions.

Based on what you wrote before, I believe you have installed and are
running the chef-server-11.0.11 package. Just delete the
private-chef-11.3.0 rpm, you don't need it.

To upgrade using the steps I recommended, download the latest open
source Chef server 11 package from here:
https://www.chef.io/download-open-source-chef-server-11/

That appears to be 11.1.6-1 at the time I write this. You should then
follow the upgrade steps that are here:
http://docs.chef.io/release/osc_11-1/upgrade_server_open_source.html

The tl;dr is that you'll install the rpm and then run the upgrade
command, but read over the docs to ensure you understand what is
involved and we always recommend that you have a backup of your data
before doing any upgrade.

Once you've upgraded to 11.1.6, you're ready to move to Chef server 12.
To do that, download the Chef server 12 rpm, which is named
chef-server-core-. You can download that from here:

Latest release as I write this is 12.0.6.

Instructions then for upgrading to Chef server 12 from Chef server 11
can be found here:

And if you need it, there is more detail on the upgrade process here:
https://docs.chef.io/upgrade_server_open_source_notes.html

And once again, I'll recommend you have a backup of your data in case
something goes wrong during the upgrade, although we try very hard not
to lose any data or put you in an unrecoverable state during upgrade.

Hope that helps.

Mark Mzyk

Simon Hawkins mailto:Simon.Hawkins@totaljobsgroup.com
March 24, 2015 at 10:40 AM

Hi Mark,

Thanks for this, is there a link anywhere on how to upgrade on the
older version?

I currently have chef-server-11.0.11-1.el6.x86_64.rpm and
private-chef-11.3.0-1.el6.x86_64.rpm -- I assume installing the rpm
isn't enough and there's a process to upgrade?

Cheers,

Simon.

*From:*Mark Mzyk [mailto:mmzyk@chef.io]
Sent: 20 March 2015 15:29
To: chef@lists.opscode.com
Subject: [chef] Re: Chef 11.0.11 to 12

Hi Simon,

The built in upgrade process only works with Chef Server 11.1 or
greater, so you need to upgrade from 11.0.11 to 11.1 or greater first,
then make the jump to 12.

It is possible to make the jump from version less than 11.1, but it's
not currently supported and takes a lot of manual work. You can see
what it takes in this issue:
https://github.com/chef/opscode-omnibus/issues/463

I'd recommend you upgrade first to 11.1 and then try again.

Thanks,

Mark Mzyk

Simon Hawkins mailto:Simon.Hawkins@totaljobsgroup.com

March 20, 2015 at 11:15 AM

Mark Mzyk mailto:mmzyk@chef.io
March 20, 2015 at 11:28 AM
Hi Simon,

The built in upgrade process only works with Chef Server 11.1 or
greater, so you need to upgrade from 11.0.11 to 11.1 or greater first,
then make the jump to 12.

It is possible to make the jump from version less than 11.1, but it's
not currently supported and takes a lot of manual work. You can see
what it takes in this issue:
https://github.com/chef/opscode-omnibus/issues/463

I'd recommend you upgrade first to 11.1 and then try again.

Thanks,

Mark Mzyk

Simon Hawkins mailto:Simon.Hawkins@totaljobsgroup.com
March 20, 2015 at 11:15 AM

Hi there,

I am trying to upgrade from chef 11.0.11 to 12 and I get the following
error at the end of the upgrade:

Open source Chef 11 server data downloaded to
/tmp/chef11-server-data20150320-14095-18tbt30

Created /tmp/chef12-server-data20150320-14095-1v5vnm3 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/2.1.0/fileutils.rb:1396:in `copy':
unknown file type:
/tmp/chef11-server-data20150320-14095-18tbt30/environments (RuntimeError)

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:469:in 

`block in copy_entry'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:in 

`call'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1506:in 

`wrap_traverse'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:466:in 

`copy_entry'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:441:in 

`block in cp_r'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1579:in 

`block in fu_each_src_dest'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1595:in 

`fu_each_src_dest0'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:1577:in 

`fu_each_src_dest'

    from /opt/opscode/embedded/lib/ruby/2.1.0/fileutils.rb:440:in 

`cp_r'

    from (eval):121:in `block in transform_chef11_data'

    from (eval):120:in `each'

    from (eval):120: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/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:in
`call'

    from 

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:177:in
`block in add_command_under_category'

    from 

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/lib/omnibus-ctl.rb:555:in
`run'

    from 

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.3/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>'

Do you have any ideas how I can resolve this?

Cheers,

Simon.


Disclaimer

This message is intended only for the use of the person(s) ("Intended
Recipient") to whom it is addressed. It may contain information which
is privileged and confidential. Accordingly any dissemination,
distribution, copying or other use of this message or any of its
content by any person other than the Intended Recipient may constitute
a breach of civil or criminal law and is strictly prohibited. If you
are not the Intended Recipient, please contact the sender as soon as
possible.

Totaljobs Group Limited Registered Office: Bluefin Building, 110
Southwark Street, London, SE1 0TA, UK Registered in England and Wales
under company no. 4269861