Martin Nilsson
Martin Nilsson

Reputation: 679

Azure devops agent fails when extracting task: The directory is not empty

I have a random and intermittent problem with a self-hosted agent failing to extract tasks. In this case CopyFiles task.

##[debug]Extracting task cbdaa6bc4190917ecfa689a5bda8 from C:\azagent\A1\_work\_taskzips\CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c_2.190.1.zip to C:\azagent\A1\_work\_tasks\CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c\2.190.1.
##[error]The directory is not empty. : 'C:\azagent\A1\_work\_tasks\CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c\2.190.1'
##[debug]System.IO.IOException: The directory is not empty. : 'C:\azagent\A1\_work\_tasks\CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c\2.190.1' 

Anyone who has encountered this?

Upvotes: 2

Views: 1926

Answers (1)

Martin Nilsson
Martin Nilsson

Reputation: 679

This was caused by Real-time protection locking files

Upvotes: 4

Related Questions