Skip to content

HyWorks Controller Installation in Maintenance Mode

Re-running the HyWorks Controller setup or invoking it from the Control Panel > Installed programs list opens the Installer in Maintenance mode and provides the following options based on the existing configuration in use:

  1. Add New Components

  2. Upgrade

  3. Repair

  4. Uninstall

Note

  • Copy the HyWorks setup to a local drive on the target server. Running the HyWorks setup from a UNC path is not supported and fails.
  • Running the HyWorks setup may also fail during the file extraction if the logged-in user has a roaming profile. Log in as a local administrator to avoid this.

Add New Components

If only one of the Accops HyWorks Controller components is installed, i.e., the Accops HyWorks Controller Service or the Accops HyWorks Management Console, re-running the installer allows the remaining components of the Accops HyWorks Controller to be added. Use the steps given below to add new components to the Accops HyWorks Controller:

  1. Log in to the Windows Server as a Local Administrator.

  2. Copy the Accops HyWorks Controller installer to the target machine.

  3. Launch the Installation wizard and select the option Run as Administrator.

  4. If the Accops HyWorks Controller installer detects an existing installation, it opens in Maintenance mode and provides the following options:

    1. Add New Components

    2. Upgrade (enabled if running a newer installer)

    3. Repair (enabled if running the same installer setup)

    4. Uninstall

  5. Select Add New Components, then click Next.

  6. The screen displays a list of installed and available components. Only the components that have not been installed previously can be selected for installation, for example:

    1. If the Controller Service and Management Console are installed, the option to install the Session Host Server is displayed.

    2. If the Accops HyWorks Controller Service was previously installed, the Add New Components wizard enables the Accops HyWorks Management Console and Session Host Server.

    3. If the Accops HyWorks Management Console was installed previously, the Accops HyWorks Controller and Session Host Server are enabled in the Add New Components wizard.

  7. Follow the on-screen instructions or refer to the steps for a fresh installation.

Upgrade HyWorks Controller

Note

  • Upgrading from HyWorks v2.5 with the Embedded DB to HyWorks v3.3 or later is not supported. Later versions support only Microsoft SQL Server databases.

  • Before upgrading any production or evaluation deployment, conduct a thorough analysis. Contact Accops Support for assistance.

The upgrade flow is enabled only when the Accops HyWorks Controller installation is initiated on a system where an older version of the HyWorks Controller is already installed.

  1. Log in to the Windows Server as a local administrator.

  2. Copy the Accops HyWorks Controller installer to the target machine.

  3. Launch the Installation wizard and select Run as Administrator.

  4. If the Accops HyWorks Controller installer detects an existing installation, it opens in Maintenance mode and provides the following options:

    1. Upgrade (enabled if running a newer installer)

    2. Repair (enabled if running the same installer setup)

    3. Uninstall

  5. Select Upgrade and click Next.

  6. Select the component to upgrade, then click Next.

    Note

    • Multiple components can be selected simultaneously.

    • When upgrading to a new Management Console, upgrade the HyWorks Controller Service at the same time. A new Management Console requires an equivalent or compatible HyWorks Controller Service.

    • Upgrade the HyWorks Session Host according to the recommended release guidelines and available versions.

  7. Configure the same Service Log on Credentials as before (recommended) and click Next to proceed.

  8. Skip the Restore Database screen by clicking Next. Upgrading with the Database Restore feature is not supported.

  9. During the upgrade, keep the existing ports and click Next. Changing ports is not recommended, as it may affect existing HA configurations and prevent the Management Console from communicating with the HyWorks Controller Service.

  10. Click Upgrade to start the upgrade process.

  11. The upgrade progress is displayed on the screen.

  12. Once the upgrade is complete, the page displays the status of each component and links to the Management Console.

Upgrade the HyWorks Controller in a Cluster Environment

The upgrade flow for standalone and cluster environments is similar to the above steps. However, in a clustered environment, the servers must be upgraded in a specific sequence to avoid issues and minimize downtime.

Two-node Active-Passive Cluster

Downtime Required: Yes, minimal, during the upgrade and switching.

  1. Log in to the HyWorks Controller Management Console of the primary HyWorks Controller as a Super administrator.

  2. Go to Server > HyWorks Controller.

  3. Select the server (currently in secondary mode) and click Change mode.

  4. Select the Maintenance option to change the second HyWorks Controller's mode to maintenance. In Maintenance mode, the HyWorks Controllers do not synchronize.

  5. Connect to the second HyWorks Controller as a local administrator and upgrade it as described in the Upgrade HyWorks Controller section.

  6. Once the second server is upgraded and becomes accessible in the Management Console:

    1. Go to Server > HyWorks Controller.

    2. Select the Primary HyWorks Controller and click Change mode.

    3. Select Maintenance to change the second HyWorks Controller mode to Maintenance mode.

    4. Both HyWorks Controller servers should now be in Maintenance mode.

      Important

      At this point, HyWorks will not be able to serve any new requests. Existing user/desktop/application sessions should not be affected and should continue to run.

  7. Connect to the primary HyWorks Controller using an account with local administrator privileges, then upgrade it as described in the Upgrade HyWorks Controller section.

  8. Current state: Both servers are upgraded and in maintenance mode.

    1. Once the previous primary HyWorks Controller becomes accessible in the Management Console, change its mode to Primary.

    2. Change the mode of the previous secondary HyWorks Controller to secondary.

  9. Both HyWorks Controllers are now upgraded and running.

    1. Verify that new user connections and other functions work correctly with the Primary HyWorks Controller.

    2. Verify the secondary HyWorks Controller logs and dashboard information to ensure that DB syncing is working correctly.

Multi-node Cluster with HyWorks Managed Database High Availability

Downtime Required: Yes, high, as all nodes will be taken offline for maintenance.

For clustered environments that have a multi-node HyWorks managed database with high availability, follow the sequence below for an effective upgrade:

  1. Administrators can put all nodes (management and session nodes) into maintenance mode from the management console of any management server.

  2. Upgrade the Primary HyWorks Management nodes to the latest version first.

  3. Upgrade the Secondary HyWorks Management nodes to the latest version.

  4. Upgrade all session nodes to the latest version one by one.

Important

  • Upgrade the management nodes first, not the session nodes. Upgrading a session node first may cause unexpected behavior in the session nodes after the upgrade and may corrupt the deployment.

  • Once two management nodes and at least one session node are upgraded, they can be removed from maintenance mode to enable production usage.

Multi-node Cluster with SQL Managed Database High Availability

Downtime Required: Yes, high, as all nodes must be put into maintenance.

For clustered environments that have a multi-node HyWorks managed database with high availability, follow the sequence below for an effective upgrade:

  1. Administrators can put all nodes (management and session nodes) into maintenance mode from the management console of any management server.

  2. Upgrade the Primary HyWorks Management nodes to the latest version first.

  3. Upgrade the secondary HyWorks Management nodes to the latest version.

  4. Upgrade all session nodes to the latest version one by one.

Important

  • Upgrade the management nodes first, not the session nodes. Upgrading a session node first may cause unexpected behavior in the session nodes after the upgrade and may corrupt the deployment.

  • Once two management nodes and at least one session node are upgraded, they can be removed from maintenance mode to enable production usage.

Repair

The repair installation flow is enabled only when the system has at least one Accops HyWorks Controller component installed and the Administrator runs an installer of the same version as the installed one.

  1. Log in to the Windows Server as a user with local administrator privileges.

  2. Copy the Accops HyWorks Controller installer to the target machine.

  3. Launch the Installation wizard and select Run as Administrator.

  4. If the Accops HyWorks Controller installer detects an existing installation, it opens in Maintenance mode and provides the following options:

    1. Add New Components

    2. Upgrade (enabled if running a newer installer)

    3. Repair (enabled if running the same installer setup)

    4. Uninstall

  5. Select Repair and click Next.

  6. Select the components to be upgraded, then click Next.

  7. Configure the Service Logon Credentials and click Next.

    Note

    Service login credential configurations must remain unchanged. Use the same credentials that were used when installing and configuring the HyWorks Controller service.

  8. Click Next to proceed.

    1. To restore the database, click the "Do you want to restore database" option and browse to select the database backup file.

    2. For the HyWorks Controller with SQL Server database, the file should use the .bak extension.

    Note

    HyWorks creates a backup file in a compressed format. To restore, extract the backup file and move it to the SQL Server > Backup folder. The default location of the SQL Server (x64) backup folder is as follows:

    C:\Program Files (x86)\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Backup

    Refer to the HyWorks Backup and Restore section for instructions on restoring the HyWorks Controller using the backed-up database.

  9. Change the port numbers, if required, and click Next.

    Warning

    Changing ports has the following impact:

    • All existing sessions are disconnected.

    • All registered devices (configured to connect to the Controller using manually provided IPs) must be reconfigured to use the new port.

  10. Configure the HyWorks Controller Administrators. The following types of Administrators can be configured:

    1. Domain Group Configuration: To configure a Domain User group, the following conditions must be met:

      1. The system must be in the domain.

      2. The user must be logged in using the domain credentials.

      3. The following inputs must be provided correctly:

        • Domain User Group name.

        • The credentials of a user account that belongs to the specified domain user group.

    2. Local User Configuration: To create a local user Administrator, provide the username (the default is HyWorksAdmin) and an appropriate password.

      Warning

      • In step #7, the Repair mode involves reconfiguring the HyWorks Administrators. It can also be used to update the HyWorks Administrator password if it is lost.

      • During the repair or upgrade, the current configuration files will be reset. Any configuration changes made to the HyWorks Controller using configuration files will be lost. Reconfigure the changes and restart the service to apply them.

    3. Click Next to proceed with the configured user group.

  11. Click Repair to confirm the operation, then wait for it to complete.

  12. Once the Repair operation is complete, the Administrator is directed to a screen displaying information about the repaired components, the status of the Repair operation, and a link to access the Accops HyWorks Management Console. Click Close to exit the Installation wizard.

Uninstall

The Uninstall flow is enabled when the system already has an existing installation of the Accops HyWorks Controller and the Administrator re-runs the same or a newer installer. To uninstall one or more components, follow the steps below:

  1. Log in to the Windows Server as a user with local administrator privileges.

  2. Copy the Accops HyWorks Controller installer to the target machine.

  3. Launch the Installation wizard and select Run as Administrator.

  4. If the Accops HyWorks Controller installer detects an existing installation, it opens in Maintenance mode and provides the following options:

    1. Add New Components

    2. Upgrade (disabled if running the same installer setup, enabled if running a newer installer)

    3. Repair (enabled if running the same installer setup, disabled if running a newer installer)

    4. Uninstall

  5. Select Uninstall and click Next.

  6. Select the components to uninstall, then click Next.

    1. The Remove Service Database option enables the Administrator to remove the database created during the HyWorks Controller installation.

    2. The Remove Log Database option removes the log database from the specified SQL Server instance. To keep the logs, uncheck this option.

      Note

      If the Remove Database option is not selected, reinstallation of the HyWorks Controller on the same database server will use the existing database file.

  7. Click Uninstall to confirm the operation.

  8. Once the process is complete, the screen displays information about the uninstalled components and their respective statuses.

  9. Click Close to exit the installation wizard.

Limitations:

  • Upon the removal of the HyWorks Controller, the following Windows roles and features will not be uninstalled to avoid affecting users who are currently logged on:

    • Web Server (IIS): If the HyWorks Controller Management Console is uninstalled.

    • Remote Desktop Session Host: If the HyWorks Session Host Server is uninstalled.

HyWorks Hotfix Installation

One or more hotfixes can be released for HyWorks server components (Controller, Management Console, Licensing Service, Upgrade Service, Reservation Management Service). This section provides detailed information on how to apply hotfixes to Controller setups:

Important

  • Always back up the files before using the HyWorks Controller hot-fix patcher to prevent data loss. Take snapshots of the HyWorks controller servers before upgrading for a quick rollback if needed.

  • Repairing the HyWorks Controller replaces the files with those of the previous major version, which reverses any hotfixes.

  • If a repair is carried out for any other reason, reapply the latest hot-fix patch.

Two-node Active-Passive Setup

For a two-node active-passive setup, follow the process below to apply hot-fix patches on controller servers:

  1. Log in to the HyWorks Controller Management Console of any of the HyWorks servers.

  2. Move the secondary HyWorks Controller server (e.g., hwsctrl-02) into maintenance mode (Settings > System > Controllers).

  3. Connect to the secondary HyWorks Controller server (e.g., hwsctrl-02) using a remote or console session with administrator user credentials.

  4. Download and copy the respective hot-fix patch to this (secondary) controller server (e.g., hwsctrl-02).

  5. Run the patcher setup, then follow the Patch Installation Process to complete the installation.

  6. Once the installation on the secondary server (e.g., hwsctrl-02) finishes, move the primary HyWorks Controller (e.g., hwsctrl-01) to maintenance mode.

  7. Make the upgraded secondary controller (e.g., hwsctrl-02) the new primary server.

  8. Connect to the old primary HyWorks Controller server (e.g., hwsctrl-01) using a remote or console session with administrator user credentials.

  9. Download and copy the respective hot-fix patch to this old primary HyWorks Controller server (e.g., hwsctrl-01).

  10. Run the patcher setup, then follow the Patch Installation Process to complete the installation.

  11. Once the installation on the old primary server (e.g., hwsctrl-01) finishes, make it secondary.

  12. Patch installation is now complete. The controllers have switched roles and can be moved back to their original modes via the management console, if needed.

Multi-node Setups

In multi-node setups, apply the patch first on the management nodes and then on the session nodes, as per the steps given below:

Management nodes

Note

  • During management node patch installation, running or upcoming sessions are not affected because management nodes do not participate in session delivery. However, it is recommended to schedule a short maintenance window for applying the patch.

  • Take snapshots for quick rollback.

  1. Access the HyWorks Management console and go to Settings > System > Controllers.

  2. Select the Secondary Controller (e.g., Management2), click the Change Mode button, select Maintenance, and click Change Mode.

  3. Now follow the Patch Installation Process to install the patch on the secondary management node (e.g., Management2).

  4. After the patch is installed successfully on the secondary management node (e.g., Management2), go to the management console, select Secondary (Management2), which is currently in maintenance mode, click the Change Mode button, choose Change mode as Primary, and click Change Mode.

  5. Select the Primary management node (e.g., Management1), click the Change Mode button, select Change mode as Maintenance, and click Change Mode.

  6. Now follow the Patch Installation Process to install the patch on the primary management node (e.g., Management1).

  7. Select Primary (Management1), which is in Maintenance, and click the Change Mode button. Then select Change Mode as Secondary and click Change Mode.

Broker Nodes

Note

  • The broker nodes should be behind a load balancer with proper health probe configurations. Ensure that the load balancer does not monitor the HyWorks Controller port. The broker node will not accept any requests in maintenance mode.

  • During maintenance, remove the broker node from the load balancer configuration if it uses TCP port monitoring. After successfully applying the patch, add or enable it again.

  1. Once the installation on the Management nodes is complete, the patch installation on the Broker nodes can be started.

  2. Access the HyWorks Management console and go to Settings > System > Controllers.

  3. Select one Broker node (e.g., Broker1), click the Change Mode button, select Change mode as Maintenance, and click Change Mode.

  4. Now, follow the Patch Installation Process to install the patch on the Broker node.

  5. On the management console, select the Broker node (Broker1) in Maintenance and click the Change Mode button. Then, select Change Mode as Active and click Change Mode.

  6. Repeat the steps above to install the patch on each broker node individually.

Patch Installation Process

The patch can be installed by following the steps below. The same steps apply to all nodes:

  1. Connect to the controller node through a remote or console session, using an account with local administrator privileges.

  2. Copy the Patch Installer to the server. If the file is blocked, unblock the exe.

  3. Run the installer, click Next, accept the License Agreement, click Next on the Choose Component window, and then click Install on the Choose Install Location window.

  4. The installation process starts, and the patch is installed within a few minutes.

Patch Installation Logs

For patch installation verification, patch installation logs can be checked at the following location:

C:\Program Files (x86)\Accops\HyWorks Patcher\\ > Text log file with the name format "patcher time date".

E.g. C:\Program Files (x86)\Accops\HyWorks Patcher\Hotfix 20102023\patcher 10.17.49 2023-10-23.txt

Health Probe APIs

HyWorks Controller health probe APIs are documented in Health Probe APIs for Load Balancer Configuration.

Installation Logs

HyWorks installation logs can be used for troubleshooting and verification purposes. Installation logs are created at the following location:

%appdata%\HyWorksController\Logs