dotnet-ci icon indicating copy to clipboard operation
dotnet-ci copied to clipboard

Cannot delete workspace :remote file operation failed

Open pakrym opened this issue 7 years ago • 2 comments

We get a lot of Jenkins failures like https://ci3.dot.net/job/aspnet_IISIntegration/job/master/job/windows-Configuration_Release_prtest/75/console in https://github.com/aspnet/IISIntegration repo.

I suspect that it's caused by hanging w3wp or iisexpress processes that are not killed by default targets. Is there a way for us to kill processes before WS-CLEANUP runs or should I open PR to add them to common targets?

pakrym avatar Aug 08 '18 19:08 pakrym

This is the initial workspace cleanup, which means that a previous run still has processes running. AFAIK, this shouldn't happen because the previous run's processes should be killed by this time.

They are cleaned up by doing the following:

  • Job has a cookie environment variable. All processes started by the job get the cookie.
  • After run, find all processes in the system with the cookie and kill. This of course requires perms to kill those processes.

Could something you're doing be breaking that workflow?

mmitche avatar Aug 13 '18 15:08 mmitche

Yeah, we use full IIS and it's a service that runs from SYSTEM account. If we leave broken IIS instance running it might escape the cookie check.

pakrym avatar Aug 13 '18 16:08 pakrym