fbpx

Upgrading CyberPanel

You are here:
< Back

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 <branch name> with actual branch name from Github, branching schemes are described in our contribution docs.  

Previous Switching from OpenLiteSpeed to LiteSpeed Enterprise Webserver
Table of Contents

Author's page
Cyber Panel

Comments

  • Steve December 13, 2019 at 6:18 pm

    I ran this update script on version 1.9 and after it said successful upgrade, the version still says 1.9 while the latest stable build is 2.0. What’s going on?

    Reply
    • Cyber Panel December 14, 2019 at 6:09 am

      The latest version is 1.9 and build is 2.

      Reply
  • priyank patel December 23, 2019 at 6:56 am

    hi, HI, i am using CyberPanel v1.8.9 on Google Cloud Platform,
    but i cant able to upgrade it to the latest version of cyberpanel.
    i had followed this command
    sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O – https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

    but it gave me this error : /dev/fd/63: 11: /dev/fd/63: /usr/local/CyberPanel/bin/python2: not found

    Reply
    • Cyber Panel December 23, 2019 at 7:02 am

      what is the output of

      ls -la /usr/local/CyberPanel

      Reply
      • priyank patel December 25, 2019 at 4:48 am

        it gives me this

        ls: cannot access ‘/usr/local/CyberPanel’: No such file or directory

        Reply
        • Cyber Panel December 25, 2019 at 12:18 pm

          Try to execute these commands manually

          virtualenv –system-site-packages /usr/local/CyberPanel
          source /usr/local/CyberPanel/bin/activate
          rm -rf requirments.txt
          wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/requirments.txt
          pip install –ignore-installed -r requirments.txt
          virtualenv –system-site-packages /usr/local/CyberPanel

          Let me know if you face any errors.

          Reply
          • priyank patel December 26, 2019 at 7:44 am

            pip install –ignore-installed -r requirments.txt
            for this command

            Invalid requirement: ‘–ignore-installed’
            Traceback (most recent call last):
            File “/usr/lib/python2.7/dist-packages/pip/req/req_install.py”, line 82, in __init__
            req = Requirement(req)
            File “/usr/share/python-wheels/packaging-17.1-py2.py3-none-any.whl/packaging/requirements.py”, line 97, in __init__
            requirement_string[e.loc:e.loc + 8]))
            InvalidRequirement: Invalid requirement, parse error at “‘\xe2\x80\x93ignor'”

          • Cyber Panel December 26, 2019 at 7:47 am

            You entered wrong commands, go here https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh

            Run commands within if statement as it is.

  • priyank patel December 27, 2019 at 5:38 am

    if [ ! -d “/usr/local/CyberPanel” ]; then
    virtualenv -p /usr/bin/python2 –system-site-packages /usr/local/CyberPanel
    source /usr/local/CyberPanel/bin/activate
    rm -rf requirments.txt
    wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/requirments.txt
    pip install –ignore-installed -r requirments.txt
    virtualenv -p /usr/bin/python2 –system-site-packages /usr/local/CyberPanel
    fi

    ////this gives me this
    OSError: [Errno 13] Permission denied: ‘/usr/local/CyberPanel’

    Reply
    • Cyber Panel December 30, 2019 at 12:34 pm

      You should be root to execute upgrade commands.

      Reply
  • Khurram January 4, 2020 at 4:15 pm

    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
    ###################################################################

    Reply
    • Cyber Panel January 6, 2020 at 7:09 am

      It looks like upgraded just fine with couple of warnings.

      Reply
  • Jeff January 10, 2020 at 10:15 pm

    Using cached https://files.pythonhosted.org/packages/70/8f/2c81fa9d57ab632902aa1a48b4186c7f79d1e1f5004fe1b7254da08df83c/jsonpatch-1.2.tar.gz
    ERROR: Command errored out with exit status 1:
    command: /usr/local/CyberPanel/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘/tmp/pip-install-ym4c8cwx/jsonpatch/setup.py'”‘”‘; __file__='”‘”‘/tmp/pip-install-ym4c8cwx/jsonpatch/setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base /tmp/pip-install-ym4c8cwx/jsonpatch/pip-egg-info
    cwd: /tmp/pip-install-ym4c8cwx/jsonpatch/
    Complete output (7 lines):
    Traceback (most recent call last):
    File “”, line 1, in
    File “/tmp/pip-install-ym4c8cwx/jsonpatch/setup.py”, line 13, in
    src = open(‘jsonpatch.py’).read()
    File “/usr/local/CyberPanel/lib64/python3.6/encodings/ascii.py”, line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 173: ordinal not in range(128)
    —————————————-
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    Reply
Leave a Reply