After Update Server…
 
Notifications
Clear all

[Solved] After Update Server Error

5 Posts
2 Users
1 Reactions
1,192 Views
Posts: 12
 Eddy
Topic starter
Active Member
Joined: 5 years ago

Hi,

 

After the update of  CloudPanel_3.2.0340.0 i’m getting this error.

 

Application Pool = OK.

 

Server Error in ‘/CloudPanel’ Application.


Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a “web.config” configuration file located in the root directory of the current web application. This <customErrors> tag should then have its “mode” attribute set to “Off”.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the “defaultRedirect” attribute of the application’s <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
4 Replies
Posts: 1607
Admin
Noble Member
Joined: 10 years ago

Can you please log onto the server CloudPanel is installed on and access CloudPanel using localhost? That will show us the actual error message.

Reply
3 Replies
 Eddy
Joined: 5 years ago

Active Member
Posts: 12

@jdixon 

 

Server Error in ‘/CloudPanel’ Application.


CPTwoFAAuth Backup Codes Reset: Backup Codes is null or empty.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: CPTwoFAAuth Backup Codes Reset: Backup Codes is null or empty.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[NullReferenceException: CPTwoFAAuth Backup Codes Reset: Backup Codes is null or empty.]
   CloudPanel.Bootstrapper.UpdateDataProtection() +11834
   CloudPanel.Bootstrapper.ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) +1250
   Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise() +734
   Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor() +44

[TypeInitializationException: The type initializer for 'Nancy.Hosting.Aspnet.NancyHttpRequestHandler' threw an exception.]
   Nancy.Hosting.Aspnet.NancyHttpRequestHandler..ctor() +0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +139
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1431
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +184
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
   System.Web.Configuration.HandlerFactoryCache..ctor(String type) +33
   System.Web.HttpApplication.GetFactory(String type) +98
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +499
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0

Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1607

@jordy Ok this is a known issue. The problem is users have been enabled for TFA but have never logged in. If you are familiar with SQL Server Management Studio then you can execute this SQL script:

DELETE FROM cp_TwoFAAuth WHERE BackupCodes is NULL

Restart the application pool afterwards. If you are not, then I can connect and do it for you.

Reply
 Eddy
Joined: 5 years ago

Active Member
Posts: 12

@jdixon 

thank you! that does the trick! 

Reply
Share: