tag:help.appveyor.com,2012-11-13:/discussions/problems/7682-error-uploading-webjob-500-status-the-process-cannot-access-the-file-because-it-is-being-used-by-another-processAppVeyor: Discussion 2018-08-25T02:20:59Ztag:help.appveyor.com,2012-11-13:Comment/433441142017-09-02T01:00:25Z2017-09-02T01:00:25ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>Yes, this feels very much like race condition. Not sure we can root cause it. What we can do from our side is to expose a retry. Let us know if you think it could help. It should not take too long to implement. I filed <a href="https://github.com/appveyor/ci/issues/1766">this</a> GH issue.</p>
<p>What also you can do is to write custom deployment script based on <a href="https://gist.github.com/IlyaFinkelshteyn/1af0e5d0a033c72b14b401c0b7205a31">those samples</a>, and add retry into your script. If you decide to do script, and retry helps, please let us know.</p>
<p>Did you open ticket with Azure by any chance?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/433441142017-09-05T16:27:50Z2017-09-05T16:27:50ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>Thanks much, I think that will help if we can't find the root cause.</p>
<p>Might be awhile before I get time to play with the samples, but thanks for<br>
the info. I'll give that a shot when I get a chance.</p>
<p>I didn't open a ticket with Azure. I don't understand the problem well<br>
enough to know exactly where the problem lies :)</p>
<p>Thanks!</p>
<p>Matt</p></div>matttag:help.appveyor.com,2012-11-13:Comment/433441142017-09-05T22:10:08Z2017-09-05T22:10:08ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>If you send us a specific time (in UTC or with time zone) when this error happens, I will check if I find more details in our traces. Also I believe that if you bring this information to Azure people, they might be able to give you some information from their traces which can help with a root cause. AppVeyor does not do anything very special when deploying WebJob, it is almost the same code as in that scripts.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/433441142017-09-05T22:26:00Z2017-09-05T22:26:00ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>Hmm, does the AppVeyor build log show timestamps? I can't find any, I just<br>
see how long the build has taken up to a certain point. If this info is<br>
available in past builds I'll happily forward that to you.</p>
<p>No worries, it helps to know that this is most likely on Azure's end rather<br>
than AppVeyor's. Thanks for looking into this!</p>
<p>Matt</p></div>matttag:help.appveyor.com,2012-11-13:Comment/433441142017-09-05T22:28:05Z2017-09-05T22:28:05ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>Link to the build would be enough to narrow the search in traces.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/433441142017-09-05T22:31:59Z2017-09-05T22:31:59ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>Here are the last few examples:</p>
<p><a href="https://ci.appveyor.com/project/Blossor/blossor-rake-2i93a/build/1.0.401">https://ci.appveyor.com/project/Blossor/blossor-rake-2i93a/build/1....</a></p>
<p><a href="https://ci.appveyor.com/project/Blossor/blossor-rake-2i93a/build/1.0.398">https://ci.appveyor.com/project/Blossor/blossor-rake-2i93a/build/1....</a></p>
<p><a href="https://ci.appveyor.com/project/Blossor/blossor-rake-2i93a/build/1.0.392">https://ci.appveyor.com/project/Blossor/blossor-rake-2i93a/build/1....</a></p>
<p>Thanks!</p></div>matttag:help.appveyor.com,2012-11-13:Comment/433441142017-09-06T02:20:59Z2017-09-06T02:20:59ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>I was not able to find any more additional error details. Looking into your build history (intermittent errors with mostly success) I feel that retry is a way to go. Will try to make it soon.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/433441142017-10-31T22:08:57Z2017-10-31T22:08:57ZError uploading WebJob (500 status): The process cannot access the file because it is being used by another process.<div><p>If you are still have this issues, you can try a retry (check <a href="https://www.appveyor.com/docs/deployment/azure-webjob/">doc</a>)</p></div>Ilya Finkelshteyn