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

Issue in 3.2.2 with undefined method `uniq' for nil:NilClass #421

Closed
brentm5 opened this issue Apr 14, 2016 · 5 comments
Closed

Issue in 3.2.2 with undefined method `uniq' for nil:NilClass #421

brentm5 opened this issue Apr 14, 2016 · 5 comments

Comments

@brentm5
Copy link
Contributor

brentm5 commented Apr 14, 2016

It looks like there is an issue with the newest version of 3.2.2. We were seeing the following issue:

Error executing action `create` on resource 'template[/etc/httpd/ports.conf]'

# In /var/chef/cache/cookbooks/apache2/definitions/apache_conf.rb

 30:   template "#{params[:conf_path]}/#{conf_name}" do
 31:     source params[:source] || "#{conf_name}.erb"
 32:     cookbook params[:cookbook] if params[:cookbook]
 33:     owner 'root'
 34:     group node['apache']['root_group']
 35:     backup false
 36:     mode '0644'
 37:     notifies :restart, 'service[apache2]', :delayed
 38:   end
 39: 

Compiled Resource

# Declared in /var/chef/cache/cookbooks/apache2/definitions/apache_conf.rb:30:in `block in from_file'

template("/etc/httpd/ports.conf") do
  params {:enable=>false, :conf_path=>"/etc/httpd", :name=>"ports"}
  action [:create]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  source "ports.conf.erb"
  declared_type :template
  cookbook_name "apache2"
  recipe_name "default"
  owner "root"
  group "root"
  mode "0644"
  path "/etc/httpd/ports.conf"
  atomic_update true
end

We are not doing anything crazy with the apache2 cookbook either, if I had to guess it would be the following line because there is no null check for the listen_addresses

https://github.com/svanzoest-cookbooks/apache2/blame/master/libraries/listen.rb#L37-L40

@brentm5
Copy link
Contributor Author

brentm5 commented Apr 14, 2016

Submitted PR #422 to fix the issue

@zepheiryan
Copy link

Seeing the same. Any notion of when the fix might be incorporated into a formal release?

@robuye
Copy link

robuye commented Sep 6, 2016

same issue here, looks like 3.2.2 downloaded from https://supermarket.chef.io/cookbooks/apache2 does not include the fix 😕

@svanzoest svanzoest added the bug label Oct 24, 2016
@svanzoest
Copy link
Contributor

Tracking now as #422

@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
ramereth pushed a commit that referenced this issue Sep 3, 2020
Fixes #421 by allowing pagerduty contact to be added to the admins contactgroup
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants