Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong number of arguments #46

Open
pubyun opened this issue Apr 20, 2016 · 4 comments
Open

wrong number of arguments #46

pubyun opened this issue Apr 20, 2016 · 4 comments
Labels
Type: Bug Does not work as expected.

Comments

@pubyun
Copy link

pubyun commented Apr 20, 2016

Cookbook version

chef-server-core-12.5.0-1.el7.x86_64

Chef-client version

Chef Client, version 12.8.3

Platform Details

centos 7.2

ArgumentError
-------------
wrong number of arguments (2 for 0)

Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/recipes/runit.rb

 28: component_runit_supervisor node['enterprise']['name'] do
 29:   ctl_name node[node['enterprise']['name']]['ctl_name'] ||
 30:            "#{node['enterprise']['name']}-ctl"
 31:   sysvinit_id node[node['enterprise']['name']]['sysvinit_id']
 32:   install_path node[node['enterprise']['name']]['install_path']
 33: end

Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/recipes/runit.rb:28:in `from_file'

component_runit_supervisor("private_chef") do
  action [:create]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :component_runit_supervisor
  cookbook_name "enterprise"
  recipe_name "runit"
  ctl_name "private_chef-ctl"
  sysvinit_id "SV"
  install_path "/opt/opscode"
end

Platform:
---------
x86_64-linux
@nadx969
Copy link

nadx969 commented Jun 17, 2016

Cookbook version

Enterprise 0.10.0
runit 1.6.0

Chef-client version

Chef: 12.8.3

Platform Details

Distributor ID: LinuxMint
Description: Linux Mint 17.2 Rafaela
Release: 17.2
Codename: rafaela
Linux beachhead 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Scenario:

fresh install of Chef Server
running chef-server-ctl reconfigure

Starting Chef Client, version 12.10.26
resolving cookbooks for run list: ["private-chef::default"]
Synchronizing Cookbooks:

  • private-chef (0.1.0)
  • enterprise (0.10.0)
  • yum (3.10.0)
  • apt (2.9.2)
  • openssl (4.4.0)
  • runit (1.6.0)
  • chef-sugar (3.3.0)
  • packagecloud (0.0.18)
    Installing Cookbook Gems:

this results in the same above error Error executing actioncreateon resource 'component_runit_supervisor[private_chef]'

ArgumentError
-------------
wrong number of arguments (2 for 0)

Resource Declaration:
---------------------
# In /var/opt/opscode/local-mode-cache/cookbooks/enterprise/recipes/runit.rb

 28: component_runit_supervisor node['enterprise']['name'] do
 29:   ctl_name node[node['enterprise']['name']]['ctl_name'] ||
 30:            "#{node['enterprise']['name']}-ctl"
 31:   sysvinit_id node[node['enterprise']['name']]['sysvinit_id']
 32:   install_path node[node['enterprise']['name']]['install_path']
 33: end

Compiled Resource:
------------------
# Declared in /var/opt/opscode/local-mode-cache/cookbooks/enterprise/recipes/runit.rb:28:in `from_file'

component_runit_supervisor("private_chef") do
  action [:create]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :component_runit_supervisor
  cookbook_name "enterprise"
  recipe_name "runit"
  ctl_name "private_chef-ctl"
  sysvinit_id "SV"
  install_path "/opt/opscode"
end

Platform:
---------
x86_64-linux

@pubyun
Copy link
Author

pubyun commented Dec 13, 2016

ping

same problem in chef-server-core-12.11.1-1.el7

@tas50 tas50 added the Type: Bug Does not work as expected. label Mar 7, 2017
@richbai90
Copy link

Same issue in chef-server-core_12.13.0-1_amd64 running ubuntu trusty 14.04

@pubyun
Copy link
Author

pubyun commented Apr 13, 2018

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

4 participants