02 - Upgrading CyberPanel

CyberPanel Cloud

Sign up for CyberPanel Cloud and let our experts upgrade CyberPanel for you.


Upgrading CyberPanel

The following command can be used to upgrade to the latest version.

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


Upgrading CyberPanel to a specific version

https://raw.githubusercontent.com/usmannasir/cyberpanel/<branch name>/cyberpanel_upgrade.sh

Replace with actual branch name from Github, branching schemes are described in our contribution docs.

1 Like

Should the OS/OLS be upgraded before/after Upgrading CyberPanel or does the sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh) command take care of everything?

Cyberpanel upgrade does take care of OLS update but not the OS updates automatically or via upgrade script. You will need to update your OS manually from SSH whenever you wish.

1 Like

Please kindly help me

After upgrading with the above command,

I got the following error

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 -fwrapv -O2 -O0 -g3 -I. -I/usr/include/python3.8 -I. -I/usr/include/python3.8 -c -o main.o main.c
Cannot create temporary file in /tmp/: No space left on device
make: *** [: main.o] Aborted
cp: cannot stat ‘lswsgi’: No such file or directory
ln: failed to create symbolic link ‘/usr/sbin/ipset’: File exists
chown: cannot access ‘/usr/local/CyberCP/lib64’: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 1247 0 0 0 0 0 0 --:–:-- 0:00:08 --:–:-- 0

now i have 503 ## Service Unavailable error.

what do I do

This is because your server has run out of space. Please check the server storage space left.

Hello, I am trying to upgrade to 2.1 build 2 from 2.1 build 1 and I get this error

sudo sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
sh: 0: Can’t open /dev/fd/63
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0ub100 396 100 396 0 0 1903 0 --:–:-- --:–:-- --:–:-- 1903
(23) Failed writing body

Any suggestions please?
Cyberpanel from AWS market place

First run this command

sudo su - 

And after this command, run the Cyberpanel upgrade command and this should work.

When I ran the update command, it reported an error as in the attached image

How do I fix this error?

From where are you trying to execute this code?

You should login to server via SSH programs like Putty and run as root

to run as root, use this command

sudo su -

Then try the upgrade command mentioned here.

Hi, right now im getting “this site cant be reached” error when i am trying to login my cyberpanel. and when i am trying to upgrade
Traceback (most recent call last):
File “upgrade.py”, line 2684, in
main()
File “upgrade.py”, line 2680, in main
Upgrade.upgrade(args.branch)
File “upgrade.py”, line 2591, in upgrade
Upgrade.applyLoginSystemMigrations()
File “upgrade.py”, line 693, in applyLoginSystemMigrations
import sleep
ModuleNotFoundError: No module named ‘sleep’

this error occurs.
what is the issue? why cant i upgrade it?

Please try again and take screenshot of the error