Server Error in '/CloudPanel' Application
Hello,
I recently setup CloudPanel on a new server, with new database, and checked SQL permissions. I am getting an object error when trying to enter Cloudpanel admin setup page (See below).
Object reference not set to an instance of an object.
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: Object reference not set to an instance of an object.
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: Object reference not set to an instance of an object.]
CloudPanel.Settings.SettingsModify.Add(String key, String value) +111
CloudPanel.<>c.<LoadSettings>b__13_0(cp_Settings x) +20
System.Collections.Generic.List`1.ForEach(Action`1 action) +100
CloudPanel.Bootstrapper.LoadSettings() +749
CloudPanel.Bootstrapper.ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) +1271
Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise() +740
Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor() +47
More has been omitted, but grateful if someone may assist.
Thank you,
Jared
Can you look in the “Log” folder under c:\Program Files (x86)\Know More IT\CloudPanel\Log and attach it here or post the error message?
@jjb1989 Something must be wrong with our system. Will you email it to sales@knowmoreit.com? I will check out what is going on with the forum attachments.
@jjb1989 Ok the error in the logs state it cannot contact the database. When you install CloudPanel it verifies the user you are logged in with having access to the database but does not verify that the username and password you enter can access. It looks like the username and password you entered which is running the IIS application pool for CloudPanel, does not have access to the SQL database:
2022-02-28 13:14:58,310 [ERROR] CloudPanel.Bootstrapper – Failed to update the database. Please contact support: System.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was – [Pre-Login] initialization=4068; handshake=2335; —> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
It is stating the login failed for user “DOMAIN\cloudpanel” (I masked your domain with DOMAIN)
@jdixon that error was logged a few days back and I believe I rectified. It’s further down the logs that should detail the CloudPanel.Bootstrapper “object not set to an instance” issue I’m encountering.
To try mitigate this, I did a complete fresh install of CloudPanel and SQL Server, all via the CloudPanel domain account used during CloudPanel install, and for database access.
I’m afraid i’m still getting the same error when opening admin/setup menu. I’ve attached the log file again (Hopefully you get it this time).
Looking forward to your further support on this. Many thanks!
Jared
@jjb1989 Jared, sorry for the late response. I will post a download link for you by end of business today
I havent forgot about you but we did run into some issues with the update. As a workaround you could install the precious version, configure the settings and then upgrade but I am hoping tomorrow we will have a new installer out
@jjb1989 Jared, please download this file for the latest CloudPanel and replace yours with this one. Once you do that, please recycle the application pool and see if this resolves your issue. I can connect to your server if I need to: http://knowmoreit.com/download/583/
@jdixon Sorry to be the bearer of bad news but I’m now getting an “Object reference not set to an instance of an object.” error when attempting sign in. Not sure if related to the above but thought I’d give a heads up. If you have any advice, much appreciated ?
Thanks,
Jared
- 5 Forums
- 716 Topics
- 3,649 Posts
- 0 Online
- 258 Members