All our deployments on a couple of servers started to fail throwing this error:
Could not find a part of the path ‘D:\Octopus\Applications.SQ-xxxxxx\Octopus.Tentacle\2.6.5.1010\Scripts’.
System.IO.DirectoryNotFoundException: Could not find a part of the path ‘D:\Octopus\Applications.SQ-xxxxxx\Octopus.Tentacle\2.6.5.1010\Scripts’.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator
1…ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption) at System.Linq.Enumerable.<SelectManyIterator>d__14
2.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable
1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Octopus.Tentacle.Deployment.Conventions.Implementations.FeatureScripts.FeatureScriptsConvention.FindScriptsUnderSearchPaths(ConventionContext context) in y:\work\refs\heads\master\source\Octopus.Tentacle\Deployment\Conventions\Implementations\FeatureScripts\FeatureScriptsConvention.cs:line 36
at Octopus.Tentacle.Deployment.Conventions.Implementations.ScriptConvention.GetExecutionPlan(ConventionContext context) in y:\work\refs\heads\master\source\Octopus.Tentacle\Deployment\Conventions\Implementations\ScriptConvention.cs:line 24
at Octopus.Tentacle.Orchestration.Deploy.Package.TentaclePackageDeployment.StartNextProcedure(Boolean reevaluate) in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Deploy\Package\TentaclePackageDeployment.cs:line 267
at Octopus.Tentacle.Orchestration.Deploy.Package.TentaclePackageDeployment.ExecuteDeployment() in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Deploy\Package\TentaclePackageDeployment.cs:line 251
at Octopus.Tentacle.Orchestration.Deploy.Package.TentaclePackageDeployment.Receive(AcquiredEvent message) in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Deploy\Package\TentaclePackageDeployment.cs:line 138
at Pipefish.Actor.OnReceivingTyped[TBody](Message message) in y:\work\3cbe05672d69a231\source\Pipefish\Actor.cs:line 113
Tentacle version 2.6.5.1010
I do not think anybody removed them from that folder. Many dlls from D:\Octopus\Applications.SQ-xxxxxx\Octopus.Tentacle\2.6.5.1010\ were missing too.
We manually copied those files/folders from another tentacle and deployments were Ok. Re-installing the agent did not create those missing files. Health check was OK.