Hi,
We’re using Octopus to deploy a web application which is using a Node package that gots a JSON file that’s got an extension of .config. Go knows why they did that instead of .json, but it’s causing Octopus to error with the below message:
Exception while replacing configuration-variables in: C:\Octopus\Applications\MyProject\MyProduct\1.0.94.0\node_modules\typescript\test.config December 15th 2016 10:23:34Error System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. December 15th 2016 10:23:34Error at System.Xml.XmlTextReaderImpl.Throw(Exception e) December 15th 2016 10:23:34Error at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() December 15th 2016 10:23:34Error at System.Xml.XmlTextReaderImpl.ParseDocumentContent() December 15th 2016 10:23:34Error at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) December 15th 2016 10:23:34Error at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ReadXmlDocument(String configurationFilePath) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\ConfigurationVariables\ConfigurationVariablesReplacer.cs:line 63 December 15th 2016 10:23:34Error at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ModifyConfigurationFile(String configurationFilePath, VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\ConfigurationVariables\ConfigurationVariablesReplacer.cs:line 54 December 15th 2016 10:23:34Error at Calamari.Deployment.Conventions.ConfigurationVariablesConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\Conventions\ConfigurationVariablesConvention.cs:line 32 December 15th 2016 10:23:34Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60 December 15th 2016 10:23:34Error at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28 December 15th 2016 10:23:34Error Running rollback conventions... December 15th 2016 10:23:34Error System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. December 15th 2016 10:23:34Error at System.Xml.XmlTextReaderImpl.Throw(Exception e) December 15th 2016 10:23:34Error at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() December 15th 2016 10:23:34Error at System.Xml.XmlTextReaderImpl.ParseDocumentContent() December 15th 2016 10:23:34Error at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) December 15th 2016 10:23:34Error at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ReadXmlDocument(String configurationFilePath) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\ConfigurationVariables\ConfigurationVariablesReplacer.cs:line 63 December 15th 2016 10:23:34Error at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ModifyConfigurationFile(String configurationFilePath, VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\ConfigurationVariables\ConfigurationVariablesReplacer.cs:line 54 December 15th 2016 10:23:34Error at Calamari.Deployment.Conventions.ConfigurationVariablesConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\Conventions\ConfigurationVariablesConvention.cs:line 32 December 15th 2016 10:23:34Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60 December 15th 2016 10:23:34Error at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50 December 15th 2016 10:23:34Error at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Commands\DeployPackageCommand.cs:line 116 December 15th 2016 10:23:34Error at Calamari.Program.Execute(String[] args) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Program.cs:line 45 December 15th 2016 10:23:35Fatal The remote script failed with exit code 100
Is there any way to add an exclusion to the step? For now we’ve not used it and got a community step template to do this.
Thanks.