Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7466

Attempt to redefine entity error while evaluating a Virtual Query

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Incomplete
    • PUP 4.10.0
    • None
    • None
    • None
    • Centos7, Puppet 4.10.0, Puppetserver 2.7.2

    • Coremunity
    • Reviewed
    • Needs Assessment

    Description

      When running puppet for the first time in an environment, after the environment cache has been cleared (e.g. r10k webhook run) and after puppet generate types has been run the following error pops up once:

      Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/file_line: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/file_line'. Set at unknown location at 
      /etc/puppetlabs/code/environments/ENV/modules/MODULE/manifests/master/MANIFEST.pp:364:5 on node 
      SERVER
      

      After running the agent once more, the error is gone. This only happens after the Puppet 4.10.0 update.

      Howto reproduce

      Code causing the issue / reported by error message:

          File_line <| tag == 'thisismytag' |> ~> Service['puppetserver']
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elconas Robert Heinzmann
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support