Closed zerhacker closed 8 years ago
Facing the same issue on RHEL 7.2 (Red Hat Enterprise Linux Server release 7.2 (Maipo))
Starting Chef Client, version 12.12.3 resolving cookbooks for run list: ["private-chef::add_ons_wrapper"] Synchronizing Cookbooks:
- private-chef (0.1.0)
- yum (3.10.0)
- openssl (4.4.0)
- apt (2.9.2)
- runit (1.6.0)
- chef-sugar (3.3.0)
- enterprise (0.10.1)
- packagecloud (0.0.18) Installing Cookbook Gems: Compiling Cookbooks...
undefined method `url' for []:Array
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:58:in block in from_file' /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:51:in
each'
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:51:in `from_file'
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:
51: node['private_chef']['addons']['packages'].each do |pkg| 52: artifact_info = Mixlib::Install.new( 53: channel: :stable, 54: product_name: pkg.split(/(chef-|opscode-)(.*)/).last, 55: product_version: :latest, 56: ).detect_platform.artifact_info 57: 58>> pkg_file = File.join(addon_path, File.basename(artifact_info.url)) 59: 60: remote_file pkg_file do 61: source artifact_info.url 62: checksum artifact_info.sha256 63: end 64: end 65: else 66: addon_path = node['private_chef']['addons']['path'] 67: end
x86_64-linux
Running handlers:
Running handlers complete Chef Client failed. 0 resources updated in 08 seconds [2016-07-05T14:27:33-07:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out [2016-07-05T14:27:33-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
Generated at 2016-07-05 14:27:33 -0700 NoMethodError: undefined method
url' for []:Array /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:58:in
block in from_file' /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:51:ineach' /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:51:in
from_file' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/mixin/from_file.rb:30:ininstance_eval' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/mixin/from_file.rb:30:in
from_file' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/cookbook_version.rb:233:inload_recipe' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/run_context.rb:354:in
load_recipe' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/run_context/cookbook_compiler.rb:140:inblock in compile_recipes' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/run_context/cookbook_compiler.rb:138:in
each' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/run_context/cookbook_compiler.rb:138:incompile_recipes' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/run_context/cookbook_compiler.rb:75:in
compile' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/run_context.rb:176:inload' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/policy_builder/expand_node_object.rb:97:in
setup_run_context' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/client.rb:510:insetup_run_context' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/client.rb:280:in
run' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/application.rb:268:inrun_with_graceful_exit_option' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/application.rb:244:in
block in run_chef_client' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/local_mode.rb:44:inwith_server_connectivity' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/application.rb:227:in
run_chef_client' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/application/client.rb:419:inrun_application' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/lib/chef/application.rb:59:in
run' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.3/bin/chef-client:26:in<top (required)>' /opt/opscode/embedded/bin/chef-client:23:in
load' /opt/opscode/embedded/bin/chef-client:23:in `'
Facing the same exact error as zerhacker
Hi,
I would recommend installing the package directly on the Chef Server system, like this. You can get the package file from https://downloads.chef.io/push-jobs-server/redhat/
sudo rpm -Uvh opscode-push-jobs-server-1.1.6-1.x86_64.rpm After the installation, you will still need to reconfigure with
chef-server-ctl reconfigure opscode-push-jobs-server-ctl reconfigure chef-server-ctl reconfigure
Also, you can install it via the command below which should take perform the necessary reconfigures:
sudo chef-server-ctl install opscode-push-jobs-server --path /path/to/opscode-push-jobs-server-1.1.6-1.x86_64.rpm
Word just in - I verified that as of Today a new version of Push 2.0 is available and will install with the ctl command. To install the 1.x you'll still do it manually.
Im closing this issue.
Installation in a fresh, minimal CentOS7-VM (VirtualBox) failed. Here is the complete console output:
System information:
Do you need any further information?