Issue #2514 has been reported by Luke Kanies.

----------------------------------------
Bug #2514: Filename caching breaks when directories are missing
http://projects.reductivelabs.com/issues/2514

Author: Luke Kanies
Status: Accepted
Priority: Normal
Assigned to: Luke Kanies
Category: plumbing
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


If, when looking for files, something throws anything other than Errno::ENOENT, 
which happens if you don't have permissions, if a dir is missing, etc., then 
you get total breakdown:
<pre>
/usr/lib/ruby/1.8/puppet/util/autoload/file_cache.rb:27:in `lstat': Not a 
directory - ./puppet/provider/component (Errno::ENOTDIR)
from /usr/lib/ruby/1.8/puppet/util/autoload/file_cache.rb:27:in 
`directory_exist?'
from /usr/lib/ruby/1.8/puppet/util/autoload.rb:137:in `eachdir'
from /usr/lib/ruby/1.8/puppet/util/autoload.rb:135:in `each'
from /usr/lib/ruby/1.8/puppet/util/autoload.rb:135:in `eachdir'
from /usr/lib/ruby/1.8/puppet/util/autoload.rb:116:in `loadall'
from /usr/lib/ruby/1.8/puppet/metatype/manager.rb:93:in `newtype'
from /usr/lib/ruby/1.8/puppet/type/component.rb:10
from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/1.8/active_support/dependencies.rb:354:in `new_constants_in'
from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/1.8/puppet/type.rb:2512
from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/1.8/active_support/dependencies.rb:354:in `new_constants_in'
from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/1.8/puppet.rb:382
from /usr/lib/ruby/1.8/puppet/application/puppetqd.rb:1:in `require'
from /usr/lib/ruby/1.8/puppet/application/puppetqd.rb:1
from /usr/sbin/puppetqd:52:in `require'
from /usr/sbin/puppetqd:52 
</pre>
It's an easy fix.


-- 
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://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to