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

"Unable to set ownership" error with logdest on agents running as root

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 6.14.0
    • PUP 6.16.0, PUP 5.5.21
    • None
    • Puppet masterless, agent 6.14.0 running as root on CentOS 8.

    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • Bug Fix
    • Puppet no longer generates an error when using a log file destination.
    • Needs Assessment

    Description

      As described in the attached issue, a puppet agent run raises the following error: "Puppet (err): Unable to set ownership to puppet:puppet for log file".
      Caused by trying to change the owner to puppet:puppet which doesn't exist and shouldn't happen when run as root.

      This happens if the file doesn't exist but also when it does, since it writes to a temporary file and tries to set owner on this one too.

      Also the command line parameter "--no-manage_internal_file_permissions" dosen't help.

      Although this should have been fixed, it's not.

      Attachments

        Issue Links

          Activity

            People

              josh Josh Cooper
              the_evil Fabian Eichenberger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support