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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Incomplete
    • Affects Version/s: SERVER 0.2.1
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Environment:

      CentOS 6.5 server and agent

    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      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:

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support