Open jwadolowski opened 7 years ago
As an interim solution I set nginx['enable_non_ssl'] = false
, run chef-server-ctl reconfigure
and updated my Apache config to use HTTPS proxy instead of plain HTTP one:
User <== (HTTPS) ==> ELB <== (HTTP) ==> Apache <== (HTTPS) ==> Chef Server
I configured my Chef Server as follows:
My
chef-server.rb
:Whenever I try to upload new cookbook I get this error
At first glance it may look like berkshelf bug, but it seems that in such setup Chef Server generates invalid response to
POST /organizations/example/sandboxes
request (details below).All other operations work without issues (
knife cookbook list
,knife node list
, etc)Expected Behavior
Chef Server should work properly and allow cookbook uploads if it's configured as outlined above.
Current Behavior
berks upload
triggers a bunch of HTTP requestsThe last one seems to be crucial in this case. Here's raw HTTP response
Headers
Body
uri
is set tohttps://chef.example.org:80
, which is incorrect (wrong port) and most probably that's the reason whyberks
failsSteps to Reproduce
berks upload
commandYour Environment
Related issues
It seems to be related/partially related to #50 and #662