state file access error
We use puppet to deploy our applications. We have a minimalist setup with a puppet agent(v 3.7.1) running on a windows 2008 server and executing our deployment recipes. From time to time, I notice that we run into some weird errors, specifically, in the logs of the puppet run, I find the following:
Error: Failed to apply catalog: ReplaceFile(C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml, C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml20160105-6464-g5ug03): The process cannot access the file because it is being used by another process
This error occur AFTER the deployment is finished, so I am guessing the puppet agent is trying to update some internal file to keep track of what is has just done.
Also, our deployment process is run from a build factory, it is not unusual(it's actually pretty frequent) to have multiple jobs running at the same time(which translates into multiple puppet processes being run), can this be an issue ? i.e. Is puppet capable of handling simultaneous runs(our puppet jobs are just calls to "puppet apply")
Thanks and regards,