TMP files left behind on Windows server

51 views
Skip to first unread message

Nick Miller

unread,
Apr 10, 2014, 11:44:21 AM4/10/14
to puppet...@googlegroups.com
Hi,

I have a manifest that pushes files to some Windows servers.  Everything seems to work well, except that it sometimes leaves some temp files behind.  If I have MyApp.exe, after a while the directory looks like this:

MyApp.exe
MyApp.exe~RF27dk3hdk.TMP
MyApp.exe~RF27en2n3h.TMP
MyApp.exe~RF27n3hs93.TMP

I have several File[] types pushing to this directory, so I don't think Purge => true is an option.

Does anyone know why these are piling up?

Thanks,
Nick

Rob Reynolds

unread,
Apr 10, 2014, 12:19:26 PM4/10/14
to puppet...@googlegroups.com
What version of puppet agent? Would it happen to be 3.4.x series? 


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a816e58b-19d1-48d1-9ef4-8aa1256fc62c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco - http://puppetconf.com 

Nick Miller

unread,
Apr 10, 2014, 12:29:05 PM4/10/14
to puppet...@googlegroups.com
Actually yes, it's 3.4.3

Rob Reynolds

unread,
Apr 10, 2014, 3:30:24 PM4/10/14
to puppet...@googlegroups.com
We just changed a particular function we use to copy files in 3.4.1 and then fixed up a couple of things with it in 3.4.3 [1][2]. There were some more fixes that went into 3.5.0 [3], but it is possible that we missed some things.

If you don't find this fixed with 3.5.1 when it comes out, then please follow up with an issue.




For more options, visit https://groups.google.com/d/optout.

Nick Miller

unread,
Apr 11, 2014, 12:55:39 PM4/11/14
to puppet...@googlegroups.com
Thanks, I'll keep an eye out for that update.

In the meantime, for anyone else having this problem, this is how I was able to work around it:

exec{'remove_temp':
                command                 => "C:\\Windows\\System32\\cmd.exe /c del *.TMP /f /q /a",
                cwd                     => 'C:\\Path\\To\\Files',
                refreshonly             => true,
        }

File['your_file_copy'] ~> Exec['remove_temp']
Reply all
Reply to author
Forward
0 new messages