Hi Octopus Help,
we are using “Deploy a Package” step template for our code deployments. The same step template we have been using for around 2000 steps in multiple octopus deploy jobs. The only enabled feature for this step template is “custom installation Directory”, no configuration variables or configuration transforms. But we are seeing errors “No matching appSetting, applicationSetting, nor connectionString names were found in:” for some deployments, at the same time other deploy steps in the same project were successful without any issue. I have come across this error couple of times so far, if I create new deploy package step and use for same deployment it is working.
Can you please help us with why this issue is happening even though we are note enabled configuration features and that too only now and then. we using Octopus server version v2019.12.4 LTS. In Feb 2020, we upgraded version from V 2019.9.12 to V 2019.12.4. Before upgrade we never saw this issue before, not sure if it version related or something else.
Error logs:
08:13:43 Verbose | Looking for appSettings, applicationSettings, and connectionStrings in any .config files
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\deploy.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Debug.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Dev.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\MultiClientTesting.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Testing.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\AD-SC-WY\Release.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\AR-NE-LA\Release.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Archive\CompletedInvalidated\Release.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Archive\CompletedInvalidated\Testing.App.config
08:13:44 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Archive\ELPAManual\Release.App.config
08:13:45 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Archive\ELPAManual\Testing.App.config
08:13:45 Error | Exception while replacing configuration-variables in: C:\Octopus\Applications\Tenant1\Prod\DataStructure\25.5.456\Content\ConfigFiles\Archive\General\OldProduction.App.config
08:13:45 Error | System.Xml.XmlException: ‘System.Data.SqlClient’ is an unexpected token. Expecting white space. Line 50, position 18.
08:13:45 Error | at System.Xml.XmlTextReaderImpl.Throw(Exception e)
08:13:45 Error | at System.Xml.XmlTextReaderImpl.ParseAttributes()
08:13:45 Error | at System.Xml.XmlTextReaderImpl.ParseElement()
08:13:45 Error | at System.Xml.XmlTextReaderImpl.ParseElementContent()
08:13:45 Error | at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
08:13:45 Error | at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
08:13:45 Error | at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
08:13:45 Error | at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ReadXmlDocument(String configurationFilePath)
08:13:45 Error | at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ModifyConfigurationFile(String configurationFilePath, VariableDictionary variables)
08:13:45 Error | at Calamari.Deployment.Conventions.ConfigurationVariablesConvention.Install(RunningDeployment deployment)
08:13:45 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
08:13:45 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
08:13:45 Error | Running rollback conventions…
08:13:45 Verbose | Adding journal entry:
08:13:45 Verbose |
08:13:45 Verbose |
08:13:45 Verbose |
08:13:46 Error | ‘System.Data.SqlClient’ is an unexpected token. Expecting white space. Line 50, position 18.
08:13:46 Error | System.Xml.XmlException
08:13:46 Error | at System.Xml.XmlTextReaderImpl.Throw(Exception e)
08:13:46 Error | at System.Xml.XmlTextReaderImpl.ParseAttributes()
08:13:46 Error | at System.Xml.XmlTextReaderImpl.ParseElement()
08:13:46 Error | at System.Xml.XmlTextReaderImpl.ParseElementContent()
08:13:46 Error | at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
08:13:46 Error | at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
08:13:46 Error | at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
08:13:46 Error | at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ReadXmlDocument(String configurationFilePath)
08:13:46 Error | at Calamari.Integration.ConfigurationVariables.ConfigurationVariablesReplacer.ModifyConfigurationFile(String configurationFilePath, VariableDictionary variables)
08:13:46 Error | at Calamari.Deployment.Conventions.ConfigurationVariablesConvention.Install(RunningDeployment deployment)
08:13:46 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
08:13:46 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
08:13:46 Error | at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
08:13:46 Error | at Calamari.Program.Execute(String[] args)
08:13:46 Verbose | Updating manifest with output variables
08:13:46 Verbose | Updating manifest with action evaluated variables
08:13:46 Fatal | The remote script failed with exit code 100
08:13:46 Fatal | The action AD_SC_WY Deployment on XXX.XXX.XXX.XX failed