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

Repository error message uri is missing part of the path

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 5.3.5, PUP 5.5.0
    • PUP 6.24.0, PUP 7.9.0
    • None
    • CentOS 7.4, Puppet Enterprise 2017.3.5 (puppet-agent 5.3.5)

    • Hide

      Error message should have the correct URI so that troubleshooting doesn't take a bad turn.

      Show
      Error message should have the correct URI so that troubleshooting doesn't take a bad turn.
    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • Bug Fix
    • The "puppet module" application reported an incorrect URL in error messages if the "module_repository" setting was overridden.
    • Needs Assessment

    Description

      We had a problem with our artifactory server, where it would return a 404 for the Puppet repository it was providing. This caused an error message to appear, about 404 errors. I tried to install the module manually (or search for it) and also got a 404 error:

      [root@puppetmaster ~]# puppet module --debug search saz-sudo
      Debug: Runtime environment: puppet_version=5.3.5, ruby_version=2.4.3, run_mode=user, default_encoding=UTF-8
      Notice: Searching https://artifactory.domain.com/artifactory/api/puppet/puppet ...
      Debug: HTTP GET https://artifactory.domain.com/artifactory/api/puppet/puppet/artifactory/api/puppet/puppet/v3/modules?query=saz-sudo&module_groups=base%20pe_only
      Error: Request to Puppet Forge failed.
        The server being queried was https://artifactory.domain.com/v3/modules?query=saz-sudo&module_groups=base%20pe_only
        The HTTP response we received was '404 '
      Error: Try 'puppet help module search' for usage 

       

      Before adding the debug flag, I thought that the puppet module tool was loosing the "path" part of the "module_repository" configuration when it read it from the puppet.conf, vs when it was specified on the command line. This was not the case, but it led to a lot of pointless troubleshooting. The error message should have the correct URL that failed.

       

      NOTICE the difference between:

      Debug: HTTP GET https://artifactory.domain.com/artifactory/api/puppet/puppet/artifactory/api/puppet/puppet/v3/modules?query=saz-sudo&module_groups=base%20pe_only 

      ... and:

      The server being queried was https://artifactory.domain.com/v3/modules?query=saz-sudo&module_groups=base%20pe_only 

       

      Attachments

        Issue Links

          Activity

            People

              josh Josh Cooper
              tommy.mcneely Tommy McNeely
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support