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


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Server 500 errrors from knife environment show
  • Date: Wed, 22 Apr 2015 10:35:40 -0700

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.

§