I am trying to upgrade to a newer version of Umbraco and am met with the following error in the browser:
Error during installation
Sequence contains more than one element
See the log for full details (logs can typically be found in the App_Data\Logs folder).
The log contains the following entries between when the upgrade starts and fails--From what I have found online it has to do with duplicate entries in database tables but I am unsure where to start looking with just the provided log information
2015-04-14 08:38:15,548 [15] INFO Umbraco.Core.ApplicationContext - [Thread 10] CurrentVersion different from configStatus: '7.2.4','7.0.4'
2015-04-14 08:38:19,012 [15] INFO Umbraco.Core.ApplicationContext - [Thread 11] CurrentVersion different from configStatus: '7.2.4','7.0.4'
2015-04-14 08:38:22,600 [15] INFO Umbraco.Core.ApplicationContext - [Thread 9] CurrentVersion different from configStatus: '7.2.4','7.0.4'
2015-04-14 08:38:22,600 [15] INFO Umbraco.Core.ApplicationContext - [Thread 9] CurrentVersion different from configStatus: '7.2.4','7.0.4'
2015-04-14 08:38:22,600 [15] INFO Umbraco.Web.Install.Controllers.InstallApiController - [Thread 9] Executing installation step: DatabaseUpgrade
2015-04-14 08:38:22,600 [15] INFO Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep - [Thread 9] Running 'Upgrade' service
2015-04-14 08:38:22,600 [15] INFO Umbraco.Core.DatabaseContext - [Thread 9] Database upgrade started
2015-04-14 08:38:22,600 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Initializing database migrations
2015-04-14 08:38:22,615 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AssignMissingPrimaryForMySqlKeys' to context
2015-04-14 08:38:22,615 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AssignMissingPrimaryForMySqlKeys' to context
2015-04-14 08:38:22,631 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AdditionalIndexesAndKeys' to context
2015-04-14 08:38:22,631 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'ChangePasswordColumn' to context
2015-04-14 08:38:22,631 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AddChangeDocumentTypePermission' to context
2015-04-14 08:38:22,631 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'UpdateToNewMemberPropertyAliases' to context
2015-04-14 08:38:22,631 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AlterDataTypePreValueTable' to context
2015-04-14 08:38:22,647 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AddMissingForeignKeyForContentType' to context
2015-04-14 08:38:22,647 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'RemoveCmsDocumentAliasColumn' to context
2015-04-14 08:38:22,647 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Added UPGRADE migration 'AddIndexToUmbracoNodeTable' to context
2015-04-14 08:38:22,647 [15] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - [Thread 9] Executing sql statement 1: ALTER TABLE [umbracoUser] ALTER COLUMN [userPassword] NVARCHAR(500) NOT NULL
2015-04-14 08:38:22,678 [15] INFO Umbraco.Core.DatabaseContext - [Thread 9] Database configuration status: <p>Upgrade completed!</p>
2015-04-14 08:38:22,678 [15] ERROR Umbraco.Web.Install.Controllers.InstallApiController - [Thread 9] Installation step DatabaseUpgrade failed.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Umbraco.Core.Configuration.GlobalSettings.RemoveSetting(String key)
at Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep.Execute(Object model)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Umbraco.Web.Install.Controllers.InstallApiController.ExecuteStep(InstallSetupStep step, JToken instruction)
at Umbraco.Web.Install.Controllers.InstallApiController.PostPerformInstall(InstallInstructions installModel)
2015-04-14 08:38:22,678 [15] INFO Umbraco.Web.Install.Controllers.InstallApiController - [Thread 9] Step completed (took 72ms)
2015-04-14 08:38:22,678 [15] ERROR Umbraco.Web.Install.Controllers.InstallApiController - [Thread 9] An error occurred during installation step DatabaseUpgrade
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Umbraco.Core.Configuration.GlobalSettings.RemoveSetting(String key)
at Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep.Execute(Object model)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Umbraco.Web.Install.Controllers.InstallApiController.ExecuteStep(InstallSetupStep step, JToken instruction)
at Umbraco.Web.Install.Controllers.InstallApiController.PostPerformInstall(InstallInstructions installModel)
The database is on a remote server on our network and I did follow the documentation in the general upgrade guide. Pretty much just copied over the necessary files from the 7.2.4 package while preserving some of the configuration files that have previously been setup--such as umbracoSettings, web.config, and urlRewrites.
Ok - Remember to remove the /install folder as well. This is a required step when going to or past 7.1.0. But don't think that's the culprit though.
Ehm...did you check the configurationStatus in the web.config btw? Does this still say 7.0.4? If so then it's probably something related to the permission settings I guess.
I think that's a good idea - But you should be able to get the upgrade finishing up by manually entering 7.2.4 instead - But it's probably a good idea to get to the bottom of things and do it the "proper way" instead :)
I opened up full permissions to 'Everyone' and still get the error during install. The install folder doesn't appear to exist in the root of the web application in its current state.
I had thought of that earlier, which makes the public side of the site work--but when attempting to get to the backoffice, the webpage throws an redirect loop error.
EDIT: NEVERMIND!!! Haha, we have 'location' tags implemented on this site and just noticed that there are two entries that need the 7.2.4 value set. Changing them both appears to have resolved it.
Only question I have is whether the 'location' tags in the web.config and the existence of duplicate tags nested between those is what throws the "Sequence contains more than one element" error.
Sure, so we have some child applications nested in IIS to this site and without the 'location' tags, it causes some issues between them. To keep the web.config settings applicable only to the public site and the backoffice, we have the location tags implemented throughout in a fashion similar to:
Without those, the child applications get .NET/IIS exceptions. I hadn't noticed that the 'umbracoConfigurationStatus' key was one of those which had two entries like this and when they were both updated the site started to behave.
Error with Manual Upgrade from 7.0.4 to 7.2.4
I am trying to upgrade to a newer version of Umbraco and am met with the following error in the browser:
The log contains the following entries between when the upgrade starts and fails--From what I have found online it has to do with duplicate entries in database tables but I am unsure where to start looking with just the provided log information
The install log file contains:
NOTE: This is just a base instance of Umbraco without any additional projects integrated.
Any help or suggestions where to start looking are appreciated!!! :)
Hi Thomas
What steps did you take during the upgrade? Did you follow the official documentation?
What database are you using? Is it locally or on a remote server?
Looking forward to hearing from you.
/Jan
Hi Jan,
The database is on a remote server on our network and I did follow the documentation in the general upgrade guide. Pretty much just copied over the necessary files from the 7.2.4 package while preserving some of the configuration files that have previously been setup--such as umbracoSettings, web.config, and urlRewrites.
*Database is on a MSSQL 2008 server.
Hi Thomas
Ok - Remember to remove the /install folder as well. This is a required step when going to or past 7.1.0. But don't think that's the culprit though.
Ehm...did you check the configurationStatus in the web.config btw? Does this still say 7.0.4? If so then it's probably something related to the permission settings I guess.
/Jan
Yep, still showing:
I'll poke around the environment's permissions and try again to see if that has any success.
Hi Thomas
I think that's a good idea - But you should be able to get the upgrade finishing up by manually entering 7.2.4 instead - But it's probably a good idea to get to the bottom of things and do it the "proper way" instead :)
Looking forward to hearing from you.
/Jan
I opened up full permissions to 'Everyone' and still get the error during install. The install folder doesn't appear to exist in the root of the web application in its current state.
I had thought of that earlier, which makes the public side of the site work--but when attempting to get to the backoffice, the webpage throws an redirect loop error.
EDIT: NEVERMIND!!! Haha, we have 'location' tags implemented on this site and just noticed that there are two entries that need the 7.2.4 value set. Changing them both appears to have resolved it.
Looks like it upgraded okay. Thanks a bunch Jan!
Only question I have is whether the 'location' tags in the web.config and the existence of duplicate tags nested between those is what throws the "Sequence contains more than one element" error.
Hi Thomas
Happy to hear you figured the issue out :)
I think it could be the cause indeed - But do you mind showing what it looks like? Just so that I'm sure I know what I'm answering? :D
/Jan
Sure, so we have some child applications nested in IIS to this site and without the 'location' tags, it causes some issues between them. To keep the web.config settings applicable only to the public site and the backoffice, we have the location tags implemented throughout in a fashion similar to:
Without those, the child applications get .NET/IIS exceptions. I hadn't noticed that the 'umbracoConfigurationStatus' key was one of those which had two entries like this and when they were both updated the site started to behave.
is working on a reply...