.. Reminder for header structure: Parts (H1) : #################### with overline Chapters (H2) : ******************** with overline Sections (H3) : ==================== Subsections (H4) : -------------------- Subsubsections (H5) : ^^^^^^^^^^^^^^^^^^^^ Paragraphs (H6) : """""""""""""""""""" .. meta:: :description: Upgrading the WAPT Server :keywords: WAPT, upgrade, upgrading, documentation .. |ok| image:: wapt-resources/icon-ok.png :scale: 5% :alt: Feature available .. |nok| image:: wapt-resources/icon-nok.png :scale: 5% :alt: Feature not available .. |date| date:: .. _upgrade-wapt: ################### Upgrade WAPT Server ################### If your WAPT Server is a virtual host, take a snapshot of the VM. This way, you will be able to go back easily in the rare case that the update fails. .. warning:: After each WAPT Server update, update your :ref:`WAPT Console `, then :ref:`regenerate ` the WAPT Agent. Before upgrading WAPT Server, please refer to the following upgrading compatibility chart: .. list-table:: Available WAPT Upgrade paths :header-rows: 1 :stub-columns: 1 :widths: auto :align: center * - \ - To WAPT 2.3 * - From WAPT 1.8.2 - |ok| * - From WAPT 2.0 - |ok| * - From WAPT 2.1 - |ok| * - From WAPT 2.2 - |ok| .. warning:: If upgrading from a version older than WAPT 2.1, the :ref:`licence activation ` process has changed. ************************************************************ Switching of WAPT Edition (Community, Discovery, Enterprise) ************************************************************ WAPT Community is no longer supported. If you want to upgrade from WAPT 1.8.2 Community you can upgrade to WAPT Discovery or WAPT Enterprise. Please note that WAPT Discovery is limited to 300 clients. To upgrade from a WAPT Community setup to WAPT Discovery or Enterprise follow the standard :ref:`1.8.2 to 2.3 upgrade documentation `. The WAPT Server will make the appropriate changes. To upgrade WAPT Discovery to WAPT Enterprise simply upload a valid :ref:`licence ` to the WAPT Server from the WAPT Console. If your Enteprise licence expire, it will fall back on the Discovery Edition. If you are running WAPT Discovery and you have more that 300 client computers in your inventory, the WAPT Console will stop working and will only give you the option to delete computer entries from the inventory. The WAPT Console will return to working condition when the inventory returns below the 300 computer limit. .. comment ############################################################################################ .. comment # UPGRADE 2.3 TO LATEST .. comment ############################################################################################ .. _wapt_minor_upgrade: ************* Minor upgrade ************* ======================================== Upgrading from version 2.3 to latest 2.3 ======================================== .. _wapt_minor_upgrade_23_23: To do a minor upgrade please follow the procedure corresponding to your server operating system. .. tabs:: .. tab:: Debian / Ubuntu * Update the underlying distribution and upgrade WAPT Server. .. code-block:: bash export DEBIAN_FRONTEND=noninteractive apt update && apt upgrade -y apt install tis-waptserver tis-waptsetup -y unset DEBIAN_FRONTEND * Launch the post-configuration step :ref:`post-configuration step ` * Once completed your WAPT Server is ready. .. tab:: RedHat and derivatives * Update the underlying distribution and upgrade WAPT Server. .. code-block:: bash yum update -y yum install tis-waptserver tis-waptsetup -y * Launch the post-configuration step :ref:`post-configuration step ` * Once completed your WAPT Server is ready. .. tab:: Windows * Download and execute :download:`waptserversetup.exe `. .. attention:: The installation of the WAPT Server **MUST** be done using a **Local Administrator** account on the host * Choose the language for the WAPT installer. .. image:: wapt-resources/wapt_deploy_choose-language_dialog-box.png :align: center :alt: Choosing the language for deploying the WAPT installer * Click on :guilabel:`OK` to go on to the next step. .. image:: wapt-resources/wapt_deploy_accept-license_dialog-box.png :align: center :alt: Accepting the WAPT license terms * Accept the licence terms and click on :guilabel:`Next` to go to next step. * Choose additional configuration tasks (leave the default if not sure). .. figure:: wapt-resources/wapt_deploy_additional-configuration-server_dialog-box.png :align: center :alt: Choosing the installer options for deploying the WAPT Serer Choosing the installer options for deploying the WAPT Server * Do not change the password for the WAPT Server (if not necessary). .. image:: wapt-resources/wapt_deploy_choosing-password_dialog-box.png :align: center :alt: Dialog box for changing the password * Click on the :guilabel:`Install` to launch the installation, wait for the installation to complete. .. image:: wapt-resources/wapt_deploy_installation-in-progress_dialog-box.png :align: center :alt: Dialog box showing the WAPT installation in progress * Click on :guilabel:`Finish` to close the window. .. image:: wapt-resources/wapt_deploy_installation-completed_dialog-box.png :align: center :alt: Installation has finished * Once completed your WAPT Server is ready. .. comment ############################################################################################ .. comment # UPGRADE 2.0 / 2.1 / 2.2 TO LATEST .. comment ############################################################################################ ================================= Upgrading from version 2.x to 2.3 ================================= .. _wapt_minor_upgrade_22_23: .. _wapt_minor_upgrade_21_23: .. _wapt_minor_upgrade_20_23: .. Note:: Before upgrading, ensure that :ref:`installation requirements ` are met. WAPT 2.3 needs PostgreSQL 10 or above. If you have upgraded from a older Debian or Ubuntu version with PostgreSQL 9.6, be sure to follow the OS documentation to upgrade PostgreSQL to latest version. .. tabs:: .. tab:: Debian / Ubuntu * First of all, update the underlying distributionand install the WAPT Server packages. .. code-block:: bash apt update && apt upgrade -y apt install apt-transport-https lsb-release gnupg * Then the update the package repository and import the GPG key from the repository. .. code-block:: bash wget -O - https://wapt.tranquil.it/$(lsb_release -is)/tiswapt-pub.gpg | apt-key add - echo "deb https://wapt.tranquil.it/$(lsb_release -is)/wapt-2.3/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/wapt.list * Update the repository and install the packages. .. code-block:: bash export DEBIAN_FRONTEND=noninteractive apt update apt install tis-waptserver tis-waptsetup -y unset DEBIAN_FRONTEND * Launch the post-configuration step :ref:`post-configuration step ` .. tab:: RedHat and derivatives * First of all, update the underlying distribution and necessary packages. .. code-block:: bash yum update -y yum install epel-release redhat-lsb-core -y * Then add or update the package repository WAPT packages and import the GPG key from the repository. .. code-block:: bash RH_VERSION=$(cat /etc/system-release-cpe | awk -F: '{ print $5}') cat > /etc/yum.repos.d/wapt.repo <`. * Choose the language for the WAPT installer. .. image:: wapt-resources/wapt_deploy_choose-language_dialog-box.png :align: center :alt: Choosing the language for deploying the WAPT installer * Click on :guilabel:`OK` to go on to the next step. .. image:: wapt-resources/wapt_deploy_accept-license_dialog-box.png :align: center :alt: Accepting the WAPT license terms * Accept the licence terms and click on :guilabel:`Next` to go to next step. * If old folder installation found, this message appear. Click on :guilabel:`Yes` to go on to the next step. .. image:: wapt-resources/wapt_deploy_folder-exist_dialog-box :align: center :alt: Dialog box warning about the obsolete WAPT destination folder * Select additional task if needed. .. figure:: wapt-resources/wapt_deploy_additional-configuration-server_dialog-box.png :align: center :alt: Choosing the installer options for deploying the WAPT Serer Choosing the installer options for deploying the WAPT Server * Change the WAPT Server password if needed, then press :guilabel:`Next`. .. image:: wapt-resources/wapt_deploy_choosing-password_dialog-box.png :align: center :alt: Dialog box for changing the password * Click on the :guilabel:`Install` to launch the installation, wait for the installation to complete. .. image:: wapt-resources/wapt_deploy_installation-in-progress_dialog-box.png :align: center :alt: Dialog box showing the WAPT installation in progress * Click on :guilabel:`Finish` to close the window. .. image:: wapt-resources/wapt_deploy_installation-completed_dialog-box.png :align: center :alt: Installation has finished .. attention:: **DO NOT** use the WAPT Console on the WAPT Server. **DO NOT** install nor run your WAPT package development tools on the WAPT Server. The WAPT Server on your Windows server or workstation is ready. .. figure:: wapt-resources/wapt_server_web-interface_browser-window.png :align: center :alt: The WAPT Server interface in a web browser The WAPT Server interface in a web browser Your WAPT Server is now ready. You may now go to the documentation on :ref:`Installing the WAPT management Console `. *********************************** Upgrading from version 1.8.2 to 2.3 *********************************** .. _wapt_major_upgrade_182_23: The changement between WAPT 1.8.2 (**not possible from a older version, please upgrade to 1.8.2 beforehand**) and 2.3 are numerous. First of all, 1.8.2 was in Python2, we changed to Python3. A lot of new features are available too (essentially in Enterprise version). ================ Before upgrading ================ Ensure that :ref:`installation requirements ` are met. Backup your WAPT Private and Public certificates which allows you to deploy your WAPTAgent and packages. Usually, it is located in :file:`C:\\private` on your computer where the WAPT Console is set. If you don't remember what this key is please refer to the section about :ref:`generating the Administrator's certificate for signing WAPT packages ` for better understandment. In this documentation, your WAPT certificate's name will be **wapt-private.crt**. ========= Upgrading ========= .. tabs:: .. tab:: Debian / Ubuntu .. Note:: If you are running on Debian9 Stretch, you have first to upgrade to Debian10 or Debian11 before upgrading to WAPT 2.x. **The WAPT Server 2.x is not available for Debian9**. It is even recommended to upgrade to Debian 11 Bullseye. In this case, upgrade from Debian 9 => Debian 10 => Debian 11. * First of all, update the underlying distribution and install the WAPT Server packages. .. code-block:: bash apt update && apt upgrade -y apt install apt-transport-https lsb-release gnupg * Then update the package repository and import the GPG key. .. code-block:: bash wget -O - https://wapt.tranquil.it/$(lsb_release -is)/tiswapt-pub.gpg | apt-key add - echo "deb https://wapt.tranquil.it/$(lsb_release -is)/wapt-2.3/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/wapt.list * Update the repository and install the packages. .. code-block:: bash export DEBIAN_FRONTEND=noninteractive apt update apt install tis-waptserver tis-waptsetup -y unset DEBIAN_FRONTEND * Launch the post-configuration step :ref:`post-configuration step `. .. tab:: RedHat and derivatives * First of all, update the underlying distribution and necessary packages. .. code-block:: bash yum update -y yum install epel-release -y * Then add or update the package repository WAPT packages and import the GPG key from the repository. .. code-block:: bash RH_VERSION=$(cat /etc/system-release-cpe | awk -F: '{ print $5}') cat > /etc/yum.repos.d/wapt.repo <`. .. tab:: Windows * Download and execute :download:`waptserversetup.exe `. * Choose the language for the WAPT installer. .. image:: wapt-resources/wapt_deploy_choose-language_dialog-box.png :align: center :alt: Choosing the language for deploying the WAPT installer * Click on :guilabel:`OK` to go on to the next step. .. image:: wapt-resources/wapt_deploy_accept-license_dialog-box.png :align: center :alt: Accepting the WAPT license terms * Accept the licence terms and click on :guilabel:`Next` to go to next step. * If an old folder installation is found, this message appears. Click on :guilabel:`Yes` to go on to the next step. .. image:: wapt-resources/wapt_deploy_folder-exist_dialog-box :align: center :alt: Dialog box warning about the obsolete WAPT destination folder * Select additional task if needed. .. figure:: wapt-resources/wapt_deploy_additional-configuration-server_dialog-box.png :align: center :alt: Choosing the installer options for deploying the WAPT Serer Choosing the installer options for deploying the WAPT Server * Change the WAPT Server password if needed, then press :guilabel:`Next`. .. image:: wapt-resources/wapt_deploy_choosing-password_dialog-box.png :align: center :alt: Dialog box for changing the password * Click on the :guilabel:`Install` to launch the installation, wait for the installation to complete. .. image:: wapt-resources/wapt_deploy_installation-in-progress_dialog-box.png :align: center :alt: Dialog box showing the WAPT installation in progress * Click on :guilabel:`Finish` to close the window. .. image:: wapt-resources/wapt_deploy_installation-completed_dialog-box.png :align: center :alt: Installation has finished .. figure:: wapt-resources/wapt_server_web-interface_browser-window.png :align: center :alt: The WAPT Server interface in a web browser The WAPT Server interface in a web browser The WAPT Server on your Windows server or workstation is ready. .. attention:: **DO NOT** use the WAPT Console on the WAPT Server. **DO NOT** install nor run your WAPT package development tools on the WAPT Server. Your WAPT Server is now ready. .. include:: wapt-console.rst .. danger:: After the upgrade, please be sure your certificate (in this documentation **wapt-private.crt**) is still present at your WAPT install location : :file:`C:\\Program File (x86)\\wapt\\ssl` Since you come from WAPT 1.8.2 which was in python2, you'll have to re-sign all your WAPT Packages :ref:`using the WAPT Console `, or :ref:`using the command line ` (**only if you encounter package size issue with the WAPT Console way**). .. include:: wapt-resign-packages.rst