I run regular migration from current version: 2018.2.3 to the latest version: 2018.5.3
An attempt to rollbackj lead to the same rror.
Details are below. It is not stated there which XML file has missed root element.
Stopping service…
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: StopPending
Waiting for service to become Stopped. Current status: Stopped
Service stopped
Error: ===============================================================================
Error: There is an error in XML document (0, 0).
System.InvalidOperationException
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at Octopus.Shared.Configuration.XmlKeyValueStore.LoadSettings(IDictionary2 settingsToFill) at Octopus.Shared.Configuration.DictionaryKeyValueStore.Load() at System.Lazy
1.CreateValue()
at System.Lazy1.LazyInitValue() at Octopus.Shared.Configuration.DictionaryKeyValueStore.Read(String key) at Octopus.Shared.Configuration.FlatDictionaryKeyValueStore.Get[TData](String name, TData defaultValue, Nullable
1 protectionScope)
at Octopus.Core.Configuration.OctopusServerStorageConfiguration.get_ExternalDatabaseConnectionString()
Error: System.InvalidOperationException
Error: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Error: at Octopus.Shared.Configuration.XmlKeyValueStore.LoadSettings(IDictionary2 settingsToFill) Error: at Octopus.Shared.Configuration.DictionaryKeyValueStore.Load() Error: at System.Lazy
1.CreateValue()
Error: at System.Lazy1.LazyInitValue() Error: at Octopus.Shared.Configuration.DictionaryKeyValueStore.Read(String key) Error: at Octopus.Shared.Configuration.FlatDictionaryKeyValueStore.Get[TData](String name, TData defaultValue, Nullable
1 protectionScope)
Error: at Octopus.Shared.Configuration.HomeConfiguration.get_HomeDirectory()
Error: at Octopus.Shared.Configuration.LoggingConfiguration.get_LogsDirectory()
Error: at Octopus.Shared.Configuration.LogInitializer.InitializeLogs()
Error: at Octopus.Shared.Configuration.ApplicationInstanceSelector.LoadCurrentInstance()
Error: at Octopus.Shared.Configuration.ApplicationInstanceSelector.GetCurrentInstance()
Error: at Octopus.Server.Commands.DatabaseCommand.Start()
Error: at Octopus.Shared.Startup.AbstractCommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions)
Error: at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown)
Error: at Octopus.Shared.Startup.OctopusProgram.Run()
Error:
Error: --Inner Exception–
Error: Root element is missing.
Error: System.Xml.XmlException
Error: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Error: at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Error: at System.Xml.XmlReader.MoveToContent()
Error: at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderXmlSettingsRoot.Read4_octopussettings()
Error: -------------------------------------------------------------------------------
Error: Terminating process with exit code 100
Error: Full error details are available in the log files at:
Error: C:\Users\arturk\AppData\Local\Octopus\Logs
Error: If you need help, please send these log files to https://octopus.com/support
Error: -------------------------------------------------------------------------------
Error:
Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe” database --instance “OctopusServer” --upgrade