Good Afternoon,
I’ve run into an issue with one of our deployments to azure. I believe this has only happened since updating octopus deploy.
We’re currently on the latest version 2018.8.3 we also had this issue in 2018.8.2.
The deployment step deploys to azure and comes up with the following error:
The step failed: Activity Deploy on *** failed with error ‘The remote script failed with exit code 100’.
The full log is:
Exception while replacing configuration-variables in: C:\Octopus\Work\20180910151816-24731-25\staging\clouds.config
September 10th 2018 16:18:39Error
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
September 10th 2018 16:18:39Error
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
September 10th 2018 16:18:39Error
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
September 10th 2018 16:18:39Error
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
September 10th 2018 16:18:39Error
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
September 10th 2018 16:18:39Error
at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ReadXmlDocument(String configurationFilePath)
September 10th 2018 16:18:39Error
at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ModifyConfigurationFile(String configurationFilePath, VariableDictionary variables)
September 10th 2018 16:18:39Error
at Calamari.Deployment.Conventions.ConfigurationVariablesConvention.Install(RunningDeployment deployment)
September 10th 2018 16:18:39Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
September 10th 2018 16:18:39Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
September 10th 2018 16:18:39Error
Running rollback conventions…
September 10th 2018 16:18:39Error
Data at the root level is invalid. Line 1, position 1.
September 10th 2018 16:18:39Error
System.Xml.XmlException
September 10th 2018 16:18:39Error
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
September 10th 2018 16:18:39Error
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
September 10th 2018 16:18:39Error
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
September 10th 2018 16:18:39Error
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
September 10th 2018 16:18:39Error
at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ReadXmlDocument(String configurationFilePath)
September 10th 2018 16:18:39Error
at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ModifyConfigurationFile(String configurationFilePath, VariableDictionary variables)
September 10th 2018 16:18:39Error
at Calamari.Deployment.Conventions.ConfigurationVariablesConvention.Install(RunningDeployment deployment)
September 10th 2018 16:18:39Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
September 10th 2018 16:18:39Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
September 10th 2018 16:18:39Error
at Calamari.Azure.Commands.DeployAzureWebCommand.Execute(String[] commandLineArguments)
September 10th 2018 16:18:39Error
at Calamari.Program.Execute(String[] args)
September 10th 2018 16:18:40Fatal
The remote script failed with exit code 100
The clouds.config file from what i can see is one that is generated by octopus itself rather than anything that we’ve put in or setup.
The content of it is:
[AzureCloud]
subscription = ID
I had a look around on google and found Octopus.Action.Package.IgnoreVariableReplacementErrors but i didn’t really want to go changing this setting when the file that’s being scanned isn’t even one we’ve created.
Your input would be greatly appreciated.
Thanks
Jo