Hi all,
We are experiencing a very strange situation. When a Tentacle Calamari starts any deployment steps it throws the following exception
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
April 15th 2020 17:35:35Error
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Octostache.CustomStringParsers.JsonParser.TryParseJArray(JArray jarray, String property, Binding& subBinding)
at Octostache.CustomStringParsers.JsonParser.TryParse(Binding parentBinding, String property, Binding& subBinding)
at Octostache.Templates.EvaluationContext.TryCustomParsers(Binding parentBinding, String property, Binding& subBinding)
at Octostache.Templates.EvaluationContext.WalkTo(SymbolExpression expression, String[]& missingTokens)
at Octostache.Templates.TemplateEvaluator.Calculate(ContentExpression expression, EvaluationContext context)
at Octostache.Templates.TemplateEvaluator.EvaluateSubstitutionToken(EvaluationContext context, SubstitutionToken st)
at Octostache.Templates.TemplateEvaluator.Evaluate(IEnumerable`1 tokens, EvaluationContext context)
at Octostache.Templates.TemplateEvaluator.Evaluate(Template template, EvaluationContext context, String[]& missingTokens)
at Octostache.VariableDictionary.Evaluate(String expressionOrVariableOrText, String& error, Boolean haltOnError)
at Octostache.VariableDictionary.Get(String variableName, String& error, String defaultValue)
at Calamari.Variables.CalamariVariables.Calamari.IVariables.Get(String variableName, String defaultValue)
at Calamari.Integration.Scripting.WindowsPowerShell.PowerShellBootstrapper.GetEncryptedVariablesString(IVariables variables)
at Calamari.Integration.Scripting.WindowsPowerShell.PowerShellBootstrapper.PrepareBootstrapFile(Script script, IVariables variables)
at Calamari.Integration.Scripting.WindowsPowerShell.PowerShellScriptEngine.<PrepareExecution>d__1.MoveNext()
at Calamari.Integration.Scripting.ScriptEngine.Execute(Script script, IVariables variables, ICommandLineRunner commandLineRunner, Dictionary`2 environmentVars)
at Calamari.Deployment.Conventions.ExecuteScriptConvention.Install(RunningDeployment deployment)
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
at Calamari.Deployment.ConventionProcessor.RunConventions()
April 15th 2020 17:35:35Error
Running rollback conventions...
April 15th 2020 17:35:35Error
Index was out of range. Must be non-negative and less than the size of the collection.
April 15th 2020 17:35:35Error
Parameter name: index
April 15th 2020 17:35:35Error
System.ArgumentOutOfRangeException
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Octostache.CustomStringParsers.JsonParser.TryParseJArray(JArray jarray, String property, Binding& subBinding)
at Octostache.CustomStringParsers.JsonParser.TryParse(Binding parentBinding, String property, Binding& subBinding)
at Octostache.Templates.EvaluationContext.TryCustomParsers(Binding parentBinding, String property, Binding& subBinding)
at Octostache.Templates.EvaluationContext.WalkTo(SymbolExpression expression, String[]& missingTokens)
at Octostache.Templates.TemplateEvaluator.Calculate(ContentExpression expression, EvaluationContext context)
at Octostache.Templates.TemplateEvaluator.EvaluateSubstitutionToken(EvaluationContext context, SubstitutionToken st)
at Octostache.Templates.TemplateEvaluator.Evaluate(IEnumerable`1 tokens, EvaluationContext context)
at Octostache.Templates.TemplateEvaluator.Evaluate(Template template, EvaluationContext context, String[]& missingTokens)
at Octostache.VariableDictionary.Evaluate(String expressionOrVariableOrText, String& error, Boolean haltOnError)
at Octostache.VariableDictionary.Get(String variableName, String& error, String defaultValue)
at Calamari.Variables.CalamariVariables.Calamari.IVariables.Get(String variableName, String defaultValue)
at Calamari.Integration.Scripting.WindowsPowerShell.PowerShellBootstrapper.GetEncryptedVariablesString(IVariables variables)
at Calamari.Integration.Scripting.WindowsPowerShell.PowerShellBootstrapper.PrepareBootstrapFile(Script script, IVariables variables)
at Calamari.Integration.Scripting.WindowsPowerShell.PowerShellScriptEngine.<PrepareExecution>d__1.MoveNext()
at Calamari.Integration.Scripting.ScriptEngine.Execute(Script script, IVariables variables, ICommandLineRunner commandLineRunner, Dictionary`2 environmentVars)
at Calamari.Deployment.Conventions.ExecuteScriptConvention.Install(RunningDeployment deployment)
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
at Calamari.Deployment.ConventionProcessor.RunConventions()
at Calamari.Commands.RunScriptCommand.Execute(String[] commandLineArguments)
at Calamari.Program.Run(CommonOptions options)
at Calamari.Program.Main(String[] args)
April 15th 2020 17:35:35Fatal
The remote script failed with exit code 100
Has anyone seen anything like this before?
Thanks for your help