puppetlabs/puppet · error · Puppet::Error
Failed to set owner to '%{should}': %{detail}
Error message
Failed to set owner to '%{should}': %{detail} What it means
Error "Failed to set owner to '%{should}': %{detail}" thrown in puppetlabs/puppet.
Source
Thrown at lib/puppet/provider/file/windows.rb:48
# We use users and groups interchangeably, so use the same methods for both
# (the type expects different methods, so we have to oblige).
alias :uid2name :id2name
alias :gid2name :id2name
alias :name2gid :name2id
alias :name2uid :name2id
def owner
return :absent unless resource.stat
get_owner(resource[:path])
end
def owner=(should)
set_owner(should, resolved_path)
rescue => detail
raise Puppet::Error, _("Failed to set owner to '%{should}': %{detail}") % { should: should, detail: detail }, detail.backtrace
end
def group
return :absent unless resource.stat
get_group(resource[:path])
end
def group=(should)
set_group(should, resolved_path)
rescue => detail
raise Puppet::Error, _("Failed to set group to '%{should}': %{detail}") % { should: should, detail: detail }, detail.backtrace
end
def mode
if resource.stat
mode = get_mode(resource[:path])
mode ? mode.to_s(8).rjust(4, '0') : :absentView on GitHub (pinned to e227c27540)
When it happens
Trigger: Thrown at lib/puppet/provider/file/windows.rb:48 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of puppetlabs/puppet@e227c27540 (2026-08-21).
Data as JSON: /api/errors/7e5c93b6ec5460a0.
Report an issue: GitHub.