Support Forums

Runtime Error after…
 
Notifications
Clear all

Runtime Error after upgrading to 3.2.0340

4 Posts
2 Users
0 Likes
670 Views
Posts: 0
Topic starter
(@Anonymous)
Joined: 1 second ago

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)

3 Replies
Posts: 1563
Admin
(@jdixon)
Noble Member
Joined: 9 years ago

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 
Reply
Posts: 0
Topic starter
(@Anonymous)
Joined: 1 second ago

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!

Reply
1 Reply
Admin
(@jdixon)
Joined: 9 years ago

Noble Member
Posts: 1563

@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.

Reply
Share: