# Chef12 and backup

**URL:** <https://discourse.chef.io/t/chef12-and-backup/6079>\
**Category:** Chef Infra (archive)\
**Created:** [December 17, 2014, 4:04pm UTC](https://discourse.chef.io/t/chef12-and-backup/6079 "2014-12-17T16:04:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiago\_Cruz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tiago_cruz/32/49_2.png) [@Tiago\_Cruz](https://discourse.chef.io/u/Tiago_Cruz)\
**Post date:** [December 17, 2014, 4:04pm UTC](https://discourse.chef.io/t/chef12-and-backup/6079/1 "2014-12-17T16:04:22Z")

</div>

Ohai Chef’s!

Since the update do Chef12, my backup script has broken:

$ knife backup export -D /backup/chef

…  
Backing up clients vermont2  
Backing up clients vermont1  
Backing up users  
ERROR: You authenticated successfully to [https://chef](https://chef) as admin but you are  
not authorized for this action  
Response: missing read permission  
…

I also tried to use the knife-ec-backup, but I can’t install:

…

# /opt/opscode/embedded/bin/gem install knife-ec-backup

ERROR: Error installing knife-ec-backup:  
ohai requires Ruby version \>= 2.0.0.  
…

And… how can I get the private key from user “pivotal”?

Thanks a lot!

–  
– Tiago Cruz

---

<div class="post-metadata">

**Author:** ![Lamont\_Granquist](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Lamont\_Granquist](https://discourse.chef.io/u/Lamont_Granquist)\
**Post date:** [December 17, 2014, 10:10pm UTC](https://discourse.chef.io/t/chef12-and-backup/6079/2 "2014-12-17T22:10:40Z")

</div>

On Wed Dec 17 08:04:22 2014, Tiago Cruz wrote:

> I also tried to use the knife-ec-backup, but I can't install:
> 
> ```
> ...
> # /opt/opscode/embedded/bin/gem install knife-ec-backup
> ERROR: Error installing knife-ec-backup:
> ohai requires Ruby version >= 2.0.0.
> ...
> 
> ```

you should be able to fix that by adding --minimal-deps

---

<div class="post-metadata">

**Author:** ![Tiago\_Cruz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tiago_cruz/32/49_2.png) [@Tiago\_Cruz](https://discourse.chef.io/u/Tiago_Cruz)\
**Post date:** [December 17, 2014, 10:24pm UTC](https://discourse.chef.io/t/chef12-and-backup/6079/3 "2014-12-17T22:24:50Z")

</div>

Thanks Lamont!

Where should I pass this option?

[root@mordor ~]# /opt/opscode/embedded/bin/gem install knife-ec-backup  
--minimal-deps  
ERROR: While executing gem ... (OptionParser::InvalidOption)  
invalid option: --minimal-deps

[root@mordor ~]# /opt/opscode/embedded/bin/gem install --minimal-deps  
knife-ec-backup  
ERROR: While executing gem ... (OptionParser::InvalidOption)  
invalid option: --minimal-deps

[root@mordor ~]# /opt/opscode/embedded/bin/gem --minimal-deps install  
knife-ec-backup  
ERROR: Invalid option: --minimal-deps. See 'gem --help'.

Thanks a lot!

On Wed, Dec 17, 2014 at 8:10 PM, Lamont Granquist [lamont@chef.io](mailto:lamont@chef.io) wrote:

> On Wed Dec 17 08:04:22 2014, Tiago Cruz wrote:
> 
> > I also tried to use the knife-ec-backup, but I can't install:
> > 
> > ```
> > ...
> > # /opt/opscode/embedded/bin/gem install knife-ec-backup
> > ERROR: Error installing knife-ec-backup:
> > ohai requires Ruby version >= 2.0.0.
> > ...
> > 
> > ```
> 
> you should be able to fix that by adding --minimal-deps

--  
-- Tiago Cruz

---

<div class="post-metadata">

**Author:** ![Lamont\_Granquist](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Lamont\_Granquist](https://discourse.chef.io/u/Lamont_Granquist)\
**Post date:** [December 17, 2014, 11:16pm UTC](https://discourse.chef.io/t/chef12-and-backup/6079/4 "2014-12-17T23:16:17Z")

</div>

yeah, the chef-11 rubygems is ancient and probably doesn't support that  
option.

you can do: `/opt/chef/embedded/bin/gem update --system` which will  
update to 2.4.5, but then you'll have all the fun of recompiling all of  
the native gems in the bundle and any that you've chef\_gem installed  
(it'll complain about the need to 'gem pristine' various gems).

i'd advise getting off of chef-11 ASAP. as issues with the old  
rubygems become worse we won't be able to solve them by rolling it  
forwards in chef-11.

we're going to look at doing the next release of chef-11 with the  
maximum rubygems bump that we can make which may make it more  
maintainable, but chef-11 may fairly quickly run out of usable runway.

On Wed Dec 17 14:24:50 2014, Tiago Cruz wrote:

> Thanks Lamont!
> 
> Where should I pass this option?
> 
> [root@mordor ~]# /opt/opscode/embedded/bin/gem install knife-ec-backup  
> --minimal-deps  
> ERROR: While executing gem ... (OptionParser::InvalidOption)  
> invalid option: --minimal-deps
> 
> [root@mordor ~]# /opt/opscode/embedded/bin/gem install --minimal-deps  
> knife-ec-backup  
> ERROR: While executing gem ... (OptionParser::InvalidOption)  
> invalid option: --minimal-deps
> 
> [root@mordor ~]# /opt/opscode/embedded/bin/gem --minimal-deps install  
> knife-ec-backup  
> ERROR: Invalid option: --minimal-deps. See 'gem --help'.
> 
> Thanks a lot!
> 
> On Wed, Dec 17, 2014 at 8:10 PM, Lamont Granquist \<[lamont@chef.io](mailto:lamont@chef.io)  
> [mailto:lamont@chef.io](mailto:lamont@chef.io)\> wrote:
> 
> ```
> On Wed Dec 17 08:04:22 2014, Tiago Cruz wrote:
> 
> I also tried to use the knife-ec-backup, but I can't install:
> 
> ...
> # /opt/opscode/embedded/bin/gem install knife-ec-backup
> ERROR: Error installing knife-ec-backup:
> ohai requires Ruby version >= 2.0.0.
> ...
> 
> you should be able to fix that by adding --minimal-deps
> 
> ```
> 
> --  
> -- Tiago Cruz

---

<div class="post-metadata">

**Author:** ![Tiago\_Cruz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tiago_cruz/32/49_2.png) [@Tiago\_Cruz](https://discourse.chef.io/u/Tiago_Cruz)\
**Post date:** [December 18, 2014, 12:58am UTC](https://discourse.chef.io/t/chef12-and-backup/6079/5 "2014-12-18T00:58:23Z")

</div>

Hum... so, just to confirm:

Now that the update has been done, I can just run "rpm -e chef-server" and  
be happy?

[tiago.cruz@mordor ~]$ rpm -qa | grep chef  
chef-server-11.0.12-1.el6.x86\_64  
chef-server-core-12.0.0-1.el6.x86\_64  
chef-12.0.0-1.x86\_64

Thanks a lot, Lamont!

On Wed, Dec 17, 2014 at 9:16 PM, Lamont Granquist [lamont@chef.io](mailto:lamont@chef.io) wrote:

> yeah, the chef-11 rubygems is ancient and probably doesn't support that  
> option.
> 
> you can do: `/opt/chef/embedded/bin/gem update --system` which will  
> update to 2.4.5, but then you'll have all the fun of recompiling all of the  
> native gems in the bundle and any that you've chef\_gem installed (it'll  
> complain about the need to 'gem pristine' various gems).
> 
> i'd advise getting off of chef-11 ASAP. as issues with the old rubygems  
> become worse we won't be able to solve them by rolling it forwards in  
> chef-11.
> 
> we're going to look at doing the next release of chef-11 with the maximum  
> rubygems bump that we can make which may make it more maintainable, but  
> chef-11 may fairly quickly run out of usable runway.
> 
> On Wed Dec 17 14:24:50 2014, Tiago Cruz wrote:
> 
> > Thanks Lamont!
> > 
> > Where should I pass this option?
> > 
> > [root@mordor ~]# /opt/opscode/embedded/bin/gem install knife-ec-backup  
> > --minimal-deps  
> > ERROR: While executing gem ... (OptionParser::InvalidOption)  
> > invalid option: --minimal-deps
> > 
> > [root@mordor ~]# /opt/opscode/embedded/bin/gem install --minimal-deps  
> > knife-ec-backup  
> > ERROR: While executing gem ... (OptionParser::InvalidOption)  
> > invalid option: --minimal-deps
> > 
> > [root@mordor ~]# /opt/opscode/embedded/bin/gem --minimal-deps install  
> > knife-ec-backup  
> > ERROR: Invalid option: --minimal-deps. See 'gem --help'.
> > 
> > Thanks a lot!
> > 
> > On Wed, Dec 17, 2014 at 8:10 PM, Lamont Granquist \<[lamont@chef.io](mailto:lamont@chef.io)  
> > [mailto:lamont@chef.io](mailto:lamont@chef.io)\> wrote:
> > 
> > ```
> > On Wed Dec 17 08:04:22 2014, Tiago Cruz wrote:
> > 
> > I also tried to use the knife-ec-backup, but I can't install:
> > 
> > ...
> > # /opt/opscode/embedded/bin/gem install knife-ec-backup
> > ERROR: Error installing knife-ec-backup:
> > ohai requires Ruby version >= 2.0.0.
> > ...
> > 
> > you should be able to fix that by adding --minimal-deps
> > 
> > ```
> > 
> > --  
> > -- Tiago Cruz

--  
-- Tiago Cruz

---

<div class="post-metadata">

**Author:** ![Lamont\_Granquist](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Lamont\_Granquist](https://discourse.chef.io/u/Lamont_Granquist)\
**Post date:** [December 18, 2014, 1:50am UTC](https://discourse.chef.io/t/chef12-and-backup/6079/6 "2014-12-18T01:50:37Z")

</div>

Uhm, I'd be awfully cautious about that, and I'm not the expert there.  
I can think of a few ways that'd be the right call, and I can think of  
a few ways that'd go horribly wrong.

Hopefully someone from the server team will poke their head in here and  
give an authoritative answer.

On Wed Dec 17 16:58:23 2014, Tiago Cruz wrote:

> Hum... so, just to confirm:
> 
> Now that the update has been done, I can just run "rpm -e chef-server"  
> and be happy?
> 
> [tiago.cruz@mordor ~]$ rpm -qa | grep chef  
> chef-server-11.0.12-1.el6.x86\_64  
> chef-server-core-12.0.0-1.el6.x86\_64  
> chef-12.0.0-1.x86\_64
> 
> Thanks a lot, Lamont!
> 
> On Wed, Dec 17, 2014 at 9:16 PM, Lamont Granquist \<[lamont@chef.io](mailto:lamont@chef.io)  
> [mailto:lamont@chef.io](mailto:lamont@chef.io)\> wrote:
> 
> ```
> yeah, the chef-11 rubygems is ancient and probably doesn't support
> that option.
> 
> you can do: `/opt/chef/embedded/bin/gem update --system` which
> will update to 2.4.5, but then you'll have all the fun of
> recompiling all of the native gems in the bundle and any that
> you've chef_gem installed (it'll complain about the need to 'gem
> pristine' various gems).
> 
> i'd advise getting off of chef-11 ASAP. as issues with the old
> rubygems become worse we won't be able to solve them by rolling it
> forwards in chef-11.
> 
> we're going to look at doing the next release of chef-11 with the
> maximum rubygems bump that we can make which may make it more
> maintainable, but chef-11 may fairly quickly run out of usable runway.
> 
> On Wed Dec 17 14:24:50 2014, Tiago Cruz wrote:
> 
> Thanks Lamont!
> 
> Where should I pass this option?
> 
> [root@mordor ~]# /opt/opscode/embedded/bin/gem install
> knife-ec-backup
> --minimal-deps
> ERROR: While executing gem ... (OptionParser::InvalidOption)
> invalid option: --minimal-deps
> 
> [root@mordor ~]# /opt/opscode/embedded/bin/gem install
> --minimal-deps
> knife-ec-backup
> ERROR: While executing gem ... (OptionParser::InvalidOption)
> invalid option: --minimal-deps
> 
> [root@mordor ~]# /opt/opscode/embedded/bin/gem --minimal-deps
> install
> knife-ec-backup
> ERROR: Invalid option: --minimal-deps. See 'gem --help'.
> 
> Thanks a lot!
> 
> On Wed, Dec 17, 2014 at 8:10 PM, Lamont Granquist
> <lamont@chef.io <mailto:lamont@chef.io>
> <mailto:lamont@chef.io <mailto:lamont@chef.io>>> wrote:
> 
> On Wed Dec 17 08:04:22 2014, Tiago Cruz wrote:
> 
> I also tried to use the knife-ec-backup, but I can't
> install:
> 
> ...
> # /opt/opscode/embedded/bin/gem install
> knife-ec-backup
> ERROR: Error installing knife-ec-backup:
> ohai requires Ruby version >= 2.0.0.
> ...
> 
> you should be able to fix that by adding --minimal-deps
> 
> --
> -- Tiago Cruz
> 
> ```
> 
> --  
> -- Tiago Cruz
