W2K8R2 puppet agent errors on second run - File exists - C:/ProgramData/PuppetLabs/puppet/var/facts.d

asked 2016-09-22 08:47:29 -0500

btoohey gravatar image

updated 2016-09-22 08:49:43 -0500

I consistently get the following on a second and all subsequent puppet agent runs after a puppet agent 3.6.2 install on a a Windows 2008R2 OS:

PS C:\Users\Administrator> & 'C:\Program Files (x86)\Puppet Labs\Puppet\bin\puppet.bat' agent -t
Error: Could not set 'directory' on ensure: File exists - C:/ProgramData/PuppetLabs/puppet/var/facts.d
Error: Could not set 'directory' on ensure: File exists - C:/ProgramData/PuppetLabs/puppet/var/facts.d
Wrapped exception:
File exists - C:/ProgramData/PuppetLabs/puppet/var/facts.d
Error: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]/ensure: change from absent to directory failed: Could not set 'directory' on ensure: File exists - C:/ProgramData/PuppetLabs/puppet/var/facts.d
Error: Could not prepare for execution: Got 1 failure(s) while initializing: File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: change from absent to directory failed: Could not set 'directory' on ensure: File exists - C:/ProgramData/PuppetLabs/puppet/var/facts.d
edit retag flag offensive close merge delete

Comments

C:\Programdata\PuppetLabs\puppet\var\facts.d is a file and not a directory in this scenario as you would expect.

btoohey gravatar imagebtoohey ( 2016-09-22 11:57:04 -0500 )edit