Hi support,
There is an issue during upgrade. I guess it might be related to the fact that those artifacts belong to a disabled project. Deleting that particular release and artifact just caused another error with a different artifact.
Executing .NET Database Server script 'Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.cs'
Checking whether journal table exists..
Converting artifacts to a new format to increase the performance of your Octopus server.
Processing 57 artifacts...
Processed 0 of 57
Error: The upgrade script is unable to process the artifact with id Artifacts-4530, the upgrade has been halted.
Error: Please re-install the version of Octopus Deploy that you are upgrading from and get in touch with support@octopus.com providing the following information:
Error: Unable to migrate artifact with id Artifacts-4530. Expected to find one ServerTask in RelatedDocumentIds. RelatedDocumentIds are |Releases-5188|
Error occured when executing scripts, transaction will be rolled back
Error: Upgrade failed due to an unexpected exception:
Error: System.InvalidOperationException: Sequence contains no matching element
Error: at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
Error: at Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.GetServerTaskIdForArtifacts(IEnumerable`1 artifacts, IUpgradeLog log, Int32 total)
Error: at Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.Execute(IDbCommandExecutor commandExecutor, IUpgradeLog log)
Error: at Octopus.Core.Initialization.DbCommandUpgradeScriptResolver.Execute(Func`1 commandFactory, IUpgradeLog log)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.<>c__DisplayClass6_0.<ExecuteDbCommandUpgradeScript>b__0(Func`1 commandFactory)
Error: at DbUp.Engine.Transactions.SingleTrasactionStrategy.Execute(Action`1 action)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.ExecuteDbCommandUpgradeScript(IConnectionManager connectionManager, IJournal journal, IUpgradeLog log, IDbCommandUpgradeScript upgradeScript)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
Error: at DbUp.Engine.UpgradeEngine.PerformUpgrade()
Error: We encountered an error during the schema upgrade. The schema upgrade was stopped and rolled back. Don't worry, this means we haven't made any changes to your data, and you should be able to get back up and running quickly.
Error: Here is the summary of the problems we encountered:
Error: -----------------------------------------
Error: Sequence contains no matching element
Error: System.InvalidOperationException
Error: at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
Error: at Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.GetServerTaskIdForArtifacts(IEnumerable`1 artifacts, IUpgradeLog log, Int32 total)
Error: at Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.Execute(IDbCommandExecutor commandExecutor, IUpgradeLog log)
Error: at Octopus.Core.Initialization.DbCommandUpgradeScriptResolver.Execute(Func`1 commandFactory, IUpgradeLog log)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.<>c__DisplayClass6_0.<ExecuteDbCommandUpgradeScript>b__0(Func`1 commandFactory)
Error: at DbUp.Engine.Transactions.SingleTrasactionStrategy.Execute(Action`1 action)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.ExecuteDbCommandUpgradeScript(IConnectionManager connectionManager, IJournal journal, IUpgradeLog log, IDbCommandUpgradeScript upgradeScript)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
Error: at DbUp.Engine.UpgradeEngine.PerformUpgrade()
Error: -----------------------------------------
Error: Beginning transaction
Error: Checking whether journal table exists..
Error: Executing .NET Database Server script 'Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.cs'
Error: Checking whether journal table exists..
Error: Converting artifacts to a new format to increase the performance of your Octopus server.
Error: Processing 57 artifacts...
Error: Processed 0 of 57
Error: The upgrade script is unable to process the artifact with id Artifacts-4530, the upgrade has been halted.
Error: Please re-install the version of Octopus Deploy that you are upgrading from and get in touch with support@octopus.com providing the following information:
Error: Unable to migrate artifact with id Artifacts-4530. Expected to find one ServerTask in RelatedDocumentIds. RelatedDocumentIds are |Releases-5188|
Error: Error occured when executing scripts, transaction will be rolled back
Error: Upgrade failed due to an unexpected exception:
Error: System.InvalidOperationException: Sequence contains no matching element
Error: at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
Error: at Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.GetServerTaskIdForArtifacts(IEnumerable`1 artifacts, IUpgradeLog log, Int32 total)
Error: at Octopus.Core.UpgradeScripts.Script0134MigrateArtifactRelatedDocumentsToColumn.Execute(IDbCommandExecutor commandExecutor, IUpgradeLog log)
Error: at Octopus.Core.Initialization.DbCommandUpgradeScriptResolver.Execute(Func`1 commandFactory, IUpgradeLog log)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.<>c__DisplayClass6_0.<ExecuteDbCommandUpgradeScript>b__0(Func`1 commandFactory)
Error: at DbUp.Engine.Transactions.SingleTrasactionStrategy.Execute(Action`1 action)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.ExecuteDbCommandUpgradeScript(IConnectionManager connectionManager, IJournal journal, IUpgradeLog log, IDbCommandUpgradeScript upgradeScript)
Error: at Octopus.Core.Initialization.DatabaseUpgrader.OctopusUpgradeScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
Error: at DbUp.Engine.UpgradeEngine.PerformUpgrade()
Thanks,
queil