I attempted to update CyberPanel to help fix an issue getting SSL certs to work. Something in the update seems to have failed, and now produces a 500 error when trying to use :8090. :7080 still works though.
This is running on Ubuntu 22.04 with 1GB RAM and 25 GB storage.
This is the output when I ran the update command sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
as the root user:
root@vultr:~# sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 396 100 396 0 0 813 0 --:--:-- --:--:-- --:--:-- 814
Fetching latest data from CyberPanel server...
This may take few seconds...
Checking root privileges...
You are running as root...
Checking server location...
System: Ubuntu 22 detected...
Press the Enter key to continue with latest version, or enter specific version such as: 1.9.4 , 1.9.5 ...etc
(Reading database ... 97794 files and directories currently installed.)
Preparing to unpack .../python3-debian_0.1.43ubuntu1.1_all.deb ...
Unpacking python3-debian (0.1.43ubuntu1.1) over (0.1.43ubuntu1) ...
Preparing to unpack .../cloud-init_23.2.1-0ubuntu0~22.04.1_all.deb ...
Unpacking cloud-init (23.2.1-0ubuntu0~22.04.1) over (23.1.2-0ubuntu0~22.04.1) ...
dpkg: warning: unable to delete old directory '/etc/NetworkManager/dispatcher.d': Directory not empty
dpkg: warning: unable to delete old directory '/etc/NetworkManager': Directory not empty
Setting up cloud-init (23.2.1-0ubuntu0~22.04.1) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ...
Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ...
Setting up python3-debian (0.1.43ubuntu1.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 5.15.0-76-generic
NEEDRESTART-KEXP: 5.15.0-76-generic
NEEDRESTART-KSTA: 1
NEEDRESTART-SVC: packagekit.service
NEEDRESTART-SVC: pdns.service
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libidn2-dev' instead of 'libidn2-0-dev'
Note, selecting 'libcom-err2' instead of 'libcomerr2'
htop is already the newest version (3.0.5-7build2).
libattr1 is already the newest version (1:2.5.1-1build1).
libattr1-dev is already the newest version (1:2.5.1-1build1).
libgcrypt20-dev is already the newest version (1.9.4-3ubuntu3).
libgpgme-dev is already the newest version (1.16.0-1.2ubuntu4).
nghttp2 is already the newest version (1.43.0-1build3).
virtualenv is already the newest version (20.13.0+ds-2).
git is already the newest version (1:2.34.1-1ubuntu1.9).
libcom-err2 is already the newest version (1.46.5-2ubuntu1.1).
libcom-err2 set to manually installed.
libcurl4-gnutls-dev is already the newest version (7.81.0-1ubuntu1.13).
libgnutls28-dev is already the newest version (3.7.3-4ubuntu1.2).
libgssapi-krb5-2 is already the newest version (1.19.2-2ubuntu0.2).
libk5crypto3 is already the newest version (1.19.2-2ubuntu0.2).
libkrb5-dev is already the newest version (1.19.2-2ubuntu0.2).
libldap2-dev is already the newest version (2.5.14+dfsg-0ubuntu0.22.04.2).
libssl-dev is already the newest version (3.0.2-0ubuntu1.10).
unzip is already the newest version (6.0-26ubuntu3.1).
vim is already the newest version (2:8.2.3995-1ubuntu2.9).
dnsutils is already the newest version (1:9.18.12-0ubuntu0.22.04.2).
The following NEW packages will be installed:
libmariadb-dev libmariadb-dev-compat
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 194 kB of archives.
After this operation, 892 kB of additional disk space will be used.
Get:1 http://us.clouds.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libmariadb-dev amd64 1:10.6.12-0ubuntu0.22.04.1 [182 kB]
Get:2 http://us.clouds.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libmariadb-dev-compat amd64 1:10.6.12-0ubuntu0.22.04.1 [12.0 kB]
Fetched 194 kB in 1s (184 kB/s)
debconf: unable to initialize frontend: Noninteracitve
debconf: (Can't locate Debconf/FrontEnd/Noninteracitve.pm in @INC (you may need to install the Debconf::FrontEnd::Noninteracitve module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at (eval 16) line 2, <> line 2.)
debconf: falling back to frontend: Noninteractive
Selecting previously unselected package libmariadb-dev.
(Reading database ... 97793 files and directories currently installed.)
Preparing to unpack .../libmariadb-dev_1%3a10.6.12-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libmariadb-dev (1:10.6.12-0ubuntu0.22.04.1) ...
Selecting previously unselected package libmariadb-dev-compat:amd64.
Preparing to unpack .../libmariadb-dev-compat_1%3a10.6.12-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libmariadb-dev-compat:amd64 (1:10.6.12-0ubuntu0.22.04.1) ...
Setting up libmariadb-dev (1:10.6.12-0ubuntu0.22.04.1) ...
Setting up libmariadb-dev-compat:amd64 (1:10.6.12-0ubuntu0.22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...
debconf: unable to initialize frontend: Noninteracitve
debconf: (Can't locate Debconf/FrontEnd/Noninteracitve.pm in @INC (you may need to install the Debconf::FrontEnd::Noninteracitve module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at (eval 15) line 2.)
debconf: falling back to frontend: Noninteractive
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...
systemctl restart packagekit.service pdns.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
libffi-dev is already the newest version (3.4.2-4).
libssl-dev is already the newest version (3.0.2-0ubuntu1.10).
python3-dev is already the newest version (3.10.6-1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-venv is already the newest version (3.10.6-1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Collecting virtualenv==16.7.9
Using cached virtualenv-16.7.9-py2.py3-none-any.whl (3.4 MB)
Installing collected packages: virtualenv
Attempting uninstall: virtualenv
Found existing installation: virtualenv 20.13.0+ds
Not uninstalling virtualenv at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'virtualenv'. No files were found to uninstall.
Successfully installed virtualenv-16.7.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
No need to re-setup virtualenv at /usr/local/CyberPanel...
--2023-07-23 14:12:14-- https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.3.4/requirments.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1461 (1.4K) [text/plain]
Saving to: ‘/usr/local/requirments.txt’
/usr/local/requirments.txt 100%[====================================================================================================>] 1.43K --.-KB/s in 0s
2023-07-23 14:12:14 (17.1 MB/s) - ‘/usr/local/requirments.txt’ saved [1461/1461]
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/usr/local/CyberPanel/bin/python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/local/CyberPanel/bin/python3'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.executable = '/usr/local/CyberPanel/bin/python3'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007ffa2b953740 (most recent call first):
<no Python frame>
above command failed...
I checked to make sure the database was still there using mysql -u root -p$(cat /etc/cyberpanel/mysqlPassword) -e 'SHOW DATABASES;'
and all my databases remain.
Also, all my websites still work fine on their front end.