| Overview Unable to run puppet agent on windows 10 when Avast anti-virus is active Expected result Expect puppet agent to work without error Actual result Tons of errors all over the place where the AV agent blocks puppet C:\WINDOWS\system32>puppet agent -t Info: Caching certificate for bpm-r1.lan.asio Info: Caching certificate_revocation_list for ca Info: Caching certificate for bpm-r1.lan.asio Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Notice: /File[C:/ProgramData/PuppetLabs/puppet/cache/lib/facter]/ensure: created Notice: /File[C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/aio_agent_build.rb]/ensure: defined content as '{md5}cdcc1ff07bc245c66cc1d46be56b3af5' Notice: /File[C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/aio_agent_version.rb]/ensure: defined content as '{md5}d05c8cbf788f47d33efd46a935dda61e' Error: ReplaceFile(C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/archive_windir.rb, C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/archive_windir.rb20180624-10408-1ezfsm4): Unable to remove the file to be replaced. Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/archive_windir.rb]/ensure: change from 'absent' to 'file' failed: ReplaceFile(C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/archive_windir.rb, C:/ProgramData/PuppetLabs/puppet/cache/lib/facter/archive_windir.rb20180624-10408-1ezfsm4): Unable to remove the file to be replaced. Analysis Disabling all avast shields, Puppet agent works as expected (see screenshot) Workaround Remove anti-virus or set exclusions |