The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #3543

undefined method `each' for nil:NilClass

Added by micah - over 4 years ago. Updated almost 3 years ago.

Status:InvestigatingStart date:04/13/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

I’m running with 0.25.4, with the dbconnections configuration variable fix (#2568) cherry-picked in. I’ve been getting some logs on my puppetmaster as follows:

puppetmasterd[25058]: undefined method `each' for nil:NilClass at /etc/puppet/modules/runlevel/manifests/init.pp:67 on node xxx
puppetmasterd[25086]: undefined method `each' for nil:NilClass on node xxxx
puppetmasterd[25114]: undefined method `each' for nil:NilClass at /etc/puppet/modules/nagios/manifests/base.pp:80 on node xxx.riseup.net

I was getting these in a previous release, but they were fixed by #2863, however they have come back. I checked the code that was changed in #2863, and it still exists, so that wasn’t removed. I have been having difficulties recently with storedconfig connections to the database causing catalog compiles to either take thousands of seconds, or spit out an error like this:

Apr 12 18:14:05 puppetmaster puppetmasterd[11219]: could not obtain a database connection within 5 seconds.  The max pool size is currently 5; consider increasing it.

I added the dbconnections bit so I could increase that value, but quickly went from setting it to 10, to now 40 and I am still getting the error (although the max pool size is reported as 40 now, instead of 5 of course). I dont know if the nil:NilClass errors are caused when that happens, or if they are different issues.

History

#1 Updated by James Turnbull over 4 years ago

  • Status changed from Unreviewed to Investigating
  • Assignee set to Markus Roberts

Brice – was this your patch originally?

#2 Updated by Klavs Klavsen over 4 years ago

I just saw one occurence of this on our 0.25.5 setup: puppetmasterd[10488]: undefined method `each' for nil:NilClass..

I have other error messages (see my case about this) which may bad handling of “performance issues” on the case of webrick. I’m working on settting up a passenger/mod_rails setup instead and see what errors continue after this. The above may or may not be related.

#3 Updated by Anonymous almost 3 years ago

  • Assignee deleted (Markus Roberts)

This issue was assigned to a former Puppet Labs employee. Adding back to the pool of unreviewed issues.

#4 Updated by Anonymous almost 3 years ago

This issue was assigned to a former Puppet Labs employee. Adding back to the pool of unreviewed issues.

Also available in: Atom PDF