Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

puppet & facter runs : private method `split' called for nil:NilClass

Hi Guys

If I run a 'puppet agent' or 'facter -p' on a client, I get

private method `split' called for nil:NilClass
Using stale cache

right at the very top of the output ie whilst agent is still loading facts....
Oddly enough this doesn't happen with just 'facter' on its own.
I have tried adding -d (debug) but I don't get any useful info eg for

puppet agent -t --noop --debug

Debug: Using settings: adding file resource 'ssldir': 'File[/etc/puppet/ssl]{:links=
>:follow, :backup=>false, :owner=>"puppet", :ensure=>:directory, :mode=>"771", :loglevel=>
:debug, :path=>"/etc/puppet/ssl"}'
Debug: Using settings: adding file resource 'lastrunreport': 'File[/var/lib/puppet/s
tate/last_run_report.yaml]{:links=>:follow, :backup=>false, :ensure=>:file, :mode=>"640", 
:loglevel=>:debug, :path=>"/var/lib/puppet/state/last_run_report.yaml"}'
--More--private method `split' called for nil:NilClass
Using stale cache
private method `split' called for nil:NilClass
Using stale cache
Debug: Puppet::Type::Group::ProviderPw: file pw does not exist
Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist


facter -p -d 
private method `split' called for nil:NilClass
Using stale cache
Not an EC2 host
Found no suitable resolves of 1 for selinux_config_mode
value for selinux_config_mode is still nil
value for pe_version is still nil
Found no suitable resolves of 1 for pe_minor_version
value for pe_minor_version is still nil
value for ipaddress6_lo is still nil
No fact for boardmanufacturer

... etc.
1. The above 'error msgs' are not actually a problem (apart from the splt & stale cache msgs ofc) and occur on well behaved machine also in debug mode.
2. Note that it doesn't seem to stop puppet or facter running but we need to clear this up as it's a prod system.
3. For 'facter -p', the msg occurs once, but twice for 'puppet agent ...'

Thanks
Chris