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

Print meaningful error message if the user/group providers are not suitable when applying the settings catalog

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.24.0, PUP 7.9.0
    • None
    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • Bug Fix
    • Puppet now prints a meaningful error if the user or group providers are not functional, as that prevents puppet from managing permissions for its internal files and directories.
    • Needs Assessment

    Description

      Hi Folks

      We have a problem when trying to run the Puppet Agent on a freshly reinstalled Mac. This issue is occurring on most versions on MacOS - Sierra, High Sierra, Mojave

      What is happening, is that after the first Puppet run, Puppet will fail to run again and throw the following error. If we delete the cache in /opt/puppetlabs/puppet/cache, we can re-run Puppet again, however the error will then re-occur on the next run, and the cache will need deleting again.

      Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for nil:NilClass
      Error: Could not prepare for execution: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for nil:NilClass
      undefined method `exists?' for nil:NilClass
      

      This also happens in no-op mode, so I speculate it's something to do with merely downloading the cache files from the server.

      I'd like to stress that we're only seeing this on freshly reinstalled Macs (using Apple's internet recovery). Macs new from the shop are fine.

      Thanks

      JT

      Attachments

        Activity

          People

            josh Josh Cooper
            jonathan.tripathy Jonny (JT) Tripathy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support