Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-40

uninitialized constant Puppet::Type::File::Owner

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Incomplete
    • SERVER 0.2.1
    • None
    • Puppet Server
    • None
    • CentOS 6.5 server and agent

    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:

      https://github.com/elasticsearch/puppet-logstash/pull/196

      Attachments

        Issue Links

          Activity

            People

              jeremy.barlow Jeremy Barlow
              eskp Simon KP
              Erik Dasher Erik Dasher
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support