After update version 1.9.3 from 1.9.2 Server Error 500

After update version 1.9.3 from 1.9.2 Server Error 500, I cannot login to CyberPanel.

Also no error after DEBUG = True

nano /usr/local/CyberCP/CyberCP/settings.py

You can open this file and turn on debug log and then do systemctl restart lscpd

i am having similar issue

Saving to: ‘wsgi-lsapi-1.4.tgz’

wsgi-lsapi-1.4.tgz 100%[========================================>] 46.77K 246KB/s in 0.2s

2020-01-04 16:13:50 (246 KB/s) - ‘wsgi-lsapi-1.4.tgz’ saved [47890/47890]

Done.
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O0 -g3 -I. -I/usr/include/python3.6m -I. -I/usr/include/python3.6m -c -o main.o main.c
main.c: In function ‘main’:
main.c:169:9: warning: implicit declaration of function ‘preload_module’ [-Wimplicit-function-declaration]
preload_module(moduleName, appName, progName);
^~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O0 -g3 -I. -I/usr/include/python3.6m -I. -I/usr/include/python3.6m -c -o wsgi.o wsgi.c
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O0 -g3 -I. -I/usr/include/python3.6m -I. -I/usr/include/python3.6m -c -o wsgiinput.o wsgiinput.c
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O0 -g3 -I. -I/usr/include/python3.6m -I. -I/usr/include/python3.6m -c -o wsgiwrapper.o wsgiwrapper.c
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O0 -g3 -I. -I/usr/include/python3.6m -I. -I/usr/include/python3.6m -c -o lsapilib.o lsapilib.c
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O0 -g3 -I. -I/usr/include/python3.6m -I. -I/usr/include/python3.6m -c -o lsapi-glue.o lsapi-glue.c
x86_64-linux-gnu-gcc -pthread -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o lswsgi main.o wsgi.o wsgiinput.o wsgiwrapper.o lsapilib.o lsapi-glue.o -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl -lutil -lm
###################################################################
CyberPanel Upgraded
###################################################################

I have same issue.

In logs found this:

15494: packetLen < 0
Traceback (most recent call last):
File “/usr/local/CyberCP/CyberCP/wsgi.py”, line 12, in
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named ‘django’

I have the same issue.
Any fix ?

Have you guys opened any ticket? If so please let me know your ticket id.

Same problem. Upgraded from 1.9.2 already running on Python3 to 1.9.3.

500
Internal Server Error
An internal server error has occured.

The only messages of note during the upgrade process:

Installing collected packages: setuptools, pycparser, cffi, six, cryptography, pyOpenSSL, josepy, certifi, idna, chardet, urllib3, requests, pbr, mock, pytz, pyRFC3339, acme, asgiref, asn1crypto, Babel, backports.ssl-match-hostname, bcrypt, jmespath, python-dateutil, docutils, botocore, s3transfer, boto3, zope.event, zope.interface, zope.component, configobj, future, parsedatetime, ConfigArgParse, certbot, decorator, sqlparse, Django, docker-pycreds, websocket-client, docker, enum34, funcsigs, ipaddress, IPy, MarkupSafe, Jinja2, jsonpointer, jsonpatch, mysqlclient, PyNaCl, paramiko, ptyprocess, pexpect, prettytable, psutil, py3dns, pygpgme, pyudev, pyxattr, PyYAML, requests-file, SimpleWebSocketServer, tldextract
Segmentation fault (core dumped)

Installing collected packages: pycparser, cffi, six, cryptography, pyOpenSSL, pytz, pyRFC3339, setuptools, josepy, pbr, mock, certifi, chardet, urllib3, idna, requests, acme, asgiref, asn1crypto, Babel, backports.ssl-match-hostname, bcrypt, python-dateutil, docutils, jmespath, botocore, s3transfer, boto3, zope.interface, future, parsedatetime, configobj, ConfigArgParse, zope.event, zope.component, certbot, decorator, sqlparse, Django, docker-pycreds, websocket-client, docker, enum34, funcsigs, ipaddress, IPy, MarkupSafe, Jinja2, jsonpointer, jsonpatch, mysqlclient, PyNaCl, paramiko, ptyprocess, pexpect, prettytable, psutil, py3dns, pygpgme, pyudev, pyxattr, PyYAML, requests-file, SimpleWebSocketServer, tldextract
Segmentation fault (core dumped)

System: Ubuntu LTS 18.04.3, fully updated. 2 Xeon cores, 8GiB RAM VPS.

@mparashar

Can you open ticket and let me know Ticket ID.

@CyberPanel

Sure thing. Ticket #Y7P0IF

@CyberPanel

+1

Is there a fix for this yet for those who have the issue ?

It was anounced that the bag was only for Ubuntu release and it is fixed.
I will tell you in a few hours.

I can confirm.
I’m using the AWS image, and I got the same error on some pages of the CyberPanel dashboard.

this worked for me

https://forums.cyberpanel.net/discussion/3659/update-cyberpanel-to-1-93-ubuntu-18-04

try it and luck!!

Is it safe to update yet for CentOS 7 users?

Type your comment> @Hifihedgehog said:

Is it safe to update yet for CentOS 7 users?

You will get an error when you try to go to Version Management menu.
Apart from that, everything works Ok for me.

Type your comment> @ysintos said:

Type your comment> @Hifihedgehog said:

Is it safe to update yet for CentOS 7 users?

You will get an error when you try to go to Version Management menu.
Apart from that, everything works Ok for me.

I just noticed this as well. Web terminal and renewing SSL’s for proxied domain names doesn’t works now too.

I’m on centos 7 with the same issue. I even made a post here but didn’t get a response…

@CyberPanel said:
@mparashar

Can you open ticket and let me know Ticket ID.

I have the same issue with centos 7.

Ticket #KQHLM8

I had the same issue and it was due to mysql_config not being installed. I was able to resolve that with apt install libmariadb-dev libmariadb-dev-compat and then rerunning the upgrade script (apt install libmariadbclient-dev did not work during the upgrade script due to version mismatch). This seems to be due to me installing the 10.4 MariaDB instead of using the default 10.1 provided by the Ubuntu repos. Hopefully this may help someone else!