[Solved] After upgrade to 3.2, I cannot login
Hello,
After upgrading from 3.1 to the latest version of 3.2, I can no longer login to my CloudPanel.
From the log:
2018-11-28 10:35:56,838 [28] DEBUG CloudPanel.Code.CpSettings – Populating settings from config file
2018-11-28 10:35:56,869 [28] DEBUG CloudPanel.Code.CpSettings – Loading settings node
2018-11-28 10:36:00,697 [28] INFO CloudPanel.Bootstrapper – No pending database migrations are required
2018-11-28 10:36:00,713 [28] DEBUG CloudPanel.Config.Settings – Populating settings from config file
2018-11-28 10:36:02,057 [28] DEBUG CloudPanel.Code.CpSettings – Loading first settings node
2018-11-28 10:36:02,072 [28] DEBUG CloudPanel.Code.CpSettings – Loading exchange node
2018-11-28 10:36:02,072 [28] DEBUG CloudPanel.Code.CpSettings – Loading modules node
2018-11-28 10:36:02,072 [28] DEBUG CloudPanel.Code.CpSettings – Loading citrix node
2018-11-28 10:36:02,072 [28] DEBUG CloudPanel.Code.CpSettings – Loading support notifications node
2018-11-28 10:36:02,072 [28] DEBUG CloudPanel.Code.CpSettings – Loading advanced section
2018-11-28 10:36:02,072 [28] DEBUG CloudPanel.Code.CpSettings – Loading spam section
2018-11-28 10:36:03,010 [28] DEBUG CloudPanel.Bootstrapper – Done loading application
2018-11-28 10:36:03,010 [30] DEBUG CloudPanel.Code.PhoneHome – Calling home…
2018-11-28 10:36:03,650 [30] DEBUG CloudPanel.Code.PhoneHome – Checking for updated licenses from the license server
2018-11-28 10:36:03,650 [30] DEBUG CloudPanel.Code.PhoneHome – Completed calling home…
2018-11-28 10:36:03,650 [30] DEBUG CloudPanel.Modules.BrandingModule – Retrieving brandings from database with connection string Data Source=Katsuni;Initial Catalog=CloudPanel;User Id=cloudpanel_sql;Password=password_removed…
2018-11-28 10:36:03,822 [28] ERROR CloudPanel.Modules.LoginModule – Error validating CSRF token: Nancy.Security.CsrfValidationException: TokenTamperedWith
at Nancy.Security.Csrf.ValidateCsrfToken(INancyModule module, Nullable`1 validityPeriod)
at CloudPanel.Modules.LoginModule.<.ctor>b__1_1(Object _)
2018-11-28 10:36:26,464 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Retrieving the PrincipalContext…
2018-11-28 10:36:26,589 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Searching for user username@domain.com
2018-11-28 10:36:26,667 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Checking if user username@domain.com was found
2018-11-28 10:36:26,667 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Checking if password is expired for username@domain.com
2018-11-28 10:36:26,667 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Attempting to validate user username@domain.com
2018-11-28 10:36:26,714 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Checking if user is a super admin
2018-11-28 10:36:26,714 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Querying group Domain Admins
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Group Domain Admins was not found
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Checking if the user is a billing admin
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers – Querying group Domain Admins
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.UserMapper – Checking if the user username@domain.com has an existing session or not
2018-11-28 10:36:26,885 [28] DEBUG CloudPanel.UserMapper – Creating a new session for username@domain.com
2018-11-28 10:36:27,010 [28] DEBUG CloudPanel.UserMapper – Clearing claims for username@domain.com
2018-11-28 10:36:27,026 [28] DEBUG CloudPanel.UserMapper – Querying user username@domain.com from SQL
2018-11-28 10:36:27,620 [28] ERROR CloudPanel.UserMapper – Error logging in user username@domain.com: System.NullReferenceException: Object reference not set to an instance of an object.
at CloudPanel.UserMapper.Validate(String username, String password)
2018-11-28 10:36:27,620 [28] ERROR CloudPanel.Modules.LoginModule – Error logging in: System.NullReferenceException: Object reference not set to an instance of an object.
at CloudPanel.UserMapper.Validate(String username, String password)
at CloudPanel.Modules.LoginModule.<.ctor>b__1_1(Object _)
Interestingly, that appears to have fixed it.
Weird; Domain Admins was what it was set to before, and that group definitely exists.
Go to the settings (/CloudPanel/admin/setup) and click save to see if any of your settings are missing. Also it could be the saved session in the database for that user you are using which could be manually removed or probably expired by now.
Saved the settings, none of the required settings were missing, the ones present are correct. Reset IIS, restarted CloudPanel service. Same result, sadly.
I see it looks like it checking the group “Domain Admins” but it is saying that it can’t find it. Perhaps it isn’t spelled “Domain Admins” in your AD? Different language? It doesn’t look like it is detecting you are super admin. Can you verify you are logging in as a super admin and it is part of the group Domain Admins first?
2018-11-28 10:36:26,714 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers - Querying group Domain Admins
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers - Group Domain Admins was not found
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers - Checking if the user is a billing admin
2018-11-28 10:36:26,745 [28] DEBUG CloudPanel.ActiveDirectory.ADUsers - Querying group Domain Admins
So I double and triple-checked, even logged in (to Windows) as the cloudpanel service account itself, and Domain Admins is the spelling of the group and that account is definitely in that group.
Can I create new groups and use those instead, as a test?
Yes, you can create other security groups and set those as the CloudPanel super admins in the CloudPanel settings. Give that a try and if it doesn’t work then I can do a screen sharing with you.
- 5 Forums
- 716 Topics
- 3,649 Posts
- 0 Online
- 258 Members