I have been trying to upgrade Cyberpanel for some time now without success.
I am following the official instructions here: link
I am experiencing the exact same problem as discussed here but no solution provided.
https://community.cyberpanel.net/t/cyberpanel-upgrade-failed/54491/6
I am on Ubuntu 22.04 on a VPS and I use sudo su - to run the script.
The version management link does not work. Just time’s out.
Upgrade script prints that branch name is set to v2.3.9
I already have 2.3.9 but a different commit. I just can’t get the info anymore.
I tried to upgrade because SSL certificates are not being renewed anymore.
As in the link provided above the script runs for a while and then I get this:
Collecting cffi==1.14.3 (from -r /usr/local/requirments-old.txt (line 1))
Using cached cffi-1.14.3.tar.gz (470 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
running egg_info
...
File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 290, in _distribution_fullname
canonicalize_version(version, strip_trailing_zero=False),
TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
To me, this seems like the function all canonicalize_version() is failing because of the argument strip_trailing_zeros shouldn’t be there but since this python call is part of Cyberpanel upgrade script I don’t think I can fix it on my side (I’m asking).
Any help from fellow users who have experienced this would be greatly appreciated.