Purging the directory - System.UnauthorizedAccessException: (5) Access is denied:

Getting the following error message when trying to deploy an IIS site to a custom location. Looks to be something accessing the files. The process works after a reboot of the server but then when after firing the site up the subsequent purges fail.

If it helps, it’s a .net core app. I’ve tried to put in a stop IIS site before it to see if that helps but the same issue! The folder is also a DFS replicated folder.

Any ideas as really struggling with this intermittent error!

October 25th 2018 20:14:58Info
Purging the directory ‘D:\StageApplications\Wallet\alphaapiod’
October 25th 2018 20:16:02Error
System.UnauthorizedAccessException: (5) Access is denied: [\?\D:\StageApplications\Wallet\alphaapiod\api-ms-win-crt-convert-l1-1-0.dll]
October 25th 2018 20:16:02Error
at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
October 25th 2018 20:16:02Error
at Alphaleonis.Win32.Filesystem.File.DeleteFileCore(KernelTransaction transaction, String path, Boolean ignoreReadOnly, PathFormat pathFormat)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.LongPathsFile.Delete(String path)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.DeleteFile(String path, FailureOptions options)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, FailureOptions options, String[] globs) October 25th 2018 20:16:02Error at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment) October 25th 2018 20:16:02Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() October 25th 2018 20:16:02Error at Calamari.Deployment.ConventionProcessor.RunConventions() October 25th 2018 20:16:02Error Running rollback conventions... October 25th 2018 20:16:02Error (5) Access is denied: [\\?\D:\StageApplications\Wallet\alphaapiod\api-ms-win-crt-convert-l1-1-0.dll] October 25th 2018 20:16:02Error System.UnauthorizedAccessException October 25th 2018 20:16:02Error at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath) October 25th 2018 20:16:02Error at Alphaleonis.Win32.Filesystem.File.DeleteFileCore(KernelTransaction transaction, String path, Boolean ignoreReadOnly, PathFormat pathFormat) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.LongPathsFile.Delete(String path) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.DeleteFile(String path, FailureOptions options) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, FailureOptions options, String[] globs)
October 25th 2018 20:16:02Error
at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
October 25th 2018 20:16:02Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
October 25th 2018 20:16:02Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
October 25th 2018 20:16:02Error
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
October 25th 2018 20:16:02Error
at Calamari.Program.Execute(String[] args)
October 25th 2018 20:16:02Fatal
The remote script failed with exit code 100

Hi John,

Thanks for contacting us. We have had multiple reports of this error recently, and are currently working on a patch for Calamari and Tentacle that should hopefully fix the problem. Look out for an update hopefully this week.

Thanks

Any update on the expected release date?

thanks

Hi John,

This fix has gone out as part of the 2018.9.2 release. Also since the fix is part of Calamari you should also update your tentacles to the latest version.

Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.