02 - Upgrading CyberPanel

Hi all! lurking for ages, posting first time :slight_smile:

I’m stuck on this message after an upgrade of CyberPanel from 2.3.1 to 2.3.2 on Ubuntu 20.04 (on GCP).

/usr/local/cyberpanel_upgrade.sh: line 604: /usr/local/CyberCP/bin/activate: No such file or directory

…and in effect, in that folder i’ve found only one folder named ā€œpycacheā€ and nothing else.

Any ideas?
Thanks for any advice!

I am using VPS cyber panel, and for the last few days I am facing an HTTPS error ā€œYour connection is not privateā€ I installed really SSL plugging and also issue SSL from the VPS panel, but the problem still exists, then I contact hostinger the says ā€œself-signed SSLā€ but I don’t know how to self-signed SSL certificate please advice

Are these necessary updates? If I don’t update CyberPanel, what will happen?

not necessary, but sometimes needed for security updates or just using new feature

Hi I have try this command

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

via SSH to my VPS

It says ā€œCyberPanel Upgradedā€ on Terminal, but not on the Dashboard on CyberPanel

Not sure what the issue is?


it should be v2.3.2 right?

Same error on Centos 7

image

fine here . current commit match with latest , means that you have latest version.

I’m trying to update CyberPanel and the command is the same as given here:
See the errors that occur at the end of the print!!

It ends up giving an error at the end!

After giving this error mentioned above, not even a simple update command works anymore… I don’t understand that…

I can’t update and in the end it gives me other problems…

Anyone can help ?

Please.

What kind of downtime can we expect when upgraden/updating? Is there any downtime at all for the client websites?

@xmedia No downtime. An upgrade should not put your websites down

The upgrade can break all my site if it fail ?

@usmannasir Is it safe to upgrade from 2.3 to version 3?

I’ve tried upgrading to stable, v2.3.2 and v2.3.4-beta, but I keep getting the error below. Our CyberPanel is all the way back on v1.8.3 (not sure if that is a problem jumping forward so many versions).

Traceback (most recent call last):
  File "upgrade.py", line 2924, in <module>
    main()
  File "upgrade.py", line 2920, in main
    Upgrade.upgrade(args.branch)
  File "upgrade.py", line 2828, in upgrade
    Upgrade.UpdateConfigOfCustomACL()
  File "upgrade.py", line 2726, in UpdateConfigOfCustomACL
    django.setup()
  File "/usr/local/CyberPanel/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/CyberPanel/lib/python3.6/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/local/CyberPanel/lib/python3.6/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/CyberPanel/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/CyberCP/loginSystem/models.py", line 75, in <module>
    class Administrator(models.Model):
  File "/usr/local/CyberCP/loginSystem/models.py", line 87, in Administrator
    acl = models.ForeignKey(ACL, default=1)
TypeError: __init__() missing 1 required positional argument: 'on_delete'
above command failed...