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

Error 500 on SERVER: Server Error: Could not autoload puppet/type/nagios_contactgroup: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/nagios_contactgroup'. Set at unknown location on node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: SERVER 6.15.3
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Environment:

      Server and client are Centos 7 (x86_64), running on Dell hardware.

    • Template:
      PUP Bug Template
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: puppet-agent-6.22.1-1.el7.x86_64
      Puppet Server Version: puppetserver-6.15.3-1.el7.noarch
      OS Name/Version: CentOS Linux release 7.9.2009 (Core)

      New build of a nagios server fails with:

      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not autoload puppet/type/nagios_contactgroup: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/nagios_contactgroup'. Set at unknown location on node nag01
      

      Desired Behavior:

      Catalog compiles and applies.

      Actual Behavior:

      2021-06-22T15:42:51.763-07:00 ERROR [qtp317762346-3529] [puppetserver] Puppet Could not autoload puppet/type/nagios_contactgroup: Attempt to redefine entity 'http://puppet.com/2016.1/runtime
      /type/nagios_contactgroup'. Set at unknown location on node nag01
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:125:in `fail_redefine'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:74:in `set_entry'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loaders.rb:151:in `register_runtime3_type'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:132:in `newtype'
      /etc/puppetlabs/code/environments/production/modules/nagios_core/lib/puppet/util/nagios_maker.rb:16:in `create_nagios_type'
      /etc/puppetlabs/code/environments/production/modules/nagios_core/lib/puppet/type/nagios_contactgroup.rb:3:in `<main>'
      org/jruby/RubyKernel.java:1009:in `load'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:66:in `load_file'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:201:in `load'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:172:in `type'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:382:in `resource_type'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:370:in `resource_type'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:311:in `initialize'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:386:in `resource'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler/catalog_validator/relationship_validator.rb:37:in `block in validate_relationship'
      org/jruby/RubyArray.java:1809:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler/catalog_validator/relationship_validator.rb:33:in `validate_relationship'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler/catalog_validator/relationship_validator.rb:11:in `block in validate'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:45:in `block in eachparam'
      org/jruby/RubyHash.java:1415:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:44:in `eachparam'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler/catalog_validator/relationship_validator.rb:9:in `block in validate'
      org/jruby/RubyArray.java:1809:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler/catalog_validator/relationship_validator.rb:6:in `validate'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:204:in `block in validate_catalog'
      org/jruby/RubyArray.java:1809:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:204:in `validate_catalog'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:192:in `block in compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:191:in `block in compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:274:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:155:in `compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:34:in `compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:307:in `block in compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:305:in `block in compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:233:in `block in benchmark'
      uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/benchmark.rb:308:in `realtime'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in `benchmark'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:303:in `compile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:56:in `block in find'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:427:in `with_text_domain'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:55:in `find'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:223:in `find'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:138:in `do_find'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:54:in `block in call'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:274:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:53:in `call'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in `block in process'
      org/jruby/RubyArray.java:1809:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81:in `process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:87:in `block in process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:70:in `block in with_request_profiling'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:66:in `with_request_profiling'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:86:in `block in process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:93:in `respond_to_errors'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:85:in `process'
      uri:classloader:/puppetserver-lib/puppet/server/master.rb:65:in `block in handleRequest'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:274:in `override'
      uri:classloader:/puppetserver-lib/puppet/server/master.rb:64:in `handleRequest'
      

      We have existing nagios vms  getting catalogs from the same puppetserver which use nagios_contactgroup without issues. The server has the nagios_core module in place.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              robbrooks Robert Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support