Issues with chef-delivery using ssh


#1

Hi people,

I installed chef-delivery repo in the github and configured my environement using rake setup:generate_env:
{
“name”: “dr_demo”,
“description”: “Delivery Cluster Environment”,
“json_class”: “Chef::Environment”,
“chef_type”: “environment”,
“override_attributes”: {
“delivery-cluster”: {
“accept_license”: true,
“id”: “dr_demo”,
“driver”: “ssh”,
“ssh”: {
“ssh_username”: “centos”,
“key_file”: “/home/exploit/.ssh/id_rsa”
},
“chef-server”: {
“organization”: “dr_demo”,
“existing”: false,
“host”: “33.33.33.10”
},
“delivery”: {
“fqdn”: “dr_demo.opschef.tv”,
“hostname”: “delivery-server-dr_demo-1”,
“ip”: “10.200.24.160”,
“version”: “latest”,
“enterprise”: “dr_demo”,
“license_file”: “/home/exploit/delivery.license”,
“host”: “33.33.33.11”,
“disaster_recovery”: {
“enable”: false
}
“dr” :{
“enable”: true,
“hostname”: “delivery-server-dr_demo-2”,
“ip”: “10.200.24.160”
},
},
“builders”: {
“count”: “1”,
“1”: {
“host”: “33.33.33.14”
}
}
}
}
}
and then i launched rake setup:cluster

[2016-05-20T17:15:01+02:00] WARN: chef_gem[chef-provisioning-ssh] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in block in run_chef_recipe' [2016-05-20T17:15:01+02:00] WARN: chef_gem[chef-provisioning-ssh] Please setcompile_time falseon the resource to use the new behavior. at recipes/provisioner.rb:25:inblock in run_chef_recipe’
[2016-05-20T17:15:01+02:00] WARN: chef_gem[chef-provisioning-ssh] or set compile_time true on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe’
Recipe: (chef-apply cookbook)::(chef-apply recipe)

  • chef_gem[chef-provisioning-ssh] action install (up to date)
    [2016-05-20T17:15:06+02:00] WARN: chef_gem[chef-provisioning-vagrant] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in block in run_chef_recipe' [2016-05-20T17:15:06+02:00] WARN: chef_gem[chef-provisioning-vagrant] Please setcompile_time falseon the resource to use the new behavior. at recipes/provisioner.rb:25:inblock in run_chef_recipe’
    [2016-05-20T17:15:06+02:00] WARN: chef_gem[chef-provisioning-vagrant] or set compile_time true on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe’
  • chef_gem[chef-provisioning-vagrant] action install (up to date)
    [2016-05-20T17:15:06+02:00] WARN: chef_gem[chef-provisioning-aws] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in block in run_chef_recipe' [2016-05-20T17:15:06+02:00] WARN: chef_gem[chef-provisioning-aws] Please setcompile_time falseon the resource to use the new behavior. at recipes/provisioner.rb:25:inblock in run_chef_recipe’
    [2016-05-20T17:15:06+02:00] WARN: chef_gem[chef-provisioning-aws] or set compile_time true on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe’
  • chef_gem[chef-provisioning-aws] action install (up to date)
    [2016-05-20T17:15:06+02:00] WARN: chef_gem[knife-push] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:28:in run_chef_recipe' [2016-05-20T17:15:06+02:00] WARN: chef_gem[knife-push] Please setcompile_time falseon the resource to use the new behavior. at recipes/provisioner.rb:28:inrun_chef_recipe’
    [2016-05-20T17:15:06+02:00] WARN: chef_gem[knife-push] or set compile_time true on the resource if compile_time behavior is required. at recipes/provisioner.rb:28:in `run_chef_recipe’
  • chef_gem[knife-push] action install (up to date)
  • chef_gem[chef-provisioning-ssh] action install (up to date)
  • chef_gem[chef-provisioning-vagrant] action install (up to date)
  • chef_gem[chef-provisioning-aws] action install (up to date)
  • chef_gem[knife-push] action install (up to date)

Download and vendor the necessary cookbooks locally

Resolving cookbook dependencies…
Fetching ‘chef-server-12’ from source at vendor/chef-server-12
Fetching ‘chef-splunk’ from https://github.com/chef-cookbooks/chef-splunk.git (at master)
Fetching ‘delivery-base’ from https://github.com/chef-cookbooks/delivery-base.git (at master)
Fetching ‘delivery-cluster’ from source at .
Fetching ‘delivery_build’ from https://github.com/chef-cookbooks/delivery_build.git (at master)
Fetching ‘runit’ from https://github.com/afiune/runit.git (at afiune/make-it-work-in-oel)
Fetching cookbook index from https://supermarket.chef.io
Installing apt (3.0.0)
Installing chef-ingredient (0.18.4)
Installing build-essential (4.0.0)
E, [2016-05-20T17:15:17.791274 #20038] ERROR – : Actor crashed!
RuntimeError: Non-HTTP proxy URI: https://193.56.47.8:8080
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:in open_http' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:inbuffer_open’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in block in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:incatch’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:inopen_uri’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in open' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:inopen’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:in block in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:inretryable’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:in try_download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:inblock in download’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in each' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:in install' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:indispatch’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create' E, [2016-05-20T17:15:17.791691 #20038] ERROR -- : Actor crashed! RuntimeError: Non-HTTP proxy URI: https://193.56.47.8:8080 /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:inopen_http’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in buffer_open' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:inblock in open_loop’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in catch' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:inopen_loop’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in open_uri' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:inopen’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in open' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:inblock in stream’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:in retryable' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:instream’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:in download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:intry_download’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:in block in download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:ineach’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:ininstall’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create’
E, [2016-05-20T17:15:18.667286 #20038] ERROR – : Actor crashed!
RuntimeError: Non-HTTP proxy URI: https://193.56.47.8:8080
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:in open_http' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:inbuffer_open’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in block in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:incatch’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:inopen_uri’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in open' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:inopen’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:in block in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:inretryable’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:in try_download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:inblock in download’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in each' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:in install' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:indispatch’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:inopen_http’: Non-HTTP proxy URI: https://193.56.47.8:8080 (RuntimeError)
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in buffer_open' from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:inblock in open_loop’
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in catch' from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:inopen_loop’
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in open_uri' from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:inopen’
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in open' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:inblock in stream’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:in retryable' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:instream’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:in download' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:intry_download’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:in block in download' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:ineach’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in download' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:ininstall’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create’
from (celluloid):0:in remote procedure call' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:invalue’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell_proxy.rb:17:insend
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:41:in _send_' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:140:inmethod_missing’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create’
from (celluloid):0:in remote procedure call' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/future.rb:104:invalue’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/future.rb:68:in value' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:175:inmap’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:175:in install_from_universe' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:39:inrun’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/berksfile.rb:421:in install' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/berksfile.rb:630:inblock in vendor’
from /opt/chefdk/embedded/lib/ruby/2.1.0/tmpdir.rb:88:in mktmpdir' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/berksfile.rb:628:invendor’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/cli.rb:391:in vendor' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/b
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/b
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/bin/b
from /opt/chefdk/bin/berks:48:in load' from /opt/chefdk/bin/berks:48:in

Does rake use the same lib as knife because knife indicates the same error message when i configure the proxy.

Thanks!


#2

Try including “bootstrap_proxy” and a “chef_config” statement:

<....>
"ssh": { 
  "bootstrap_proxy": "http://your_proxy:port",
  "chef_config":  "ssl_verify_mode :verify_none\nverify_api_cert false\nhttp_proxy 'http://your_proxy:port'\nno_proxy 'localhost,127.0.0.1,localhost.localdomain'", 
<other settings>
}

This puts the proxy in the initial chef run and puts in a no_proxy for localhost (you may wish to expand this to your local domain, but localhost being left out of the proxy is required)

See the delivery-cluster readme for more info.

–Jp


#3

Hi,
First of all, thanks for your answer!
well i tried to setup the proxy as you said but it seems that it doesn’t want a proxy:

untimeError: Non-HTTP proxy URI: https://193.56.47.8:8080
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:in open_http' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:inbuffer_open’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in block in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:incatch’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:inopen_uri’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in open' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:inopen’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:in block in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:inretryable’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:in try_download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:inblock in download’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in each' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:in install' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:indispatch’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create' E, [2016-05-23T15:53:21.526294 #4591] ERROR -- : Actor crashed! RuntimeError: Non-HTTP proxy URI: https://193.56.47.8:8080 /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:inopen_http’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in buffer_open' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:inblock in open_loop’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in catch' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:inopen_loop’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in open_uri' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:inopen’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in open' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:inblock in stream’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:in retryable' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:instream’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:in download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:intry_download’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:in block in download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:ineach’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:ininstall’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create’
E, [2016-05-23T15:53:21.526887 #4591] ERROR – : Actor crashed!
RuntimeError: Non-HTTP proxy URI: https://193.56.47.8:8080
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:in open_http' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:inbuffer_open’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in block in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:incatch’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in open_loop' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:inopen_uri’
/opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in open' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:inopen’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:in block in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:inretryable’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:in stream' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:in try_download' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:inblock in download’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in each' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:indownload’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:in install' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:indispatch’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize’
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create' /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:256:inopen_http’: Non-HTTP proxy URI: https://193.56.47.8:8080 (RuntimeError)
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in buffer_open' from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:inblock in open_loop’
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in catch' from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:inopen_loop’
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in open_uri' from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:inopen’
from /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in open' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:185:inblock in stream’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.3/lib/retryable.rb:67:in retryable' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:184:instream’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/community_rest.rb:102:in download' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:62:intry_download’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:36:in block in download' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:ineach’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/downloader.rb:35:in download' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:105:ininstall’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create’
from (celluloid):0:in remote procedure call' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:invalue’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell_proxy.rb:17:insend
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:41:in _send_' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:140:inmethod_missing’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create’
from (celluloid):0:in remote procedure call' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/future.rb:104:invalue’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/future.rb:68:in value' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:175:inmap’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:175:in install_from_universe' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/installer.rb:39:inrun’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/berksfile.rb:421:in install' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/berksfile.rb:630:inblock in vendor’
from /opt/chefdk/embedded/lib/ruby/2.1.0/tmpdir.rb:88:in mktmpdir' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/berksfile.rb:628:invendor’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/cli.rb:391:in vendor' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:indispatch’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/cli.rb:52:in dispatch' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:instart’
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/lib/berkshelf/cli.rb:27:in execute!' from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.0/bin/berks:5:in<top (required)>'
from /opt/chefdk/bin/berks:48:in load' from /opt/chefdk/bin/berks:48:in

Current chef environment => environments/test.json

Setup the Chef Delivery cluster

Starting Chef Client, version 12.8.1
[2016-05-23T15:53:26+02:00] WARN: Run List override has been provided.
[2016-05-23T15:53:26+02:00] WARN: Original Run List: []
[2016-05-23T15:53:26+02:00] WARN: Overridden Run List: [recipe[delivery-cluster::setup]]
resolving cookbooks for run list: [“delivery-cluster::setup”]

================================================================================
Error Resolving Cookbooks for Run List:

Missing Cookbooks:

No such cookbook: delivery-cluster

Expanded Run List:

  • delivery-cluster::setup

Running handlers:
[2016-05-23T15:53:26+02:00] ERROR: Running exception handlers
Running handlers complete
[2016-05-23T15:53:26+02:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 seconds
[2016-05-23T15:53:26+02:00] FATAL: Stacktrace dumped to /home/exploit/stages/provisionning_cherifa/chef-repo/delivery-cluster/.chef/local-mode-cache/cache/chef-stacktrace.out
[2016-05-23T15:53:26+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-05-23T15:53:26+02:00] ERROR: 412 “Precondition Failed”
[2016-05-23T15:53:28+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
rake aborted!
Failed executing ChefZero run
/home/exploit/stages/provisionning_cherifa/chef-repo/delivery-cluster/Rakefile:128:in chef_zero' /home/exploit/stages/provisionning_cherifa/chef-repo/delivery-cluster/Rakefile:387:inblock (2 levels) in <top (required)>'
Tasks: TOP => setup:cluster
(See full trace by running task with --trace)

I haven’t configured a proxy for knife and it works i can bootstrap a node that belongs to the same domain and when i setup the proxy it doesn’t work anymore because my workstation and my server are on the same machine!

So what do i need to do?


#4

Hi chernaj,

Thank you for reaching out for help. I am looking at your output and I can tell you that the problem you are having is that berkshelf can’t reach github.com and supermarket.chef.io. (Yup proxy) We can verify this by simple running berks install from the root of the delivery-cluster repository. You will have the same error:

untimeError: Non-HTTP proxy URI: https://193.56.47.8:8080

What you need to verify is that you have well configured the environment variables: http_proxy, https_proxy and no_proxy - You should verify that you can reach the sites I mentioned from your terminal and then you can re-try the rake setup:prerequisites command.

Let me know if you need further assistance.

Salim Afiune