"(5) Access is denied" After v2018.8.11 Update

We are consistently receiving this error from our deployments after upgrading to v2018.8.11. We have never seen this error before, and we deploy daily, so the likelihood of this being something other than the update is low.

We have tried reducing the Octopus.Action.MaxParallelism to 1, but this didn’t help, which tells me it is not likely to be a race condition. This is happening in all of our environments (we have 4), which tells me it’s not the deployment targets themselves.

This always occurs in the copy package contents area of the “Deploy to IIS” step:

Deploying package: C:\Octopus\Files\EE.Build.BillingDashboard@S2.68.108.20916@EA29BCE008A35649B9B66A79695CB5F5.nupkg
October 22nd 2018 09:08:12
Info
Running predeploy script…
October 22nd 2018 09:08:12
Info
Predeploy script finished.
October 22nd 2018 09:08:12
Info
Purging the directory ‘C:\Web\BillingDashboard’
October 22nd 2018 09:08:12
Info
Copying package contents to ‘C:\Web\BillingDashboard’
October 22nd 2018 09:08:12
Error
System.UnauthorizedAccessException: (5) Access is denied: [C:\Web\BillingDashboard]
October 22nd 2018 09:08:12
Error
at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
October 22nd 2018 09:08:12
Error
at Alphaleonis.Win32.Filesystem.Directory.CreateDirectoryCore(KernelTransaction transaction, String path, String templatePath, ObjectSecurity directorySecurity, Boolean compress, PathFormat pathFormat)
October 22nd 2018 09:08:12
Error
at Calamari.Integration.FileSystem.LongPathsDirectory.CreateDirectory(String path)
October 22nd 2018 09:08:12
Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
October 22nd 2018 09:08:12
Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
October 22nd 2018 09:08:12
Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory)
October 22nd 2018 09:08:12
Error
at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
October 22nd 2018 09:08:12
Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
October 22nd 2018 09:08:12
Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
October 22nd 2018 09:08:12
Error
Running rollback conventions…

This is happening in random packages, so it is not likely to be a problem with the packages themselves.

We can work around it by simply running the steps that failed again, skipping the ones that previously succeeded, usually this allows the deployment to finish without issue.

Here is our log:

ServerTasks-47811.log.txt (317.2 KB)

Any ideas on this?

Thanks,

Tyler

Hi Tyler,

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

That’s great news. Was this fix in 2018.9.1?

Thanks

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 for being patient.

That seems to have done the trick.

Wonderful. Thanks for letting us know.

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