Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Jun 29, 2017 @ 07:32
    Søren Kottal
    0

    Upgrade to 7.6 fails

    Hi

    I'm trying to upgrade from 7.2.4 to 7.6.3, but it fails. Think it has something to do with the tables from Newsletter Studio.

    Anyone know how to upgrade?

    2017-06-29 09:27:58,117 [P46120/D2/T11] ERROR Umbraco.Core.DatabaseContext - Database configuration failed
    System.Data.SqlClient.SqlException (0x80131904): The index 'IX_umbracoNodeUniqueID' is dependent on column 'uniqueID'.
    ALTER TABLE ALTER COLUMN uniqueID failed because one or more objects access this column.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery() in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbCommand.cs:line 266
       at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
       at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy)
       at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy)
       at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command)
       at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
       at Umbraco.Core.Persistence.Migrations.MigrationRunner.ExecuteMigrations(IMigrationContext context, Database database)
       at Umbraco.Core.Persistence.Migrations.MigrationRunner.Execute(Database database, DatabaseProviders databaseProvider, Boolean isUpgrade)
       at Umbraco.Core.Persistence.Migrations.MigrationRunner.Execute(Database database, Boolean isUpgrade)
       at Umbraco.Core.DatabaseContext.UpgradeSchemaAndData(IMigrationEntryService migrationEntryService)
    ClientConnectionId:2c3b62ce-6e12-4611-adf0-33d3826fa6a9
    Error Number:5074,State:1,Class:16
     2017-06-29 09:27:58,118 [P46120/D2/T11] INFO  Umbraco.Core.DatabaseContext - The database schema validation produced the following summary: 
    The following tables were found in the database, but are not in the current schema:
    umbracoUserLogins,cmsStylesheet,cmsStylesheetProperty,icUrlTracker,ns_EmailTrackingItems,ns_Newsletters,ns_Subscribers,ns_Subscriptions,ns_TrackingItems,UFRecordDataBit,UFRecordDataDateTime,UFRecordDataInteger,UFRecordDataLongString,UFRecordDataString,UFRecordFields,UFRecords,UFUserFormSecurity,UFUserSecurity,umbracoAccess,umbracoAccessRule,umbracoCacheInstruction,umbracoExternalLogin,umbracoMigration,umbracoRedirectUrl,umbracoLock
    
    The following columns were found in the database, but are not in the current schema:
    umbracoUserLogins,contextID,umbracoUserLogins,userID,umbracoUserLogins,timeout,cmsContentVersion,LanguageLocale,cmsPropertyType,helpText,cmsPropertyTypeGroup,parentGroupId,cmsStylesheet,nodeId,cmsStylesheet,filename,cmsStylesheet,content,cmsStylesheetProperty,nodeId,cmsStylesheetProperty,stylesheetPropertyEditor,cmsStylesheetProperty,stylesheetPropertyAlias,cmsStylesheetProperty,stylesheetPropertyValue,cmsTemplate,master,icUrlTracker,Id,icUrlTracker,OldUrl,icUrlTracker,OldUrlQueryString,icUrlTracker,OldRegex,icUrlTracker,RedirectRootNodeId,icUrlTracker,RedirectNodeId,icUrlTracker,RedirectUrl,icUrlTracker,RedirectHttpCode,icUrlTracker,RedirectPassThroughQueryString,icUrlTracker,ForceRedirect,icUrlTracker,Notes,icUrlTracker,Is404,icUrlTracker,Referrer,icUrlTracker,Inserted,ns_EmailTrackingItems,Id,ns_EmailTrackingItems,Newsletter_Id,ns_EmailTrackingItems,SubscriberId,ns_EmailTrackingItems,Status,ns_EmailTrackingItems,Name,ns_EmailTrackingItems,Email,ns_EmailTrackingItems,Error,ns_EmailTrackingItems,SendDate,ns_EmailTrackingItems,CreateDate,ns_EmailTrackingItems,SubscriptionAlias,ns_EmailTrackingItems,CustomData,ns_Newsletters,Id,ns_Newsletters,MessageBody,ns_Newsletters,Name,ns_Newsletters,EmailSubject,ns_Newsletters,SubscriptionAlias,ns_Newsletters,CreatedDate,ns_Newsletters,SentDate,ns_Newsletters,ScheduledSendDate,ns_Newsletters,Status,ns_Newsletters,EmailFrom,ns_Newsletters,SenderName,ns_Newsletters,SkinAlias,ns_Newsletters,CreatedByUserId,ns_Newsletters,ErrorMessage,ns_Newsletters,ContentNodeId,ns_Newsletters,Initialized,ns_Subscribers,Id,ns_Subscribers,Name,ns_Subscribers,Email,ns_Subscribers,SubscribeDate,ns_Subscribers,SubscriptionId,ns_Subscribers,Status,ns_Subscribers,ErrorCount,ns_Subscriptions,Id,ns_Subscriptions,Name,ns_TrackingItems,Id,ns_TrackingItems,Email,ns_TrackingItems,TrackingType,ns_TrackingItems,NewsletterId,ns_TrackingItems,CreatedDate,ns_TrackingItems,Url,UFRecordDataBit,Id,UFRecordDataBit,Key,UFRecordDataBit,Value,UFRecordDataDateTime,Id,UFRecordDataDateTime,Key,UFRecordDataDateTime,Value,UFRecordDataInteger,Id,UFRecordDataInteger,Key,UFRecordDataInteger,Value,UFRecordDataLongString,Id,UFRecordDataLongString,Key,UFRecordDataLongString,Value,UFRecordDataString,Id,UFRecordDataString,Key,UFRecordDataString,Value,UFRecordFields,Key,UFRecordFields,FieldId,UFRecordFields,Record,UFRecordFields,Alias,UFRecordFields,DataType,UFRecords,Id,UFRecords,Form,UFRecords,Created,UFRecords,Updated,UFRecords,CurrentPage,UFRecords,UmbracoPageId,UFRecords,IP,UFRecords,MemberKey,UFRecords,UniqueId,UFRecords,State,UFRecords,RecordData,UFUserFormSecurity,Id,UFUserFormSecurity,User,UFUserFormSecurity,Form,UFUserFormSecurity,HasAccess,UFUserFormSecurity,AllowInEditor,UFUserFormSecurity,SecurityType,UFUserSecurity,User,UFUserSecurity,ManageDataSources,UFUserSecurity,ManagePreValueSources,UFUserSecurity,ManageWorkflows,UFUserSecurity,ManageForms,cmsMacro,uniqueId,cmsMacroProperty,uniquePropertyId,cmsPropertyTypeGroup,uniqueID,cmsPropertyType,UniqueID,cmsPropertyData,dataDecimal,umbracoRelationType,typeUniqueId,umbracoUser,securityStampToken,umbracoUser,failedLoginAttempts,umbracoUser,lastLockoutDate,umbracoUser,lastPasswordChangeDate,umbracoUser,lastLoginDate,umbracoServer,isMaster,umbracoAccess,id,umbracoAccess,nodeId,umbracoAccess,loginNodeId,umbracoAccess,noAccessNodeId,umbracoAccess,createDate,umbracoAccess,updateDate,umbracoAccessRule,id,umbracoAccessRule,accessId,umbracoAccessRule,ruleValue,umbracoAccessRule,ruleType,umbracoAccessRule,createDate,umbracoAccessRule,updateDate,umbracoCacheInstruction,id,umbracoCacheInstruction,utcStamp,umbracoCacheInstruction,jsonInstruction,umbracoCacheInstruction,originated,umbracoExternalLogin,id,umbracoExternalLogin,userId,umbracoExternalLogin,loginProvider,umbracoExternalLogin,providerKey,umbracoExternalLogin,createDate,umbracoMigration,id,umbracoMigration,name,umbracoMigration,createDate,umbracoMigration,version,umbracoRedirectUrl,id,umbracoRedirectUrl,contentKey,umbracoRedirectUrl,createDateUtc,umbracoRedirectUrl,url,umbracoRedirectUrl,urlHash,umbracoLock,id,umbracoLock,value,umbracoLock,name
    
    The following constraints (Primary Keys, Foreign Keys and Indexes) were found in the database, but are not in the current schema:
    FK_cmsPropertyTypeGroup_cmsPropertyTypeGroup_id,FK_cmsStylesheet_umbracoNode_id,FK_cmsTemplate_cmsTemplate,FK_EmailTrackingItemNewsletter1,FK_SubscribeListSubscriber1,FK_UFRecordDataBit_UFRecordFields_Key,FK_UFRecordDataDateTime_UFRecordFields_Key,FK_UFRecordDataInteger_UFRecordFields_Key,FK_UFRecordDataLongString_UFRecordFields_Key,FK_UFRecordDataString_UFRecordFields_Key,FK_cmsDictionary_cmsDictionary_id,FK_cmsLanguageText_umbracoLanguage_id,FK_umbracoAccess_umbracoNode_id,FK_umbracoAccess_umbracoNode_id1,FK_umbracoAccess_umbracoNode_id2,FK_umbracoAccessRule_umbracoAccess_id,FK_umbracoRedirectUrl_umbracoNode_uniqueID,PK_cmsStylesheet,PK_cmsStylesheetProperty,PK_EmailTrackingItems,PK_icUrlTracker,PK_Newsletters,PK_Subscribers,PK_Subscriptions,PK_TrackingItems,PK_UFRecordDataBit,PK_UFRecordDataDateTime,PK_UFRecordDataInteger,PK_UFRecordDataLongString,PK_UFRecordDataString,PK_UFRecordFields,PK_UFRecords,PK_umbracoAccess,PK_umbracoAccessRule,PK_umbracoCacheInstruction,PK_umbracoExternalLogin,PK_umbracoMigration,PK_umbracoRedirectUrl,PK_umbracoLock,IX_umbracoNodeTrashed,IX_umbracoNodeParentId,IX_umbracoNodePath,IX_umbracoNodeUniqueID,IX_umbracoNodeObjectType,IX_cmsContentType,IX_cmsContentType_icon,IX_cmsTemplate_nodeId,IX_cmsContent,IX_cmsContentVersion_ContentId,IX_cmsContentVersion_VersionId,IX_cmsDocument,IX_cmsDocument_published,IX_cmsDocument_newest,IX_cmsDataType_nodeId,IX_cmsDictionary_id,IX_umbracoLanguage_languageISOCode,IX_umbracoLog,IX_cmsMacro_UniqueId,IX_cmsMacroPropertyAlias,IX_cmsMacroProperty_UniquePropertyId,IX_cmsMacroProperty_Alias,IX_cmsMember_LoginName,IX_cmsPropertyTypeGroupUniqueID,IX_cmsPropertyTypeUniqueID,IX_cmsPropertyData_1,IX_cmsPropertyData_2,IX_cmsPropertyData_3,IX_umbracoRelationType_UniqueId,IX_umbracoRelationType_name,IX_umbracoRelationType_alias,IX_umbracoRelation_parentChildType,IX_cmsTags,IX_umbracoUser_userLogin,IX_cmsTaskType_alias,IX_umbracoUser2NodePermission_nodeId,IX_computerName,IX_umbracoServer_isActive,IX_umbracoAccess_nodeId,IX_umbracoAccessRule,IX_umbracoMigration,IX_umbracoRedirectUrl
    
    The following indexes were found in the database, but are not in the current schema:
    IX_cmsPropertyData,IX_icUrlTracker,NCI_EmailTrackingItems_Email,NCI_EmailTrackingItems_Newsletter_Id1,NCI_Newsletters_ContentNodeId,NCI_Newsletters_Status,NCI_TrackingItems_Email1,NCI_TrackingItems_NewsletterId1,IX_databit_recordfield,IX_datadatetime_recordfield,IX_datainteger_recordfield,IX_datalongstring_recordfield,IX_datastring_recordfield,Id,IX_umbracoUserLogins_Index,IX_umbracoNodePath,IX_cmsMacro_UniqueId,IX_cmsMacroProperty_UniquePropertyId,IX_cmsMember_LoginName,IX_cmsPropertyTypeGroupUniqueID,IX_cmsPropertyTypeUniqueID,IX_umbracoRelationType_UniqueId,IX_umbracoRelationType_name,IX_umbracoRelationType_alias,IX_umbracoRelation_parentChildType,IX_umbracoUser2NodePermission_nodeId,IX_umbracoAccess_nodeId,IX_umbracoAccessRule,IX_umbracoMigration,IX_umbracoRedirectUrl
    
    The following unknown constraints (Primary Keys, Foreign Keys and Indexes) were found in the database, but are not in the current schema:
    Id
    
    
     2017-06-29 09:27:58,119 [P46120/D2/T11] ERROR Umbraco.Web.Install.Controllers.InstallApiController - Installation step DatabaseUpgrade failed.
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Umbraco.Web.Install.InstallException: The database failed to upgrade. ERROR: The database configuration failed with the following message: The index 'IX_umbracoNodeUniqueID' is dependent on column 'uniqueID'.
    ALTER TABLE ALTER COLUMN uniqueID failed because one or more objects access this column.
     Please check log file for additional information (can be found in '/App_Data/Logs/UmbracoTraceLog.txt')
       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)
     2017-06-29 09:27:58,119 [P46120/D2/T11] INFO  Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 679ms)
    
  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jun 29, 2017 @ 07:48
    Markus Johansson
    100

    Hi!

    I'm afraid that IX_umbracoNodeUniqueID is not a table in Newsletter Studio, looks like it might be the same issue as this one?

    http://issues.umbraco.org/issue/U4-9927

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Jun 29, 2017 @ 08:50
    Søren Kottal
    0

    Thanks, I think you are right, just got put of by NewsletterStudios table names in the log :)

    I found out that upgrading to 7.5.14 before going up to 7.6.3 works.

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jun 30, 2017 @ 13:14
    Markus Johansson
    0

    Great news! Nice to hear that you solved the issue! =D

  • Jon R. Humphrey 164 posts 455 karma points c-trib
    Jun 30, 2017 @ 08:48
    Jon R. Humphrey
    0

    Glad you got it sorted @Søren!

    Would you mind me asking your upgrade path?

    Mainly, were there any versions you didn't need to do or specifically had to do, other than 7.5.14 of course!?! :-D

    Cheers,

    Jon

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Jun 30, 2017 @ 09:29
    Søren Kottal
    1

    Hi Jon

    I went straight to 7.5.14, and from there to 7.6.3.

    You just have to follow upgrade directions, there is a few in 7.6.

Please Sign in or register to post replies

Write your reply to:

Draft