Copied to clipboard

Flag this post as spam?

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


  • hoodhood123 9 posts 109 karma points
    Aug 16, 2016 @ 10:36
    hoodhood123
    0

    Umbraco upgrade from 6.0.1 -> 7.4.3, log in failed

    Hi,

    I am using nuget to upgrade the umbraco to version 7.4.3. The project builds fine, then I go to my website and it directs me to the log in page. However I couldn't log in and it said "Login failed for user xxxx".

    I have checked the log and here are the related errors:

    Error Number:207,State:1,Class:16 2016-08-16 11:27:47,063 [P49736/D8/T37] WARN Umbraco.Core.Services.UserService - An error occurred attempting to save a user instance during upgrade, normally this warning can be ignored. Exception: System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'securityStampToken'. Invalid column name 'failedLoginAttempts'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 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.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery() in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbCommand.cs:line 279 at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.Database.Update(String tableName, String primaryKeyName, Object poco, Object primaryKeyValue, IEnumerable1 columns) at Umbraco.Core.Persistence.Database.Update(Object poco, Object primaryKeyValue, IEnumerable1 columns) at Umbraco.Core.Persistence.Repositories.UserRepository.PersistUpdatedItem(IUser entity) at Umbraco.Core.Cache.DefaultRepositoryCachePolicy2.CreateOrUpdate(TEntity entity, Action1 persistMethod) at Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistUpdatedItem(IEntity entity) at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action1 transactionCompleting) at Umbraco.Core.Services.UserService.Save(IUser entity, Boolean raiseEvents) Error Number:207,State:1,Class:16 2016-08-16 11:27:47,069 [P49736/D8/T37] INFO Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: Login attempt failed for username

    It suggests that there is an invalid column name for 'securityStampToken' and 'failedLoginAttempts', does anyone know how to solve it? I have googled a similar post before but doesn't really help. https://our.umbraco.org/forum/getting-started/installing-umbraco/73781-umbraco-nuget-update-728-734-invalid-column-name

    Thanks

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Aug 18, 2016 @ 11:42
    Alex Skrypnyk
    0

    Hi,

    I'm not sure, but maybe you can just reset admin password?

    There is great package - https://our.umbraco.org/projects/developer-tools/umbraco-admin-reset/

    Hope it will help you.

    Thanks,

    Alex

  • hoodhood123 9 posts 109 karma points
    Aug 19, 2016 @ 11:16
    hoodhood123
    0

    Hi,

    Thank you for your reply however it doesn't work as the problem is here is no 'securityStampToken' and 'failedLoginAttempts' in my umbraco 6 table, which I believe that some of the user schema has changed from 6 ->7.

    Thanks

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Aug 19, 2016 @ 11:32
    Dennis Adolfi
    0

    Hi Hoodhood123.

    Did you upgrade directly from 6.0.1 to 7.4.3? Because I think it's recommend to first upgrade to 6.2.6 and then 7.0.0 before the 7.4.3 according to the upgrade paths: http://code.leekelleher.com/umbraco/archive/

    Also see: http://skrift.io/articles/archive/umbraco-upgrade-strategies/

Please Sign in or register to post replies

Write your reply to:

Draft