Le 2013-12-06 00:27, Daniel DeLeo a écrit :
On Thursday, December 5, 2013 at 6:29 AM, Tensibai wrote:
Hi chefs,
I've an error after upgrading my open source chef-server to 11.0.10 to upload cookbooks:
in erchef current log I have:
2013-12-05_14:20:03.31022 =ERROR REPORT==== 5-Dec-2013::14:20:03 ===
2013-12-05_14:20:03.31023 webmachine error: path="/sandboxes"
2013-12-05_14:20:03.31023 {error,{error,{badmatch,{error,no_scheme}},
2013-12-05_14:20:03.31024 [{mini_s3,format_s3_uri,2,[{file,"src/mini_s3.erl"},{line,415}]},
2013-12-05_14:20:03.31024 {mini_s3,s3_url,6,[{file,"src/mini_s3.erl"},{line,463}]},
2013-12-05_14:20:03.31025 {chef_wm_sandboxes,checksum_data,3,
2013-12-05_14:20:03.31025 [{file,"src/chef_wm_sandboxes.erl"},
2013-12-05_14:20:03.31026 {line,128}]},
2013-12-05_14:20:03.31026 {chef_wm_sandboxes,'-sandbox_to_response/2-lc$^0/1-0-',2,
2013-12-05_14:20:03.31032 [{file,"src/chef_wm_sandboxes.erl"},
2013-12-05_14:20:03.31032 {line,112}]},
2013-12-05_14:20:03.31034 {chef_wm_sandboxes,sandbox_to_response,2,
2013-12-05_14:20:03.31034 [{file,"src/chef_wm_sandboxes.erl"},
2013-12-05_14:20:03.31035 {line,112}]},
2013-12-05_14:20:03.31036 {chef_wm_sandboxes,from_json,2,
2013-12-05_14:20:03.31036 [{file,"src/chef_wm_sandboxes.erl"},
2013-12-05_14:20:03.31037 {line,89}]},
2013-12-05_14:20:03.31037 {webmachine_resource,resource_call,3,
2013-12-05_14:20:03.31039 [{file,"src/webmachine_resource.erl"},
2013-12-05_14:20:03.31039 {line,166}]},
2013-12-05_14:20:03.31040 {webmachine_resource,do,3,
2013-12-05_14:20:03.31040 [{file,"src/webmachine_resource.erl"},
2013-12-05_14:20:03.31041 {line,125}]}]}}I did try googling that but had no luck fixing it.
I really don't know erlang enough to understand the error, no_scheme on top of it, if someone could show e the way to look at I would really appreciate.
Regards,
Tensibai
My somewhat wild guess is that it’s failing to generate a URL somewhere, which could be caused by a bad config value somewhere. For reference, I have this on a working test system (host is named ubuntu and I put that in /etc/hosts to talk to it).sudo grep url /etc/chef-server/chef-server-running.json"url": "https://ubuntu","s3_url_ttl": 900,"url": "https://ubuntu”,HTH,--Daniel DeLeo
Thanks, indeed it was my chef-server.rb not correct for bookshelf, I forgot to override bookshelf['url'] :/
If it could be of some use to others using dns aliases what I did to get it working back:
1) suppress any alias/fqdn/ip enforced in chef-server.rb and chef-server-ctl reconfigure
2) grep hostname in chef-server-running.json and IP bindings
3) set hostname entries found in chef-server.rb and enforce the corresponding IP address where needed
What I ended with is overriding:
bookshelf['vip'] = "p1frchef01.nantes.xxxxxxxx.fr"
bookshelf['url'] = "https://p1frchef01.nantes.xxxxxxxxxxx.fr"
bookshelf['listen'] = "0.0.0.0"
lb['vip'] = "172.30.1.xxx" #<= what the fqdn below resolve to
lb['api_fqdn'] = 'p1frchef01.nantes.xxxxxxxx.fr'
lb['web_ui_fqdn'] = 'p1frchef01.nantes.xxxxxxxx.fr'
nginx['server_name'] = 'p1frchef01.nantes.xxxxxxxxxxxx.fr'
nginx['url'] = 'https://p1frchef01.nantes.xxxxxxxxxxxxx.fr'
I'm not sure the bookshelf['listen'] is necessary.
Regards.
Tensibai
Archive powered by MHonArc 2.6.16.