[chef] RE: Re: Upgrade Chef Server 11.0.8-1 to 12.0.8


Chronological Thread 
  • From: Mohammad Fattahian < >
  • To:
  • Subject: [chef] RE: Re: Upgrade Chef Server 11.0.8-1 to 12.0.8
  • Date: Tue, 16 Jun 2015 13:11:40 -0400

Thanks Tyler,

 

I’ll try that. I figured it out by removing (uninstall Chef Server 11) and installing 12. Is there any way to upgrade from 11 to 12 directly?

 

Mohammad

 

 

From: Tyler Cloke [mailto: "> ]
Sent: Friday, June 12, 2015 4:13 PM
To: ">
Subject: [chef] Re: Upgrade Chef Server 11.0.8-1 to 12.0.8

 

Hmmm I wonder if you are hitting this because Chef Client 12 turns SSL verification mode on by default and the server now ships with Chef Client 12.

Since your logs indicate that you are just going over localhost (i.e. everything is installed on the same server), you don't need to worry about ssl for requests to localhost, try the following:

1) $ find / -name open_source_chef12_upgrade.rb
2) $ (nano|emacs|vi) <file from above>
3) At line 344 (right above EOH) add: ssl_verify_mode :verify_none

4) Re-run migration (but if you re-install the Chef Server 12 package, you will have to repeat step 3 since it will overwrite your file edit)

 

Let me know if that works for you or at least changes the error up!

 

Tyler

 

On Wed, Jun 10, 2015 at 10:37 AM, Mohammad Fattahian < " target="_blank"> > wrote:

Hi,

 

I wanted to upgrade my Chef Server 11.0.8-1 to 12.0.8. I found an article that I have to upgrade to 11.1 first and then go to 12.0.8

 

I upgraded to 11.1 completely but when I try to upgrade 11.1 to 12.0.8 I got this error:

 

:~# chef-server-ctl upgrade

Open source Chef 11 server detected.

Would you like to upgrade? [yN]

y

Upgrading the open source Chef 11 server.

……

 

ERROR: /environments failed to children: HTTP error retrieving children: 401 "Unauthorized"

ERROR: /clients failed to children: HTTP error retrieving children: 401 "Unauthorized"

ERROR: /users failed to children: HTTP error retrieving children: 401 "Unauthorized"

ERROR: /roles failed to children: HTTP error retrieving children: 401 "Unauthorized"

ERROR: /nodes failed to children: HTTP error retrieving children: 401 "Unauthorized"

 

ERROR: Failed to authenticate to https://localhost as admin with key /etc/chef-server/admin.pem

Response:  Invalid signature for user or client 'admin'

ERROR: /data_bags failed to children: HTTP error getting children: 401 "Unauthorized"knife download failed with pid 16102 exit 100

 

 

 

 




Archive powered by MHonArc 2.6.16.

§