Uploading cookbooks to chef-zero using berks often crashes when Request timeout is 300 #241
Labels
Aspect: Performance
Works without negatively affecting the system running it.
Type: Bug
Does not work as expected.
Milestone
Starting in version 4.8.0 the default request timeout for WEBrick timeout was increased from 30 to 300 (see #137).
The increase in timeout seems to cause problems when using berks to upload to chef-zero server. See stack trace below which happened when using all gems packaged in latest chefdk (0.17.17).
Here is code to reproduce the issue (assumes your running at top-level directory of cookbook):
The interesting part is if you rerun
berksfile.upload(options.symbolize_keys)
enough times eventually all the cookbooks do get uploaded successfully.When I set
server.server.config[:RequestTimeout] = 30
after starting chef-zero server in background I don't hit the issue anymore.The text was updated successfully, but these errors were encountered: