Support Forums

Server Error in ‘/C…
 
Notifications
Clear all

Server Error in '/CloudPanel' Application

18 Posts
2 Users
0 Likes
222 Views
Jared
Posts: 19
Topic starter
(@jjb1989)
Active Member
Joined: 9 months ago

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

 

17 Replies
Jacob Dixon
Posts: 1382
Admin
(@jdixon)
Illustrious Member
Joined: 8 years ago

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?

Reply
16 Replies
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@jdixon Please find attached.

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

@jjb1989 I don’t see anything attached

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@jdixon swore I did, sorry. I have attached it again. Please let me know. Thanks!

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

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

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@jdixon Done, thank you.

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

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

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@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

 

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

Hi @jdixon. Afraid issue is still occurring. Any updates? Many thanks.

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

@jjb1989 Jared, sorry for the late response. I will post a download link for you by end of business today

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

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

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

@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: https://knowmoreit.com/download/583/

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@jdixon thanks for this. Seems to have done the trick for me! ?

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

@jjb1989 Perfect! This bug fix will be in the next version coming out very soon.

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@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

Reply
Jacob Dixon
Admin
(@jdixon)
Joined: 8 years ago

Illustrious Member
Posts: 1382

@jjb1989 can we do a remote session? I’ll email you a link

Reply
Jared
(@jjb1989)
Joined: 9 months ago

Active Member
Posts: 19

@jdixon Sure thing. I await your email.

Reply
Share:
X