Logs:
08:54:03 Info | Purging the directory 'C:\ProjectName\AppName'
08:54:03 Error | System.IO.IOException: (87) The parameter is incorrect: [\\?\C:\ProjectName\AppName\node_modules\node-windows]
08:54:03 Error | at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
08:54:03 Error | at Alphaleonis.Win32.Filesystem.Directory.DeleteDirectoryCore(FileSystemEntryInfo fileSystemEntryInfo, KernelTransaction transaction, String path, Boolean recursive, Boolean ignoreReadOnly, Boolean continueOnNotExist, PathFormat pathFormat)
08:54:03 Error | at Calamari.Integration.FileSystem.LongPathsDirectory.Delete(String path, Boolean recursive)
08:54:03 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate`1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget)
08:54:03 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate`1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget)
08:54:03 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, FailureOptions options, String[] globs)
08:54:03 Error | at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
08:54:03 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
08:54:03 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
08:54:03 Error | Running rollback conventions...
After adding the exclude:
13:16:21 Info | Purging the directory 'C:\ProjectName\AppName'
13:16:21 Info | Leaving files and directories that match any of: 'C:\ProjectName\AppName\node_modules\node-windows'
13:16:21 Verbose | Retry #1 on delete file 'C:\ProjectName\AppName\daemon\AppName.err.log'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\daemon\AppName.err.log]
13:16:21 Info | Copying package contents to 'C:\ProjectName\AppName'
13:16:21 Verbose | Retry #1 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:16:21 Verbose | Retry #2 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:16:22 Verbose | Retry #3 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:16:22 Verbose | Retry #4 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:16:33 Verbose | Retry #54 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:16:44 Verbose | Retry #104 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:16:54 Verbose | Retry #154 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:17:04 Verbose | Retry #204 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:17:14 Verbose | Retry #254 on copy 'C:\ProjectName\AppName\node_modules\node-windows\LICENSE'. Exception: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:17:24 Error | System.IO.IOException: (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:17:24 Error | at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
13:17:24 Error | at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(Boolean isFolder, KernelTransaction transaction, String sourcePath, String destinationPath, Boolean preserveDates, Nullable`1 copyOptions, Nullable`1 moveOptions, CopyMoveProgressRoutine progressHandler, Object userProgressData, PathFormat pathFormat)
13:17:24 Error | at Alphaleonis.Win32.Filesystem.File.Copy(String sourceFileName, String destinationFileName, Boolean overwrite)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.RetryTrackerFileAction(Action fileAction, String target, String action)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory)
13:17:24 Error | at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
13:17:24 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
13:17:24 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
13:17:24 Error | Running rollback conventions...
13:17:24 Error | (32) The process cannot access the file because it is being used by another process: [\\?\C:\ProjectName\AppName\node_modules\node-windows\LICENSE]
13:17:24 Error | System.IO.IOException
13:17:24 Error | at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
13:17:24 Error | at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(Boolean isFolder, KernelTransaction transaction, String sourcePath, String destinationPath, Boolean preserveDates, Nullable`1 copyOptions, Nullable`1 moveOptions, CopyMoveProgressRoutine progressHandler, Object userProgressData, PathFormat pathFormat)
13:17:24 Error | at Alphaleonis.Win32.Filesystem.File.Copy(String sourceFileName, String destinationFileName, Boolean overwrite)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.RetryTrackerFileAction(Action fileAction, String target, String action)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
13:17:24 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory)
13:17:24 Error | at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
13:17:24 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
13:17:24 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
13:17:24 Error | at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
13:17:24 Error | at Calamari.Program.Execute(String[] args)
Work folder cleanup:
20:32:00 Info | Removing directory 'C:\Octopus\Applications\ServerName\SomeFolderName\0.532.193'
20:32:00 Error | (87) The parameter is incorrect: [\\?\C:\Octopus\Applications\ServerName\SomeFolderName\0.532.193\node_modules\node-windows]
20:32:00 Error | System.IO.IOException
20:32:00 Error | at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
20:32:00 Error | at Alphaleonis.Win32.Filesystem.Directory.DeleteDirectoryCore(FileSystemEntryInfo fileSystemEntryInfo, KernelTransaction transaction, String path, Boolean recursive, Boolean ignoreReadOnly, Boolean continueOnNotExist, PathFormat pathFormat)
20:32:00 Error | at Calamari.Integration.FileSystem.LongPathsDirectory.Delete(String path, Boolean recursive)
20:32:00 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate`1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget)
20:32:00 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate`1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget)
20:32:00 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, FailureOptions options)
20:32:00 Error | at Calamari.Deployment.Retention.RetentionPolicy.DeleteExtractionDestination(JournalEntry deployment, List`1 preservedEntries)
20:32:00 Error | at Calamari.Deployment.Retention.RetentionPolicy.ApplyRetentionPolicy(String retentionPolicySet, Nullable`1 days, Nullable`1 releases)
20:32:00 Error | at Calamari.Commands.CleanCommand.Execute(String[] commandLineArguments)
20:32:00 Error | at Calamari.Program.Execute(String[] args)
20:32:00 Verbose | Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\Octopus\Work\20181106023159-108299-101 exited with code 100
20:32:00 Warning | The remote script failed with exit code 100