Today, both of my VPS servers (from different providers) suddenly encountered a 500 Internal Server Error when accessing CyberPanel via IP:8090.
Current Situation: Accessing IP:7080 (OpenLiteSpeed) works fine. All websites hosted on the VPS are running normally. SSH access is working without issues. Only CyberPanel (IP:8090) is throwing a 500 error.
I’m not sure if this is a common issue or something related to my configuration. Is anyone else experiencing the same problem? Any suggestions on how to fix it? Any help would be greatly appreciated!
The same thing is happening to me… a couple of days ago I installed CyberPanel on an ARM64 VPS to test and today I can’t access the panel… but the sites are running
I’ve found the issue.
It seem that the CSF fixes have been reverted somehow.
If you used the temporary fix above, you will have to remove the comments we made in the 3 files first.
Put the following in a script and execute:
#!/bin/bash
#Check if the version of Cyberpanel utilizes path or url
url=0
if grep -q "import url" /usr/local/CyberCP/CyberCP/urls.py; then
url=1
fi
#Only make the changes if the version of Cyberpanel utilizes path and not url
if [ "$url" -eq 0 ]; then
sed -i "s/url(r'^configservercsf/path('configservercsf/g" /usr/local/CyberCP/CyberCP/urls.py
sed -i "s/url(r'^$'/path(''/g" /usr/local/CyberCP/configservercsf/urls.py
sed -i "s|url(r'^iframe/\$'|path('iframe/'|g" /usr/local/CyberCP/configservercsf/urls.py
sed -i "s/from django.conf.urls import url/from django.urls import path/g" /usr/local/CyberCP/configservercsf/urls.py
fi
sed -i "s/import signals/import configservercsf.signals/g" /usr/local/CyberCP/configservercsf/apps.py
sed -i -E "s/from.*, render/from plogical.httpProc import httpProc/g" /usr/local/CyberCP/configservercsf/views.py
sed -i -E "s#^(\s*)return render.*index\.html.*#\1proc = httpProc(request, 'configservercsf/index.html', None, 'admin')\n\1return proc.render()#g" /usr/local/CyberCP/configservercsf/views.py
find /usr/local/CyberCP/ -type d -name __pycache__ -exec rm -r {} \+; service lscpd restart && service lsws restart; killall lsphp
This will fix CSF and allow you to continue using the GUI as well.
I am not sure whether this issue is caused by my VPS or if it is a common problem for those using CyberPanel.
I also tried upgrading my VPS.
During the upgrade process, I encountered an issue and resolved it using the following steps.
However, the issue reappeared after 1-2 days.