I am getting "Server Error (500)"

My server has been working fine for the majority of the time, but now I have been starting to get this error message:

Server Error (500)

It first started showing while I had tried to open the Version page.

After that, I tried running the upgrade script, and a few things started happening.

First, my server was not able to connect to github.com - which I was able to fix for a while, but it started popping up again even after reconfiguring my networking for the server.

fatal: unable to access ‘GitHub - usmannasir/cyberpanel: Cyber Panel - The hosting control panel for OpenLiteSpeed’: Failed to connect to github.com:443; Connection timed out

Now every time I finish running the upgrade script, I see this message:

Seems something wrong with the upgrade, please check…

I get a few compiling errors and whatnot, but I do not know how to fix this.

I was not able to get Google Drive backups running anymore, either. I could not get past the login page for Google Drive or the CyberPanel control thing.

I have tried enabling the debugging mode, but the error message is not that detailed; I’d just get this:

(1045, “Access denied for user ‘cyberpanel’@‘localhost’ (using password: YES)”)

I have tried looking through config files to replace the MySQL password, but that has not helped. I was unable to log in through the mysql command.

I would be getting this error every time I would try to connect:

ERROR 2002 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (115)

What is your take on this? How should I act upon it?

check server storage.

The server storage is nowhere near full. Only 45% used and there’s about 40 GB free.