Error 500 CyberPanel Interface

When I try to access the CyberPanel interface, I receive the following error:

Internal Error  
The server encountered an unexpected condition which prevented it from fulfilling the request

My server info:

[root@wp lscp]# cat /etc/redhat-release
AlmaLinux release 9.5 (Teal Serval)
[root@wp ~]# cat /usr/local/CyberCP/version.txt
{"version": "2.4", "build": "0"}
[root@wp ~]# free -m
               total        used        free      shared  buff/cache   available
Mem:            3658         805        1761         115        1425        2852
Swap:           2047           0        2047
[root@wp ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           1.8G  106M  1.7G   6% /dev/shm
tmpfs           732M  8.5M  724M   2% /run
/dev/vda1        99G   48G   46G  52% /
tmpfs           366M  4.0K  366M   1% /run/user/0

Trying to update:

[root@wp lscp]# cyberpanel upgrade
[05.22.2025_17-55-19] /usr/bin/cyberpanel_utility --upgrade
[root@wp lscp]# /usr/bin/cyberpanel_utility --upgrade
/usr/bin/cyberpanel_utility: line 4: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
/usr/bin/cyberpanel_utility: line 4: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)

Checking root privileges...

You are running as root...

Checking Cyberpanel Utility update...

CyberPanel Utility Script is up to date...

Unable to detect your system...

CyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03...

Services status:

[root@wp bin]# service lscpd status
Redirecting to /bin/systemctl status lscpd.service
● lscpd.service - LSCPD Daemon
     Loaded: loaded (/etc/systemd/system/lscpd.service; enabled; preset: disabled)
     Active: active (running) since Thu 2025-05-22 22:42:21 IST; 53min ago
    Process: 624 ExecStart=/usr/local/lscp/bin/lscpdctrl start (code=exited, status=0/SUCCESS)
   Main PID: 695 (lscpd)
     CGroup: /system.slice/lscpd.service
             ├─ 695 "lscpd (lscpd - main)"
             ├─ 696 "lscpd (lscgid)"
             ├─ 698 "lscpd (lscpd - #01)"
             ├─ 699 /usr/local/CyberCP/bin/lswsgi -m /usr/local/CyberCP/CyberCP/wsgi.py
             └─3383 /usr/local/CyberCP/bin/lswsgi -m /usr/local/CyberCP/CyberCP/wsgi.py

May 22 22:42:19 wp.portaleducadora.com systemd[1]: Starting LSCPD Daemon...
May 22 22:42:19 wp.portaleducadora.com lscpdctrl[624]: [OK] lscpd: pid=695.
May 22 22:42:21 wp.portaleducadora.com systemd[1]: Started LSCPD Daemon.
[root@wp bin]# service lsws status
Redirecting to /bin/systemctl status lsws.service
● lshttpd.service - OpenLiteSpeed HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/lshttpd.service; enabled; preset: disabled)
     Active: active (running) since Thu 2025-05-22 22:42:21 IST; 53min ago
    Process: 783 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
   Main PID: 846 (litespeed)
     CGroup: /system.slice/lshttpd.service
             ├─846 "openlitespeed (lshttpd - main)"
             ├─849 "openlitespeed (lscgid)"
             ├─873 "openlitespeed (lshttpd - #01)"
             ├─874 "openlitespeed (lshttpd - #02)"
             ├─875 "openlitespeed (lshttpd - #03)"
             └─876 "openlitespeed (lshttpd - #04)"

May 22 22:42:19 wp.portaleducadora.com systemd[1]: Starting OpenLiteSpeed HTTP Server...
May 22 22:42:19 wp.portaleducadora.com lswsctrl[783]: [OK] litespeed: pid=846.
May 22 22:42:21 wp.portaleducadora.com systemd[1]: Started OpenLiteSpeed HTTP Server.
[root@wp bin]# systemctl status mariadb
● mariadb.service - MariaDB 10.11.11 database server
     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/mariadb.service.d
             └─migrated-from-my.cnf-settings.conf
     Active: active (running) since Thu 2025-05-22 22:42:19 IST; 58min ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 636 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=ex>
    Process: 678 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/b>
    Process: 766 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=e>
   Main PID: 693 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 8 (limit: 28678)
     Memory: 229.7M
        CPU: 385ms
     CGroup: /system.slice/mariadb.service
             └─693 /usr/sbin/mariadbd

May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] InnoDB: File './>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] InnoDB: log sequ>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] InnoDB: Loading >
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] Plugin 'FEEDBACK>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] Server socket cr>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] Server socket cr>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] InnoDB: Buffer p>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: 2025-05-22 22:42:19 0 [Note] /usr/sbin/mariad>
May 22 22:42:19 wp.portaleducadora.com mariadbd[693]: Version: '10.11.11-MariaDB'  socket: '/var/li>
May 22 22:42:19 wp.portaleducadora.com systemd[1]: Started MariaDB 10.11.11 database server.

cat /usr/local/lscp/logs/error.log

[root@wp bin]# cat /usr/local/lscp/logs/error.log
2025-05-22 22:42:19.274275 [NOTICE] Loading LiteSpeed/0.3.1 Open (TOBEREPLACEDWITHCURRENTDATE) ...
2025-05-22 22:42:19.274292 [NOTICE] Using [BoringSSL]
2025-05-22 22:42:19.275950 [NOTICE] [PID: 695]: forked cgid: 696
2025-05-22 22:42:19.277696 [NOTICE] [LscpdCommSocket] server socket: uds://usr/local/lscpd/admin/comm.sock and fd 11 uid 1000 gid 1000
2025-05-22 22:42:19.277899 [NOTICE] [AutoRestarter] new child process with pid=698 is forked!
2025-05-22 22:42:19.278293 [NOTICE] [child: 698] Successfully change current user to lscpd
2025-05-22 22:42:19.278316 [NOTICE] Child: 698] Core dump is disabled.
2025-05-22 22:42:19.278694 [INFO] [wsgi:cyberpanel:/] add child process pid: 699.
2025-05-22 22:42:19.278743 [NOTICE] [Child: 698] Setup swapping space...
2025-05-22 22:42:19.279077 [NOTICE] [Child: 698] LiteSpeed/0.3.1 Open starts successfully!
2025-05-22 22:42:20.081029 [INFO] checkStatusFile() called with uid 2002 randoffset -1.
2025-05-22 22:42:20.081072 [INFO] checkStatusFile() return 1.
2025-05-22 22:43:20.100189 [INFO] checkStatusFile() called with uid 2002 randoffset -1.
2025-05-22 22:43:20.100271 [INFO] checkStatusFile() return 1.
2025-05-22 22:44:20.098876 [INFO] checkStatusFile() called with uid 2002 randoffset -1.
2025-05-22 22:44:20.098916 [INFO] checkStatusFile() return 1.
2025-05-22 22:45:20.020474 [INFO] checkStatusFile() called with uid 2002 randoffset -1.
2025-05-22 22:45:20.020513 [INFO] checkStatusFile() return 1.
2025-05-22 22:46:20.059313 [INFO] checkStatusFile() called with uid 2002 randoffset -1.
2025-05-22 22:46:20.059350 [INFO] checkStatusFile() return 1.
2025-05-22 22:47:20.099503 [INFO] checkStatusFile() called with uid 2002 randoffset -1.
2025-05-22 22:47:20.099540 [INFO] checkStatusFile() return 1.

tail -n 100 /usr/local/lsws/logs/error.log

[root@wp bin]# tail -n 100 /usr/local/lsws/logs/error.log
2025-05-22 22:42:19.948373 [INFO] [875] Close SO_REUSEPORT #4 fd: 25.
2025-05-22 22:42:19.948377 [NOTICE] [875] [*:80] Worker #3 activates SO_REUSEPORT #3 socket, fd: 24
2025-05-22 22:42:19.948392 [INFO] [875] Close SO_REUSEPORT #1 fd: 26.
2025-05-22 22:42:19.948398 [INFO] [875] Close SO_REUSEPORT #2 fd: 27.
2025-05-22 22:42:19.948401 [INFO] [875] Close SO_REUSEPORT #4 fd: 29.
2025-05-22 22:42:19.948404 [NOTICE] [875] [*:443] Worker #3 activates SO_REUSEPORT #3 socket, fd: 28
2025-05-22 22:42:19.948410 [INFO] [875] Close SO_REUSEPORT #1 fd: 30.
2025-05-22 22:42:19.948413 [INFO] [875] Close SO_REUSEPORT #2 fd: 31.
2025-05-22 22:42:19.948416 [INFO] [875] Close SO_REUSEPORT #4 fd: 33.
2025-05-22 22:42:19.948419 [NOTICE] [875] [UDP *:443] Worker #3 activates SO_REUSEPORT #3 socket, fd: 32
2025-05-22 22:42:19.948455 [INFO] [875] [UDP:0.0.0.0:443] initPacketsIn: allocated 100 packets
2025-05-22 22:42:19.948469 [INFO] [875] Close SO_REUSEPORT #1 fd: 34.
2025-05-22 22:42:19.948474 [INFO] [875] Close SO_REUSEPORT #2 fd: 35.
2025-05-22 22:42:19.948477 [INFO] [875] Close SO_REUSEPORT #4 fd: 37.
2025-05-22 22:42:19.948480 [NOTICE] [875] [[::]:443] Worker #3 activates SO_REUSEPORT #3 socket, fd: 36
2025-05-22 22:42:19.948478 [NOTICE] [873] Successfully change current user to nobody
2025-05-22 22:42:19.948486 [INFO] [875] Close SO_REUSEPORT #1 fd: 38.
2025-05-22 22:42:19.948491 [INFO] [875] Close SO_REUSEPORT #2 fd: 39.
2025-05-22 22:42:19.948494 [INFO] [875] Close SO_REUSEPORT #4 fd: 41.
2025-05-22 22:42:19.948498 [NOTICE] [875] [UDP [::]:443] Worker #3 activates SO_REUSEPORT #3 socket, fd: 40
2025-05-22 22:42:19.948497 [NOTICE] [873] Core dump is enabled.
2025-05-22 22:42:19.948515 [INFO] [875] [UDP:[::]:443] initPacketsIn: allocated 100 packets
2025-05-22 22:42:19.948524 [NOTICE] [875] Stop listener *:7080, fd 20.
2025-05-22 22:42:19.948679 [NOTICE] [875] Successfully change current user to nobody
2025-05-22 22:42:19.948692 [NOTICE] [875] Core dump is enabled.
2025-05-22 22:42:19.948707 [NOTICE] [875] Setup swapping space...
2025-05-22 22:42:19.948913 [INFO] [874] Close SO_REUSEPORT #1 fd: 22.
2025-05-22 22:42:19.948948 [INFO] [874] Close SO_REUSEPORT #3 fd: 24.
2025-05-22 22:42:19.948953 [INFO] [874] Close SO_REUSEPORT #4 fd: 25.
2025-05-22 22:42:19.948957 [NOTICE] [874] [*:80] Worker #2 activates SO_REUSEPORT #2 socket, fd: 23
2025-05-22 22:42:19.948945 [INFO] [876] Close SO_REUSEPORT #1 fd: 22.
2025-05-22 22:42:19.948973 [INFO] [874] Close SO_REUSEPORT #1 fd: 26.
2025-05-22 22:42:19.948979 [INFO] [876] Close SO_REUSEPORT #2 fd: 23.
2025-05-22 22:42:19.948980 [INFO] [874] Close SO_REUSEPORT #3 fd: 28.
2025-05-22 22:42:19.948986 [INFO] [874] Close SO_REUSEPORT #4 fd: 29.
2025-05-22 22:42:19.948985 [INFO] [876] Close SO_REUSEPORT #3 fd: 24.
2025-05-22 22:42:19.948990 [NOTICE] [874] [*:443] Worker #2 activates SO_REUSEPORT #2 socket, fd: 27
2025-05-22 22:42:19.948995 [INFO] [874] Close SO_REUSEPORT #1 fd: 30.
2025-05-22 22:42:19.948993 [NOTICE] [876] [*:80] Worker #4 activates SO_REUSEPORT #4 socket, fd: 25
2025-05-22 22:42:19.948999 [INFO] [874] Close SO_REUSEPORT #3 fd: 32.
2025-05-22 22:42:19.949004 [INFO] [874] Close SO_REUSEPORT #4 fd: 33.
2025-05-22 22:42:19.949009 [NOTICE] [874] [UDP *:443] Worker #2 activates SO_REUSEPORT #2 socket, fd: 31
2025-05-22 22:42:19.949014 [INFO] [876] Close SO_REUSEPORT #1 fd: 26.
2025-05-22 22:42:19.949024 [INFO] [876] Close SO_REUSEPORT #2 fd: 27.
2025-05-22 22:42:19.949029 [INFO] [876] Close SO_REUSEPORT #3 fd: 28.
2025-05-22 22:42:19.949035 [NOTICE] [876] [*:443] Worker #4 activates SO_REUSEPORT #4 socket, fd: 29
2025-05-22 22:42:19.949034 [INFO] [874] [UDP:0.0.0.0:443] initPacketsIn: allocated 100 packets
2025-05-22 22:42:19.949044 [INFO] [876] Close SO_REUSEPORT #1 fd: 30.
2025-05-22 22:42:19.949050 [INFO] [876] Close SO_REUSEPORT #2 fd: 31.
2025-05-22 22:42:19.949055 [INFO] [876] Close SO_REUSEPORT #3 fd: 32.
2025-05-22 22:42:19.949055 [INFO] [874] Close SO_REUSEPORT #1 fd: 34.
2025-05-22 22:42:19.949061 [NOTICE] [876] [UDP *:443] Worker #4 activates SO_REUSEPORT #4 socket, fd: 33
2025-05-22 22:42:19.949068 [INFO] [874] Close SO_REUSEPORT #3 fd: 36.
2025-05-22 22:42:19.949074 [INFO] [874] Close SO_REUSEPORT #4 fd: 37.
2025-05-22 22:42:19.949077 [NOTICE] [874] [[::]:443] Worker #2 activates SO_REUSEPORT #2 socket, fd: 35
2025-05-22 22:42:19.949084 [INFO] [874] Close SO_REUSEPORT #1 fd: 38.
2025-05-22 22:42:19.949087 [INFO] [874] Close SO_REUSEPORT #3 fd: 40.
2025-05-22 22:42:19.949091 [INFO] [876] [UDP:0.0.0.0:443] initPacketsIn: allocated 100 packets
2025-05-22 22:42:19.949092 [INFO] [874] Close SO_REUSEPORT #4 fd: 41.
2025-05-22 22:42:19.949104 [NOTICE] [874] [UDP [::]:443] Worker #2 activates SO_REUSEPORT #2 socket, fd: 39
2025-05-22 22:42:19.949108 [INFO] [876] Close SO_REUSEPORT #1 fd: 34.
2025-05-22 22:42:19.949116 [INFO] [876] Close SO_REUSEPORT #2 fd: 35.
2025-05-22 22:42:19.949120 [INFO] [874] [UDP:[::]:443] initPacketsIn: allocated 100 packets
2025-05-22 22:42:19.949122 [INFO] [876] Close SO_REUSEPORT #3 fd: 36.
2025-05-22 22:42:19.949132 [NOTICE] [876] [[::]:443] Worker #4 activates SO_REUSEPORT #4 socket, fd: 37
2025-05-22 22:42:19.949133 [NOTICE] [874] Stop listener *:7080, fd 20.
2025-05-22 22:42:19.949141 [INFO] [876] Close SO_REUSEPORT #1 fd: 38.
2025-05-22 22:42:19.949147 [INFO] [876] Close SO_REUSEPORT #2 fd: 39.
2025-05-22 22:42:19.949152 [INFO] [876] Close SO_REUSEPORT #3 fd: 40.
2025-05-22 22:42:19.949157 [NOTICE] [876] [UDP [::]:443] Worker #4 activates SO_REUSEPORT #4 socket, fd: 41
2025-05-22 22:42:19.949168 [INFO] [876] [UDP:[::]:443] initPacketsIn: allocated 100 packets
2025-05-22 22:42:19.949181 [NOTICE] [876] Stop listener *:7080, fd 20.
2025-05-22 22:42:19.949287 [NOTICE] [875] LiteSpeed/1.8.3 Open starts successfully!
2025-05-22 22:42:19.949309 [NOTICE] [874] Successfully change current user to nobody
2025-05-22 22:42:19.949322 [NOTICE] [874] Core dump is enabled.
2025-05-22 22:42:19.949337 [NOTICE] [874] Setup swapping space...
2025-05-22 22:42:19.949402 [NOTICE] [876] Successfully change current user to nobody
2025-05-22 22:42:19.949421 [NOTICE] [876] Core dump is enabled.
2025-05-22 22:42:19.949455 [NOTICE] [876] Setup swapping space...
2025-05-22 22:42:19.949589 [NOTICE] [874] LiteSpeed/1.8.3 Open starts successfully!
2025-05-22 22:42:19.949701 [INFO] [873] [lsphp]: locked pid file [/tmp/lshttpd/lsphp.sock.pid].
2025-05-22 22:42:19.949724 [INFO] [873] [lsphp] remove unix socket for detached process: /tmp/lshttpd/lsphp.sock
2025-05-22 22:42:19.949820 [NOTICE] [873] [LocalWorker::workerExec] Config[lsphp]: suExec uid 65534 gid 65534 cmd /usr/local/lsws/lsphp74/bin/lsphp, final uid 65534 gid 65534, flags: 0.
2025-05-22 22:42:19.949944 [NOTICE] [876] LiteSpeed/1.8.3 Open starts successfully!
2025-05-22 22:42:19.950294 [NOTICE] [873] [lsphp] add child process pid: 877
2025-05-22 22:42:19.950355 [INFO] [873] [lsphp]: unlocked pid file [/tmp/lshttpd/lsphp.sock.pid].
2025-05-22 22:42:19.950734 [INFO] [873] [porta6114.655340]: locked pid file [/tmp/lshttpd/porta6114.sock.pid].
2025-05-22 22:42:19.950747 [INFO] [873] [porta6114.655340] remove unix socket for detached process: /tmp/lshttpd/porta6114.sock
2025-05-22 22:42:19.950819 [NOTICE] [873] [LocalWorker::workerExec] VHost:portaleducadora.com suExec check uid 65534 gid 65534 setuidmode 0.
2025-05-22 22:42:19.950830 [NOTICE] [873] [LocalWorker::workerExec] Config[porta6114.655340]: suExec uid 2004 gid 2004 cmd /usr/local/lsws/lsphp74/bin/lsphp, final uid 2004 gid 2004, flags: 0.
2025-05-22 22:42:19.951056 [NOTICE] [873] [porta6114.655340] add child process pid: 879
2025-05-22 22:42:19.951109 [INFO] [873] [porta6114.655340]: unlocked pid file [/tmp/lshttpd/porta6114.sock.pid].
2025-05-22 22:42:19.951960 [INFO] [873] [wppor4085.655340]: locked pid file [/tmp/lshttpd/wppor4085.sock.pid].
2025-05-22 22:42:19.951973 [INFO] [873] [wppor4085.655340] remove unix socket for detached process: /tmp/lshttpd/wppor4085.sock
2025-05-22 22:42:19.952034 [NOTICE] [873] [LocalWorker::workerExec] VHost:wp.portaleducadora.com suExec check uid 65534 gid 65534 setuidmode 0.
2025-05-22 22:42:19.952048 [NOTICE] [873] [LocalWorker::workerExec] Config[wppor4085.655340]: suExec uid 2003 gid 2003 cmd /usr/local/lsws/lsphp80/bin/lsphp, final uid 2003 gid 2003, flags: 0.
2025-05-22 22:42:19.952243 [NOTICE] [873] [wppor4085.655340] add child process pid: 880
2025-05-22 22:42:19.952287 [INFO] [873] [wppor4085.655340]: unlocked pid file [/tmp/lshttpd/wppor4085.sock.pid].
2025-05-22 22:42:19.952314 [NOTICE] [873] Setup swapping space...
2025-05-22 22:42:19.952682 [NOTICE] [873] LiteSpeed/1.8.3 Open starts successfully!

journalctl -u lscpd -n 100 --no-pager

[root@wp bin]# journalctl -u lscpd -n 100 --no-pager
May 22 22:42:19 wp.portaleducadora.com systemd[1]: Starting LSCPD Daemon...
May 22 22:42:19 wp.portaleducadora.com lscpdctrl[624]: [OK] lscpd: pid=695.
May 22 22:42:21 wp.portaleducadora.com systemd[1]: Started LSCPD Daemon.

All services appear to be running normally, and I haven’t found any errors in the logs I checked. Is there anything else I can try?

Tks!

Try this upgrade command instead:

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