[chef] Re: Re: Server 500 errrors from knife environment show


Chronological Thread 
  • From: John McMeeking < >
  • To:
  • Subject: [chef] Re: Re: Server 500 errrors from knife environment show
  • Date: Wed, 22 Apr 2015 14:28:23 -0500

We'll change knife.rb to log to STDERR.

It unclear to me whether these messages indicate a problem or perhaps just more logging by chef.  But as long as the commands aren't failing, we can live with that.

John  M
IBM


Inactive hide details for Daniel DeLeo ---04/22/2015 12:36:13 PM---On Wednesday, April 22, 2015 at 9:36 AM, John McMeeking wrotDaniel DeLeo ---04/22/2015 12:36:13 PM---On Wednesday, April 22, 2015 at 9:36 AM, John McMeeking wrote: > I've noticed occasional messages li

From: Daniel DeLeo < >
To:
Date: 04/22/2015 12:36 PM
Subject: [chef] Re: Server 500 errrors from knife environment show
Sent by: Daniel DeLeo < >





On Wednesday, April 22, 2015 at 9:36 AM, John McMeeking wrote:
> I've noticed occasional messages like the following when running commands like "knife environment show":
>  
> ERROR: Server returned error 500 for
https://myserver:14443/organizations/ibm/environments/test-env, retrying 1/5 in 4s
>  
> The command completes after this retry, but it was run from a tool that uses the command to capture the output and process it as JSON file. The error is logged to stdout, and thus appears in the JSON file. The error is not frequent - I might see it once before tearing the system down and reinstalling chef-server for another round of testing.
>  
> I started seeing these after we moved to chef server 12.0.5 from chef server 11.
>  
> Given that the retry is successful, should this should be logged to the console? Does this reflect a problem that needs fixing - either in chef, or something in our environments?
>  
>  
> John M
> IBM

The source of this problem is that the logger is configured with the same defaults for both chef-client and knife, but users have different expectations of how these tools behave in terms of what output goes where. It’s probably a good idea for knife to configure the logger to use stderr by default. In the short term, you can use the log location setting in your knife config file to send log output like this to stderr.

--  
Daniel DeLeo







Archive powered by MHonArc 2.6.16.

§