Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Incomplete
-
SERVER 0.2.1
-
None
-
None
-
CentOS 6.5 server and agent
-
2
-
PE 2014-10-22
Description
When used with file_concat module (https://github.com/electrical/puppet-lib-file_concat)
Seeing these errors:
agent:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload puppet/type/file_concat: uninitialized constant Puppet::Type::File::Owner on node host.net
server:
2014-10-07 15:48:42,163 ERROR [puppet-server] Could not autoload puppet/type/file_concat:
uninitialized constant Puppet::Type::File::Owner on node host.net
2014-10-07 15:48:42,188 ERROR [puppet-server] Could not autoload puppet/type/file_concat:
uninitialized constant Puppet::Type::File::Owner on node host.net
org/jruby/RubyModule.java:2723:in `const_missing'
/etc/puppet/modules/file_concat/lib/puppet/type/file_concat.rb:51:in `(root)'
org/jruby/RubyModule.java:2337:in `module_eval'
...
Works OK with puppetmaster.
------------
UPDATE: tl;dr: this issue can be resolved by simply commenting out the require 'puppet/type/file' line in file_concat:
https://github.com/electrical/puppet-lib-file_concat/blob/master/lib/puppet/type/file_concat.rb#L1
There is a PR open against file_concat to fix this upstream:
https://github.com/electrical/puppet-lib-file_concat/pull/8
This should hopefully also resolve issues with puppet-logstash:
Attachments
Issue Links
- relates to
-
PUP-8733 File type redefined when required in code
-
- Closed
-