Issue #23243 has been updated by Josh Cooper.

Status changed from Unreviewed to Duplicate

----------------------------------------
Bug #23243: Dies when empty, executable file placed in facts.d
https://projects.puppetlabs.com/issues/23243#change-100108

* Author: Tony Kolstee
* Status: Duplicate
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Keywords: 
* Branch: 
* Affected Facter version: 1.7.2
----------------------------------------
When an empty file is placed in /etc/facter/facts.d and its mode is executable, 
facter dies with the following error:

/usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:95: command not found: 
/etc/facter/facts.d/${filename}.rb
Error: undefined method `each_line' for nil:NilClass

In my particular case, a puppet manifest is used to create a Ruby file in this 
directory. Often the manifest runs without issue but in some (10-20%) instances 
puppet places a "${filename}.puppettmp_${number}" file in that directory with 
executable mode, and dies before it removes the temp file. This completely 
breaks facter and puppet, requiring that this file be manually deleted.

This appears to be a race condition within Puppet, and I wasn't sure whether to 
report this as a Facter or a Puppet bug. Please advise.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to