CyberPanel Server Error (500) - Help

I have CyberPanel based on Rocky Linux. I had the same problem. I updated the Cayber Panel and the problem was fixed.

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh 6)
1 Like

i am a AWS user so i Rebooted my instance now working fine.

Hi Usman, I had this problem recently and I figured out that it was because missing packages that were “accidently” deleted after apt autoremove command, these packages were related to mariadb, so I reinstalled mariadb, upgraded cyberpanel and after that I got access to cyberpanel again.

thank you for sharing it works 100%

I am having the same problem. I can access cyberpanel but can’t access the website it show:
500
Internal Server Error

An internal server error has occured.

my cyberpanel this same problem
how to handle it

doesn’t helped

1 Like

unfortunately I cant do the upgrade.



[10.23.2023_16-07-26] #########################################################################

[10.23.2023_16-07-26] remove yum-plugin-priorities successful.

[10.23.2023_16-07-26] #########################################################################




[10.23.2023_16-07-26] #########################################################################

[10.23.2023_16-07-26] stop lscpd successful.

[10.23.2023_16-07-26] #########################################################################

Changing shell for cyberpanel.
chsh: Warning: "/bin/false" is not listed in /etc/shells.
chsh: Shell not changed.



[10.23.2023_16-07-26] #########################################################################

[10.23.2023_16-07-26] adduser docker successful.

[10.23.2023_16-07-26] #########################################################################




[10.23.2023_16-07-26] #########################################################################

[10.23.2023_16-07-26] adduser docker successful.

[10.23.2023_16-07-26] #########################################################################

--2023-10-23 16:07:26--  https://cyberpanel.sh/composer.sh
Resolving cyberpanel.sh (cyberpanel.sh)... 89.208.248.38
Connecting to cyberpanel.sh (cyberpanel.sh)|89.208.248.38|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190 [application/x-sh]
Saving to: ‘composer.sh’

100%[=======================================================================>] 190         --.-K/s   in 0s

2023-10-23 16:07:26 (28.0 MB/s) - ‘composer.sh’ saved [190/190]

All settings correct for using Composer
Downloading...

Composer (version 2.6.5) successfully installed to: /usr/local/composer.phar
Use it: php composer.phar




[10.23.2023_16-07-27] #########################################################################

[10.23.2023_16-07-27] Backing up settings file.

[10.23.2023_16-07-27] #########################################################################




[10.23.2023_16-07-27] #########################################################################

[10.23.2023_16-07-27] Settings file backed up.

[10.23.2023_16-07-27] #########################################################################




[10.23.2023_16-07-27] #########################################################################

[10.23.2023_16-07-27] git config --global user.email "[email protected]" successful.

[10.23.2023_16-07-27] #########################################################################




[10.23.2023_16-07-27] #########################################################################

[10.23.2023_16-07-27] git config --global user.name "CyberPanel" successful.

[10.23.2023_16-07-27] #########################################################################




[10.23.2023_16-07-28] #########################################################################

[10.23.2023_16-07-28] git fetch successful.

[10.23.2023_16-07-28] #########################################################################

Saved working directory and index state WIP on v2.3.3: 7e18b868 add php8.1 to lsws config



[10.23.2023_16-07-28] #########################################################################

[10.23.2023_16-07-28] git stash successful.

[10.23.2023_16-07-28] #########################################################################

error: The following untracked working tree files would be overwritten by checkout:
        baseTemplate/static/baseTemplate/assets/finalBase/favicon.png
Please move or remove them before you switch branches.
Aborting



[10.23.2023_16-07-28] #########################################################################

[10.23.2023_16-07-28] git checkout v2.3.4 failed, trying again, try number: 1

[10.23.2023_16-07-28] #########################################################################

error: The following untracked working tree files would be overwritten by checkout:
        baseTemplate/static/baseTemplate/assets/finalBase/favicon.png
Please move or remove them before you switch branches.
Aborting



[10.23.2023_16-07-28] #########################################################################

[10.23.2023_16-07-28] git checkout v2.3.4 failed, trying again, try number: 2

[10.23.2023_16-07-28] #########################################################################

error: The following untracked working tree files would be overwritten by checkout:
        baseTemplate/static/baseTemplate/assets/finalBase/favicon.png
Please move or remove them before you switch branches.
Aborting



[10.23.2023_16-07-28] #########################################################################

[10.23.2023_16-07-28] git checkout v2.3.4 failed, trying again, try number: 3

[10.23.2023_16-07-28] #########################################################################




[10.23.2023_16-07-28] #########################################################################

[10.23.2023_16-07-28] git checkout v2.3.4 failed.

[10.23.2023_16-07-28] #########################################################################


No need to re-setup virtualenv at /usr/local/CyberCP...

--2023-10-23 16:07:28--  https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.3.4/requirments.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1461 (1.4K) [text/plain]
Saving to: ‘/usr/local/requirments.txt’

100%[=======================================================================>] 1,461       --.-K/s   in 0s

2023-10-23 16:07:28 (21.1 MB/s) - ‘/usr/local/requirments.txt’ saved [1461/1461]

Collecting acme==1.9.0
  Using cached acme-1.9.0-py2.py3-none-any.whl (42 kB)
Collecting asgiref==3.3.1
  Using cached asgiref-3.3.1-py3-none-any.whl (19 kB)
Collecting asn1crypto==1.4.0
  Using cached asn1crypto-1.4.0-py2.py3-none-any.whl (104 kB)
Collecting Babel==2.8.0
  Using cached Babel-2.8.0-py2.py3-none-any.whl (8.6 MB)
Collecting backports.ssl-match-hostname==3.7.0.1
  Using cached backports.ssl_match_hostname-3.7.0.1-py2.py3-none-any.whl
Collecting bcrypt==3.2.0
  Using cached bcrypt-3.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (61 kB)
Collecting beautifulsoup4==4.9.3
  Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting boto3==1.18.26
  Using cached boto3-1.18.26-py3-none-any.whl (131 kB)
Collecting botocore==1.21.26
  Using cached botocore-1.21.26-py3-none-any.whl (7.8 MB)
Collecting cachetools==4.1.1
  Using cached cachetools-4.1.1-py3-none-any.whl (10 kB)
Collecting certifi==2020.11.8
  Using cached certifi-2020.11.8-py2.py3-none-any.whl (155 kB)
Collecting cffi==1.14.3
  Using cached cffi-1.14.3-cp36-cp36m-manylinux1_x86_64.whl (400 kB)
Collecting chardet==3.0.4
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting cloudflare==2.8.13
  Using cached cloudflare-2.8.13-py3-none-any.whl
Collecting ConfigArgParse==1.2.3
  Using cached ConfigArgParse-1.2.3-py3-none-any.whl
Collecting configobj==5.0.6
  Using cached configobj-5.0.6-py3-none-any.whl
Collecting cryptography==3.2.1
  Using cached cryptography-3.2.1-cp35-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting decorator==4.4.2
  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting Django==3.1.3
  Using cached Django-3.1.3-py3-none-any.whl (7.8 MB)
Collecting docker==4.3.1
  Using cached docker-4.3.1-py2.py3-none-any.whl (145 kB)
Collecting docker-pycreds==0.4.0
  Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting docutils==0.16
  Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)
Collecting enum34==1.1.10
  Using cached enum34-1.1.10-py3-none-any.whl (11 kB)
Collecting filelock==3.0.12
  Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting funcsigs==1.0.2
  Using cached funcsigs-1.0.2-py2.py3-none-any.whl (17 kB)
Collecting future==0.18.2
  Using cached future-0.18.2-py3-none-any.whl
Collecting google-api-core==1.23.0
  Using cached google_api_core-1.23.0-py2.py3-none-any.whl (91 kB)
Collecting google-api-python-client==1.12.5
  Using cached google_api_python_client-1.12.5-py2.py3-none-any.whl (61 kB)
Collecting google-auth==1.23.0
  Using cached google_auth-1.23.0-py2.py3-none-any.whl (114 kB)
Collecting google-auth-httplib2==0.0.4
  Using cached google_auth_httplib2-0.0.4-py2.py3-none-any.whl (9.1 kB)
Collecting google-auth-oauthlib==0.4.2
  Using cached google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB)
Collecting googleapis-common-protos==1.52.0
  Using cached googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100 kB)
Collecting httplib2==0.18.1
  Using cached httplib2-0.18.1-py3-none-any.whl (95 kB)
Collecting idna==2.10
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting ipaddress==1.0.23
  Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Collecting IPy==1.0
  Using cached IPy-1.0-py3-none-any.whl
Collecting Jinja2==2.11.3
  Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting jmespath==0.10.0
  Using cached jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting josepy==1.5.0
  Using cached josepy-1.5.0-py2.py3-none-any.whl (57 kB)
Collecting jsonlines==1.2.0
  Using cached jsonlines-1.2.0-py2.py3-none-any.whl (7.6 kB)
Collecting jsonpatch==1.26
  Using cached jsonpatch-1.26-py2.py3-none-any.whl (11 kB)
Collecting jsonpointer==2.0
  Using cached jsonpointer-2.0-py2.py3-none-any.whl (7.6 kB)
Collecting MarkupSafe==1.1.1
  Using cached MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl (32 kB)
Collecting mock==4.0.2
  Using cached mock-4.0.2-py3-none-any.whl (28 kB)
Collecting mysqlclient==2.0.1
  Using cached mysqlclient-2.0.1-cp36-cp36m-linux_x86_64.whl
Collecting oauthlib==3.1.0
  Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting paramiko==2.7.2
  Using cached paramiko-2.7.2-py2.py3-none-any.whl (206 kB)
Collecting parsedatetime==2.6
  Using cached parsedatetime-2.6-py3-none-any.whl (42 kB)
Collecting pbr==5.5.1
  Using cached pbr-5.5.1-py2.py3-none-any.whl (106 kB)
Collecting pysftp
  Using cached pysftp-0.2.9-py3-none-any.whl
Collecting pexpect==4.8.0
  Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting prettytable==1.0.1
  Using cached prettytable-1.0.1-py2.py3-none-any.whl (22 kB)
Collecting protobuf==3.13.0
  Using cached protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl (1.3 MB)
Collecting psutil==5.7.3
  Using cached psutil-5.7.3-cp36-cp36m-linux_x86_64.whl
Collecting ptyprocess==0.6.0
  Using cached ptyprocess-0.6.0-py2.py3-none-any.whl (39 kB)
Collecting py3dns==3.2.1
  Using cached py3dns-3.2.1-py3-none-any.whl
Collecting pyasn1==0.4.8
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyasn1-modules==0.2.8
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pycparser==2.20
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting pygpgme==0.3
  Using cached pygpgme-0.3-cp36-cp36m-linux_x86_64.whl
Collecting PyNaCl==1.4.0
  Using cached PyNaCl-1.4.0-cp35-abi3-manylinux1_x86_64.whl (961 kB)
Collecting pyOpenSSL==19.1.0
  Using cached pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB)
Collecting pyotp==2.4.1
  Using cached pyotp-2.4.1-py2.py3-none-any.whl (11 kB)
Collecting pyRFC3339==1.1
  Using cached pyRFC3339-1.1-py2.py3-none-any.whl (5.7 kB)
Collecting python-dateutil==2.8.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz==2020.4
  Using cached pytz-2020.4-py2.py3-none-any.whl (509 kB)
Collecting pyudev==0.22.0
  Using cached pyudev-0.22.0-py3-none-any.whl
Collecting pyxattr==0.7.1
  Using cached pyxattr-0.7.1-cp36-cp36m-linux_x86_64.whl
Collecting requests==2.26.0
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting requests-file==1.5.1
  Using cached requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Collecting requests-oauthlib==1.3.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting requests-toolbelt==0.9.1
  Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Collecting rsa==4.6
  Using cached rsa-4.6-py3-none-any.whl (47 kB)
Collecting s3transfer==0.5.0
  Using cached s3transfer-0.5.0-py3-none-any.whl (79 kB)
Collecting six==1.15.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting soupsieve==2.0.1
  Using cached soupsieve-2.0.1-py3-none-any.whl (32 kB)
Collecting sqlparse==0.4.2
  Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting tldextract==3.0.2
  Using cached tldextract-3.0.2-py2.py3-none-any.whl (86 kB)
Collecting tornado==6.1
  Using cached tornado-6.1-cp36-cp36m-manylinux2010_x86_64.whl (427 kB)
Collecting uritemplate==3.0.1
  Using cached uritemplate-3.0.1-py2.py3-none-any.whl (15 kB)
Collecting urllib3==1.26.5
  Using cached urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
Collecting validators==0.18.1
  Using cached validators-0.18.1-py3-none-any.whl (19 kB)
Collecting wcwidth==0.2.5
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting websocket-client==0.57.0
  Using cached websocket_client-0.57.0-py2.py3-none-any.whl (200 kB)
Collecting requests[security]>=2.6.0
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting setuptools
  Using cached setuptools-59.6.0-py3-none-any.whl (952 kB)
Collecting pyyaml
  Using cached PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (677 kB)
Collecting charset-normalizer~=2.0.0
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting requests[security]>=2.6.0
  Using cached requests-2.27.0-py2.py3-none-any.whl (63 kB)
Installing collected packages: pycparser, six, setuptools, pyasn1, cffi, urllib3, rsa, python-dateutil, pyasn1-modules, protobuf, jmespath, idna, cryptography, charset-normalizer, certifi, cachetools, soupsieve, requests, pytz, pyOpenSSL, PyNaCl, oauthlib, httplib2, googleapis-common-protos, google-auth, botocore, bcrypt, websocket-client, wcwidth, uritemplate, sqlparse, s3transfer, requests-toolbelt, requests-oauthlib, requests-file, pyyaml, pyRFC3339, ptyprocess, paramiko, MarkupSafe, jsonpointer, jsonlines, josepy, google-auth-httplib2, google-api-core, filelock, decorator, beautifulsoup4, asgiref, validators, tornado, tldextract, pyxattr, pyudev, pysftp, pyotp, pygpgme, py3dns, psutil, prettytable, pexpect, pbr, parsedatetime, mysqlclient, mock, jsonpatch, Jinja2, IPy, ipaddress, google-auth-oauthlib, google-api-python-client, future, funcsigs, enum34, docutils, docker-pycreds, docker, Django, configobj, ConfigArgParse, cloudflare, chardet, boto3, backports.ssl-match-hostname, Babel, asn1crypto, acme
Successfully installed Babel-2.8.0 ConfigArgParse-1.2.3 Django-3.1.3 IPy-1.0 Jinja2-2.11.3 MarkupSafe-1.1.1 PyNaCl-1.4.0 acme-1.9.0 asgiref-3.3.1 asn1crypto-1.4.0 backports.ssl-match-hostname-3.7.0.1 bcrypt-3.2.0 beautifulsoup4-4.9.3 boto3-1.18.26 botocore-1.21.26 cachetools-4.1.1 certifi-2020.11.8 cffi-1.14.3 chardet-3.0.4 charset-normalizer-2.0.12 cloudflare-2.8.13 configobj-5.0.6 cryptography-3.2.1 decorator-4.4.2 docker-4.3.1 docker-pycreds-0.4.0 docutils-0.16 enum34-1.1.10 filelock-3.0.12 funcsigs-1.0.2 future-0.18.2 google-api-core-1.23.0 google-api-python-client-1.12.5 google-auth-1.23.0 google-auth-httplib2-0.0.4 google-auth-oauthlib-0.4.2 googleapis-common-protos-1.52.0 httplib2-0.18.1 idna-2.10 ipaddress-1.0.23 jmespath-0.10.0 josepy-1.5.0 jsonlines-1.2.0 jsonpatch-1.26 jsonpointer-2.0 mock-4.0.2 mysqlclient-2.0.1 oauthlib-3.1.0 paramiko-2.7.2 parsedatetime-2.6 pbr-5.5.1 pexpect-4.8.0 prettytable-1.0.1 protobuf-3.13.0 psutil-5.7.3 ptyprocess-0.6.0 py3dns-3.2.1 pyOpenSSL-19.1.0 pyRFC3339-1.1 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.20 pygpgme-0.3 pyotp-2.4.1 pysftp-0.2.9 python-dateutil-2.8.1 pytz-2020.4 pyudev-0.22.0 pyxattr-0.7.1 pyyaml-6.0.1 requests-2.26.0 requests-file-1.5.1 requests-oauthlib-1.3.0 requests-toolbelt-0.9.1 rsa-4.6 s3transfer-0.5.0 setuptools-59.6.0 six-1.15.0 soupsieve-2.0.1 sqlparse-0.4.2 tldextract-3.0.2 tornado-6.1 uritemplate-3.0.1 urllib3-1.26.5 validators-0.18.1 wcwidth-0.2.5 websocket-client-0.57.0
--2023-10-23 16:07:58--  https://cyberpanel.sh/www.litespeedtech.com/packages/lsapi/wsgi-lsapi-2.1.tgz
Resolving cyberpanel.sh (cyberpanel.sh)... 89.208.248.38
Connecting to cyberpanel.sh (cyberpanel.sh)|89.208.248.38|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49172 (48K) [application/x-gtar]
Saving to: ‘wsgi-lsapi-2.1.tgz’

100%[=======================================================================>] 49,172       187KB/s   in 0.3s

2023-10-23 16:07:59 (187 KB/s) - ‘wsgi-lsapi-2.1.tgz’ saved [49172/49172]

Done.
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python3.6m  -I. -I/usr/include/python3.6m  -c -o main.o main.c
In file included from /usr/include/inttypes.h:25:0,
                 from ./lsapidef.h:37,
                 from ./lsapilib.h:41,
                 from main.c:34:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python3.6m  -I. -I/usr/include/python3.6m  -c -o wsgi.o wsgi.c
In file included from /usr/include/limits.h:26:0,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from /usr/include/python3.6m/Python.h:11,
                 from wsgi.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python3.6m  -I. -I/usr/include/python3.6m  -c -o wsgiinput.o wsgiinput.c
In file included from /usr/include/limits.h:26:0,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from /usr/include/python3.6m/Python.h:11,
                 from wsgiinput.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python3.6m  -I. -I/usr/include/python3.6m  -c -o wsgiwrapper.o wsgiwrapper.c
In file included from /usr/include/limits.h:26:0,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from /usr/include/python3.6m/Python.h:11,
                 from wsgiwrapper.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python3.6m  -I. -I/usr/include/python3.6m  -c -o lsapilib.o lsapilib.c
In file included from /usr/include/ctype.h:26:0,
                 from lsapilib.c:35:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python3.6m  -I. -I/usr/include/python3.6m  -c -o lsapi-glue.o lsapi-glue.c
In file included from /usr/include/limits.h:26:0,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from /usr/include/python3.6m/Python.h:11,
                 from lsapi-glue.c:33:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
gcc -pthread -Wl,-z,relro  -g -L/usr/lib64 -Xlinker -export-dynamic -o lswsgi main.o wsgi.o wsgiinput.o wsgiwrapper.o lsapilib.o lsapi-glue.o -L/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl  -lutil -lm
Loaded plugins: copr, fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fra1.de.leaseweb.net
 * epel: level66.mm.fcix.net
 * extras: ftp.antilo.de
 * updates: mirror.eu.oneandone.net
Installed Packages
lsphp74-devel.x86_64                                7.4.33-2.el7                                @litespeed-update
watchdog has been killed...
--2023-10-23 16:08:05--  https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.3.4/CPScripts/watchdog.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5198 (5.1K) [text/plain]
Saving to: ‘/etc/cyberpanel/watchdog.sh’

100%[=======================================================================>] 5,198       --.-K/s   in 0s

2023-10-23 16:08:05 (41.2 MB/s) - ‘/etc/cyberpanel/watchdog.sh’ saved [5198/5198]


Checking LiteSpeed...

WatchDog for LiteSpeed is gone , restarting...

WatchDog for LiteSpeed has been started...

Checking MariaDB...

WatchDog for MariaDB is gone , restarting...

WatchDog for MariaDB has been started...

Checking PowerDNS...

WatchDog for PowerDNS is gone , restarting...

WatchDog for PowerDNS has been started...

Checking Dovecot...

WatchDog for Dovecot is gone , restarting...

WatchDog for Dovecot has been started...

Checking PostFix...

WatchDog for PostFix is gone , restarting...

WatchDog for PostFix has been started...

Checking Pure-FTPd...

WatchDog for Pure-FTPd is gone , restarting...

WatchDog for Pure-FTPd has been started...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   145    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

Seems something wrong with upgrade, please check...

I have this same error 500 showing when I try to access cyberpanel from my hostinger vps.

I recently did a reinstallation of a webapp on my vps but the process refused to be completed (product code was not accepted so the app would not initialize)

What exactly could be the problem and what am I supposed to upgrade for this error to stop?

Please advise.

Hi all,

I was using hostinger and cyberpanel for web server and ubuntu 22, so yesterday I tried to login to cyberpanel login page at port 8090 and I recieved Internal Server Error 500 and did various diff methods mentioned in the blogs to resolve this error but with no luck I was not able to clear it.

So then I upgraded the cyberpanel using this command and it started working again

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh 6)

Thanks for the Help Guys.