Unable to log in after update (2022.1.12 to 2022.2.9)

Unable to log in after update (2022.1.12 to 2022.2.9)

avatar

Hello,
We have been trying to update our instance of Devolutions Server for a while now and we are getting an issue where we cannot log in every time we attempt the update. We have gone so far as to setup a brand new server with the 2022.1.12 on it and then update it, but am still seeing a few issues. Neither AD or Azure AD accounts can login.

We get this error message when attempting to log in:
forum image

Looking at the logs, we see this error message every time a login attempt is made:

NullReferenceException - Object reference not set to an instance of an object.

   at Devolutions.Server.Managers.AuthenticationProvider.SkipAuthentication(LoginContext loginContext)
   at Devolutions.Server.Managers.AuthenticationProvider.DoAuthenticateUser(LoginContext loginData, String username, String password)
   at Devolutions.Server.Managers.AuthenticationProvider.AuthenticateUser(LoginContext loginData, String userName, String password)
   at Devolutions.Server.Managers.AuthenticationProvider.ValidateUser(LoginContext loginData, String userName, String password, LoginAttemptEntity loginAttempt)
   at Devolutions.Server.Controllers.APIControllers.V2.BackendApiController.DoLogin(ISessionContext context, ParsedLoginParameter loginParameter, LoginContext& loginData)


We are also seeing the following error when the scheduler attempts to cache Azure AD:

InvalidOperationException - There is an error in XML document (2, 2).

   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at Devolutions.RemoteDesktopManager.Managers.SerializationManager.LoadObjectFromString[T](String str, Boolean createAnInstanceIfNotExists)
   at Devolutions.Server.ServerCacheManager.ParseExternalUserId(ServerUserType userType, DataRow row)
   at Devolutions.Server.ServerCacheManager.ParseUserSecurityEntity[T](DataRow row, DataSourceSettings dataSourceSettings)
   at Devolutions.Server.ServerCacheManager.GetUsersFromDB[T](Int32 userType, Nullable`1 userId)

------------------------------------------

InvalidOperationException - <ADUserId xmlns=''> was not expected.

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAzureADUserId.Read6_AzureADUserId()


Any help would be appreciated with getting this resolved. We do have both database backups and snapshots of the server prior to running the update and can revert if needed.

All Comments (1)

avatar

Hello Derek,

Can you confirm that you are using both Domain and O365/Microsoft authentication? If so, it can cause the issue that you are experiencing. We recommend only having one authentication type as it can create the type of issue you are experiencing.

To solve the issue, we recommend the AAD cache to be up to date prior to the upgrade. You can follow this KB: https://kb.devolutions.net/dvls_unable_import_azure_ad_users_groups.html

Once it is completed, you can proceed with the upgrade, and it should be able to migrate the users correctly. If you still have an issue, you can write to service@devolutions.net and we can book a session to have a look.

Best regards,

Richard Boisvert