[chef] Re: Erchef error when uploading cookbooks


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Erchef error when uploading cookbooks
  • Date: Thu, 5 Dec 2013 15:27:04 -0800


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




Archive powered by MHonArc 2.6.16.

§