I am trying to deploy a package and getting Path too long exception. We didn’t get this error in the past. It was working perfectly fine until the last deployment. Any idea why it is causing.
Deploying package: C:\Octopus\Files\empower-medseek-api.6.7.665.nupkg-2996dbef-a1ef-49b1-9062-06d7157f46da
December 11th 2020 13:11:50Error
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
December 11th 2020 13:11:50Error
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
December 11th 2020 13:11:50Error
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
December 11th 2020 13:11:50Error
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
December 11th 2020 13:11:50Error
at Calamari.Integration.Packages.NuGet.NupkgExtractor.Extract(String packageFile, String directory, Boolean suppressNestedScriptWarning)
December 11th 2020 13:11:50Error
at Calamari.Deployment.Conventions.ExtractPackageConvention.Install(RunningDeployment deployment)
December 11th 2020 13:11:50Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
December 11th 2020 13:11:50Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
December 11th 2020 13:11:50Error
Running rollback conventions...
December 11th 2020 13:11:51Error
Value cannot be null.
December 11th 2020 13:11:51Error
Parameter name: path
December 11th 2020 13:11:51Error
System.ArgumentNullException
December 11th 2020 13:11:51Error
at System.IO.DirectoryInfo..ctor(String path)
December 11th 2020 13:11:51Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.EnumerateFiles(String parentDirectoryPath, String[] searchPatterns)
December 11th 2020 13:11:51Error
at Calamari.Integration.Scripting.PackagedScriptRunner.FindScripts(RunningDeployment deployment)
December 11th 2020 13:11:51Error
at Calamari.Integration.Scripting.PackagedScriptRunner.RunScripts(RunningDeployment deployment)
December 11th 2020 13:11:51Error
at Calamari.Deployment.ConventionProcessor.RunRollbackConventions()
December 11th 2020 13:11:51Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
December 11th 2020 13:11:51Error
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
December 11th 2020 13:11:51Error
at Calamari.Program.Execute(String[] args)
December 11th 2020 13:11:52Error
The remote script failed with exit code 100
December 11th 2020 13:12:24Fatal
Deploy medseek-api package on AZ-AQA-WEB-01_Tentacle