Runtime Error after upgrading to 3.2.0340
I have installed the update but getting Runtime Error when navigating to the page.
I have restarted the app pool, restarted IIS and restarted the server.
Here’s what is showing in the logs:
2021-08-09 13:14:14,482 [DEBUG] CloudPanel.Bootstrapper – Updating passwords to use AES encryption.
2021-08-09 13:14:14,685 [ERROR] CloudPanel.Bootstrapper – Error updating passwords to use AES encryption/decryption.: System.NullReferenceException: CPTwoFAAuth Backup Codes Reset: Backup Codes is null or empty.
at CloudPanel.Bootstrapper.UpdateDataProtection()
2021-08-09 13:14:14,685 [ERROR] CloudPanel.Bootstrapper – Error: System.NullReferenceException: CPTwoFAAuth Backup Codes Reset: Backup Codes is null or empty.
at CloudPanel.Bootstrapper.UpdateDataProtection()
at CloudPanel.Bootstrapper.ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
Can you please use SQL Management Studios and the command below? After you do, recycle the IIS application pool and try again:
DELETE FROM cp_TwoFAAuth WHERE BackupCodes IS NULL
Bingo. That did it. I thought that might be the fix but didn’t want to go changing SQL tables without confirming. Thanks for the help!
@quadrivium-services I opened up a internal ticket to have that looked at because it shouldn’t prevent the upgrade due to those being null. The only reason those are null is because the user they are assigned to never logged into CloudPanel to complete the TFA setup.
- 5 Forums
- 716 Topics
- 3,649 Posts
- 0 Online
- 258 Members