Community

500 internal Error: can't access the CyberPanel dashboared

1q
1q2w3E4R1! #1

Hello CyberPanel Support Team,

My CyberPanel installation was working perfectly and then suddenly became inaccessible today. My websites appear to still be online, but I cannot log in to the dashboard on port 8090.

I have performed extensive troubleshooting and have identified a specific error, but I am hesitant about the final step and would appreciate your expert advice.

My Server Environment:

  • Operating System: [CentOS 7]

Troubleshooting Steps Taken:

  1. Checked Services: Both lscpd and lsws services are active (running).
  2. Enabled Debug Mode: After enabling debug mode, the page now shows a specific Python error.

The Exact Error Message: The debug page shows the following ModuleNotFoundError, which seems to be the root cause:

ModuleNotFoundError at / No module named 'databases.mysqlOptimizer' Request Method:GETRequest URL:https://s-cyberpanel.domain.com/Django Version:3.1.3Exception Type:ModuleNotFoundErrorException Value:No module named 'databases.mysqlOptimizer' Exception Location:/usr/local/CyberCP/databases/views.py, line 11, in <module>Python Executable:/usr/local/CyberCP/bin/pythonPython Version:3.6.8 ...


How to Fix this without losing any data?

JS
Jesus Suarez #2

It appears that your installation has become corrupted. To repair it, simply run the following command:

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

When prompted for the version, enter 2.4.1 (do not include the letter “v”).

This will reinstall CyberPanel and should resolve any installation issues.

Hope this helps. Best regards.

Sign in to reply