Apigee supports upgrading Edge for Private Cloud directly from version 4.53.00 or 4.53.01 to version 4.54.00. This page describes how to perform such upgrades.

For an overview of compatible upgrade paths, see the [upgrade compatibility matrix for Edge for Private Cloud releases](https://docs.apigee.com/release/apigee-edge-release-process.md.txt#upgrade-compatibility-matrix-for-edge-for-private-cloud-releases).

> [!NOTE]
> **Note** : The component upgrade order for the Apigee Edge for Private Cloud 4.54.00 release has been revised compared to previous Apigee Edge for Private Cloud versions. For more details refer to [Order of machine update.](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#orderofmachineupdate)

> [!CAUTION]
> **Caution**: Do not upgrade the Apigee version and perform a major version upgrade of the operating system at the same time. If you need to upgrade both the Apigee version and the operating system, perform the processes sequentially. Either fully upgrade Apigee first and then upgrade the operating system, or vice versa.

> [!CAUTION]
> **Caution**: Since Edge for Private Cloud 4.54.00 includes a major upgrade to the Cassandra version, it is recommended to perform this upgrade one data center at a time. The upgrade steps listed in this document and assertions made (such as no impact to runtime proxy traffic) are based on the assumption that the upgrade steps are followed as documented.

## Who can perform the update

The person running the update should be the same as the person who originally installed Edge, or a person running as root.

After you install the Edge RPMs, anyone can configure them.

## Which components must you update

You must update all Edge components. Edge does not support a setup that contains components from multiple versions.

## Pre-read materials

Review the following topics for important information about changes introduced in Edge for Private Cloud 4.54.00:

- **Changes in 4.54.00:** Review changes in TLS and Java Callout that require preparation before upgrading. For more information, see [Changes in 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/changes-privatecloud-45400.md.txt).

- **Dual-Java runtime architecture (Java 17 and Java 21):** Starting in 4.54.00, Edge for Private Cloud removes support for Java 8 and runs components on either Java 17 or Java 21. For more information, see [Changes in 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/changes-privatecloud-45400.md.txt).

- **No automatic Java installation during bootstrap:** Edge for Private Cloud 4.54.00 has the capability to discover Java installations and validates that you have both Java 17 and 21 installed.

- **New Edge UI in 4.54.00:** Learn about the transition to the New Edge UI as the default management interface and the removal of the Classic UI (edge-ui). For more information, see [New Edge UI](https://docs.apigee.com/private-cloud/v4.54.00/new-edge-ui.md.txt).

- **Apigee SSO in 4.54.00:** Understand the updated SSO architecture and configuration changes for authentication. For more information, see [Apigee SSO](https://docs.apigee.com/private-cloud/v4.54.00/idp-overview.md.txt#new-sso-design).

- **Nginx 1.30 in 4.54.00:** Review the automatic Nginx 1.30.x upgrade on Edge Routers, potential runtime impacts, and mitigation steps. For more information, see [Nginx 1.30 Changes](https://docs.apigee.com/private-cloud/v4.54.00/nginx-45400.md.txt).

- **Removal of Java 8:** You can remove Java 8 after you
  upgrade all Apigee components on a node to version 4.54.00. For
  more information, see [Remove Java 8 after
  upgrading to Edge for Private Cloud 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400#remove-java-8).

## Upgrade prerequisites

> [!NOTE]
> **Note** : The upgrade will require extra steps to ensure no disruption during or after upgrade. For more information while upgrading to version 4.54.00 from older Edge for Private Cloud versions, see [Changes in Edge for Private Cloud 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/changes-privatecloud-45400.md.txt).

Make sure of the following prerequisites before upgrading Apigee Edge:

- **Review release notes and new features**

  Ensure you thoroughly review and understand all new features, behavior changes, and retirements detailed in the [Edge for Private Cloud release notes](https://docs.cloud.google.com/apigee/docs/edge-private-cloud/release-notes) prior to initiating the upgrade process.
- **Automatic Java binary discovery and coexistence during upgrade:** Install Java using standard package managers (such as yum) or standard locations (such as /usr/lib/jvm or update-alternatives). You do not need to configure both versions on the system PATH simultaneously. Do not uninstall Java 8 prior to upgrading. Keep Java 8 installed alongside Java 17 and Java 21 so that existing Edge for Private Cloud 4.53.xx services continue running uninterrupted until they are updated.

- **Backup all nodes**

  Before you update, we recommend that you perform a complete backup of all nodes for safety reasons. Use the procedure for your current version of Edge to perform the backup. This allows you to have a backup plan, in case the update to a new version doesn't function properly. For more information on backup, see [Backup and Restore](https://docs.apigee.com/private-cloud/v4.54.00/backup-and-restore.md.txt).
- **Backup of silent configuration file**

  Ensure that backup copies of the silent configuration files for Edge for Private Cloud 4.53.00 or 4.53.01 are retained to facilitate a rollback if required.
- **Ensure Edge is running**

  Ensure that Edge is up and running during the update process by using the command:

  ```
  /opt/apigee/apigee-service/bin/apigee-all status
  ```
- **Verify Cassandra prerequisites**

  If you previously upgraded from an older version of Edge for Private Cloud to version 4.53.00 (or) 4.53.01 and are now planning to upgrade to version 4.54.00, make sure you completed the required post-upgrade steps for Cassandra. These steps are outlined in the version 4.53.00 (or) 4.53.01 upgrade documentation and also, mentioned under [Prerequisites for Cassandra upgrade](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#prerequisites-for-cassandra-upgrade). If you are unsure whether these steps were completed during the previous upgrade, complete them again before proceeding with the upgrade to version 4.54.00.
- **Stop apigee-monit:** If apigee-monit is running on the node, stop it with /opt/apigee/apigee-service/bin/apigee-service apigee-monit stop prior to upgrading. This prevents apigee-monit from automatically restarting components while they are being upgraded. Re-enable it with apigee-service apigee-monit start after the upgrade is complete.

## Automatic propagation of property settings

If you have set any properties by editing `.properties` files in `/opt/apigee/customer/application`, then these values are retained by the update.

## Upgrade Router and Message Processor

> [!NOTE]
> **Note** : Upgrading to Edge for Private Cloud 4.54.00 from prior versions automatically updates the Nginx software to version 1.30.x. This update may cause disruptions to runtime API traffic. Please review [Nginx 1.30.x changes in Apigee Edge 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/nginx-45400.md.txt) to understand more about this disruption and recommended mitigation steps to follow.

Upgrade all Routers and Message Processor nodes across data centers one by one:

```
/opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
```

## Upgrade Management Server

> [!NOTE]
> **Note** : If **Apigee SSO (apigee-sso)** is currently installed and Basic Authentication is disabled, Ensure to [Re-enable Basic authentication](https://docs.apigee.com/private-cloud/v4.54.00/disabling-basic-auth-edge.md.txt#reenablebasicauth) prior to initiating the upgrade of the edge-management-server component and Disable again [after upgrading the UI and new Apigee SSO configuration](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-edge-management-ui)

Upgrade all Management Server nodes across data centers one by one:

```
/opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
```

## Upgrade to OpenLDAP 2.6.10

Edge for Private Cloud 4.54.00 introduces OpenLDAP 2.6.10. This upgrade applies to all Apigee OpenLDAP deployment topologies: single-server, active-passive, and active-active (multi-master).

> [!NOTE]
> **Note:** The OpenLDAP upgrade procedure varies depending on your current version. Please follow the upgrade instructions that correspond to your current version.

### Preparation and installation (All LDAP servers)

#### Steps to upgrade LDAP from 4.53.00 to 4.54.00

##### Prerequisites and considerations

- Be aware that during the OpenLDAP 2.4 to 2.6.10 migration process (when upgrading from 4.53.00), management APIs and consequently the Apigee UI will be unavailable in all regions. All administrative tasks---such as managing users, roles, apps, and organizations---will fail and must be paused. There is no impact to the processing of your API proxy traffic. Shut down all edge-management-server and edge-ui instances before proceeding with the LDAP migration.

- **Backup is Critical (when upgrading from 4.53.00):** When upgrading from Edge for Private Cloud 4.53.00 (OpenLDAP 2.4.46), a complete and validated backup of your existing LDAP data is mandatory. Proceeding without a valid backup causes irreversible data loss. Initiate the backup while the LDAP service is still running to capture a consistent, point-in-time snapshot of the LDAP data. Without a backup, you cannot execute the migration from 2.4 to 2.6.10 or roll back, because the 4.53.00 migration steps wipe the legacy LDAP data directories.

> [!NOTE]
> **Note**: When upgrading from Edge for Private Cloud 4.53.00, make sure this LDAP backup is saved and archived from OpenLDAP 2.4.46. This backup is required for both the migration to 2.6.10 and any rollback to 4.53.00.

1. **Shut down the Management Server and UI:** Shut down all edge-management-server and edge-ui instances before proceeding with the LDAP migration from version 4.53.00.

   ```
   apigee-service edge-management-server stop
   apigee-service edge-ui stop
   ```
2. **Back up existing LDAP data:**Before making any changes when upgrading from version 4.53.00 (OpenLDAP 2.4.46), perform a full backup of the current LDAP data from all LDAP servers. This creates a safe restore point. (When upgrading from version 4.53.01 to 4.54.00, this backup, stop, and cleanup sequence is not required.)

   - **Execute the backup command.**This action creates a timestamped backup archive within the /opt/apigee/backup/openldap directory.

     ```
     apigee-service apigee-openldap backup
     ```
   - **Get total record count:** Capture the number of records in your directory for post-upgrade validation. (The record count must match across all LDAP servers.)

     ```
     # Note: Replace 'YOUR_PASSWORD' with your current LDAP manager password.
     ldapsearch -o ldif-wrap=no -b "dc=apigee,dc=com" \
     -D "cn=manager,dc=apigee,dc=com" -H ldap://:10389 -LLL -x -w 'YOUR_PASSWORD' | wc -l
     ```
3. **Stop LDAP and clean data directories:** Perform this step on all LDAP servers **only if you are upgrading from version 4.53.00 (OpenLDAP 2.4.46)** . Do **not** stop LDAP or delete `/opt/apigee/data/apigee-openldap/*` if you are upgrading from version **4.53.01 (OpenLDAP 2.6.7).** For 4.53.00 upgrades, this step is **mandatory** due to the major version change and underlying database structural differences. When all LDAP servers are stopped, disruption to Management APIs and UI begins.

   - Stop the LDAP service.

     ```
     apigee-service apigee-openldap stop
     ```
   - Permanently remove the old LDAP data and configuration directories.

     ```
     rm -rf /opt/apigee/data/apigee-openldap/*
     ```
4. **Install and configure the new LDAP version** On all LDAP servers, use the standard Apigee scripts to download and install the new component version.

   - **Install the new LDAP component:** The update script reads your configuration file and installs the new apigee-openldap package.

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
     ```
   - **Validate the new LDAP version:** After the installation completes, reload the profile and verify that the new LDAP version (2.6.10) is installed:

     ```
     echo 'export PATH=/opt/symas/bin:$PATH' >> ~/.bash_profile
     source ~/.bash_profile
     ldapsearch -VV
     ```

     The output of the command specified above must verify LDAP version 2.6.10 as shown below:

     ```
     Expected output:
     ldapsearch: @(#) OpenLDAP: ldapsearch 2.6.10
     ```
5. **Stop LDAP on all servers prior to data restoration:** Perform Steps 5, 6, and 7 **only if you are upgrading from version 4.53.00 (OpenLDAP 2.4.46)** (if you upgraded in place from version 4.53.01 in Step 4, your existing LDAP data is preserved and your upgrade is complete). Before restoring your backup from 4.53.00, ensure the newly installed LDAP service is stopped on all servers. On every LDAP server, execute the following commands:

   ```
   apigee-service apigee-openldap stop
   rm -rf /opt/apigee/data/apigee-openldap/ldap/*
   ```
6. **Restore LDAP data:** The strategy is to restore the backup on the first active server. This server will then act as the source of truth, replicating the data to its peers in a multi-server setup.

   1. **Identify the first active server for restoration:**

      - **For single-server setup:** This is your only LDAP server. You can proceed directly to the next step.

      - **For active-passive and active-active setups:** Run the following diagnostic command on each LDAP server:

        ```
        grep -i '^olcSyncrepl:' /opt/apigee/data/apigee-openldap/slapd.d/cn=config/olcDatabase*.ldif
        ```

        **Note:**
        - If the above command returns output, the server is a passive server.
        - If it returns no output, the server is the active server.
   2. **Restore the backup data:** Before proceeding, double-check that Step 5 is completed successfully on all LDAP servers.

      - On the first active server you identified above, navigate to the backup directory.

        ```
        cd /opt/apigee/backup/openldap
        ```
      - Execute the restore command. Specify the exact backup timestamp from Step 2 to prevent restoring an unintended or older version.

        ```
        # To restore a specific backup (recommended):
        apigee-service apigee-openldap restore 2025.08.11,23.34.00

        # To restore the latest available backup by default:
        apigee-service apigee-openldap restore
        ```
      - After the restore process completes successfully, start the LDAP service on the first active server.

        ```
        apigee-service apigee-openldap start
        ```
7. **Start remaining LDAP servers:** If you have a multi server setup, on each of the LDAP servers, start the service:

   ```
   apigee-service apigee-openldap start
   ```

   **Note:** You do not need to restore data manually on these peer servers. Upon starting, they will connect to the first server (which now contains the restored data) and automatically synchronize the entire directory via replication.
8. **Final validation** The final step is to verify that the upgrade was successful and that data is consistent across the entire LDAP cluster.

   - Run the validation command on all LDAP servers. The record count must be identical across all servers and must match the count you captured in Step 2:

     ```
     # Note: Replace 'YOUR_PASSWORD' with your LDAP manager password.
     ldapsearch -o ldif-wrap=no -b "dc=apigee,dc=com" -D "cn=manager,dc=apigee,dc=com" -H ldap://:10389 -LLL -x -w 'YOUR_PASSWORD' | wc -l
     ```
   - After you confirm that the data is correct and consistent, your LDAP upgrade is complete. You can now start edge-management-server, edge-ui, and any other dependent components according to your organization's standard upgrade procedure.

#### Steps to upgrade LDAP from 4.53.01 to 4.54.00

**Install and configure the new LDAP version** On all LDAP servers, use the standard Apigee scripts to download and install the new component version.

- **Install the new LDAP component:** The update script reads your configuration file and installs the new apigee-openldap package.

  ```
  /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
  ```
- **Validate the new LDAP version:** After the installation completes, reload the profile and verify that the new LDAP version (2.6.10) is installed:

  ```
  echo 'export PATH=/opt/symas/bin:$PATH' >> ~/.bash_profile
  source ~/.bash_profile
  ldapsearch -VV
  ```

  The output of the command specified above must verify LDAP version 2.6.10 as shown below:

  ```
  Expected output:
  ldapsearch: @(#) OpenLDAP: ldapsearch 2.6.10
  ```

## Upgrade to New Edge UI and Apigee SSO (If Installed)

> [!NOTE]
> **Note**: In Edge for Private Cloud versions prior to 4.54.00, the Classic UI (edge-ui) and the New Edge UI (edge-management-ui) could not be installed on the same node, so administrators had to provision a dedicated node for each. Because the Classic UI is removed in 4.54.00, that separate node is no longer necessary.

In Apigee Edge for Private Cloud 4.54.00, the Classic UI (**`edge-ui`** ) is removed and replaced by the **New Edge UI (`edge-management-ui`)** . Depending on whether Apigee Single Sign-On (SSO) is installed and used in your setup, follow **one** of the two options below:

### Option 1: Upgrade UI (without Apigee SSO)

This section applies **exclusively if Apigee SSO (`apigee-sso`)** is not configured / installed in your existing Edge for Private Cloud version 4.53.00 or 4.53.01 installation

As part of the Edge for Private Cloud version 4.54.00 upgrade process, the Classic UI (`edge-ui`) is removed. Executing the following upgrade command transitions the UI node from the **Classic UI** (**`edge-ui`** ) to the **New Edge UI** (**`edge-management-ui`**).

#### Step 1: Back up configuration files

Prior to initiation, perform a backup of the existing silent configuration file (`configFile`) and the `/opt/apigee/customer/application/` directory on all UI nodes.

#### Step 2: Update the silent configuration file for Basic Authentication

Edit your silent configuration file (for example, `/opt/silent.conf`) and add the following New Edge UI properties for Basic Authentication:

```
# Authentication mode for New Edge UI (Basic Authentication - No Apigee SSO)
AUTH_MODE=basic

# Access configuration for the New Edge UI
MANAGEMENT_UI_PORT=3001
MANAGEMENT_UI_APP_ENV=OPDK
MANAGEMENT_UI_IP=MANAGEMENT_UI_NODE_IP #Replace MANAGEMENT_UI_NODE_IP with the IP address or hostname of the UI node.
MANAGEMENT_UI_SCHEME=http
```

#### Step 3: Upgrade the UI component

Run the `update.sh` script with component `-c ue` to upgrade from Classic UI (**edge-ui** ) to the New Edge UI (**edge-management-ui**):

```
/opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
```

#### Step 4: Verify the New Edge UI upgrade

Upon successfully completing the upgrade process on all UI node(s), please verify that the version 4.54.00 New Edge UI is fully operational and accessible:

1. Check that the `edge-management-ui` service is running:

   ```
   apigee-service edge-management-ui status
   ```
2. Open a browser and navigate to:

   ```
   http://MANAGEMENT_UI_NODE_IP:3001
   ```
3. Once verified, skip [**Option 2: Upgrade UI (with Apigee SSO)**](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) and proceed directly to [**Required Upgrade to Qpid**](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-qpid).

### Option 2: Upgrade UI (with Apigee SSO)

> [!CAUTION]
> **Caution**: If Apigee SSO (apigee-sso) is enabled, UI functionality will be unavailable until the new Apigee SSO service is fully configured.

Use this section **if Apigee SSO (`apigee-sso`)**is configured / installed in your Edge for Private Cloud 4.53.00 or 4.53.01 environment.

In Apigee Edge for Private Cloud 4.54.00:

- The underlying Apigee SSO service transitions from the legacy **`apigee-sso`** component to **Apigee SSO** managed under **`apigee-openldap`** . This upgrade is **mandatory** when upgrading to Apigee Edge for Private Cloud version 4.54.00 if SSO is enabled in Edge for Private Cloud version 4.53.00 or 4.53.01.

- Both **4.53.x Classic UI (`edge-ui`) with SSO** and **4.53.x New Edge UI (`edge-management-ui`) with SSO** upgrade to the **4.54.00 New Edge UI (`edge-management-ui`) with Apigee SSO**.

  Read the following articles to understand the new Apigee SSO design and its impact on utilities and automation flows with the Management API:
- [About New Apigee SSO structure](https://docs.apigee.com/private-cloud/v4.54.00/idp-overview.md.txt)

- [Automated Tasks using SSO](https://docs.apigee.com/private-cloud/v4.54.00/idp-automated-tasks.md.txt)

> [!NOTE]
> **Important Prerequisite:** Before starting this section, ensure that Basic Authentication was re-enabled on the Management Server (see [Re-enable Basic authentication](https://docs.apigee.com/private-cloud/v4.54.00/disabling-basic-auth-edge.md.txt#reenablebasicauth)) and that `edge-management-server` and `apigee-openldap` have been upgraded to 4.54.00.

Follow the consolidated end-to-end steps below to upgrade both your UI and Apigee SSO cleanly without duplicate configuration steps:

#### Step 1: Back up configuration files

Back up your existing silent `configFile` and the `/opt/apigee/customer/application/` directory on all UI and SSO nodes before proceeding.

#### Step 2: Remove deprecated UI/SSO variables and update the silent configuration file (`configFile`)

Before upgrading the New Edge UI and configuring the Apigee SSO module, update your silent configuration file (`configFile`) in one step based on your current 4.53.x UI setup:

1. Remove or comment out deprecated 4.53.x UI and SSO variables from `configFile`:

   1. If upgrading from Classic UI (`edge-ui`) with `apigee-sso`: Remove or comment out the Classic UI and SSO related properties:

      ```
      EDGEUI_SSO_ENABLED=y
      EDGEUI_SSO_CLIENT_NAME=edgeui
      EDGEUI_SSO_CLIENT_SECRET=edgeuisecret
      EDGEUI_PUBLIC_URIS=
      EDGEUI_SSO_CLIENT_OVERWRITE=y
      EDGEUI_SSO_REGISTERD_PUBLIC_URIS=$EDGEUI_PUBLIC_URIS
      ```
   2. If upgrading from New Edge UI (`edge-management-ui`) with `apigee-sso`: Remove or comment out the deprecated 4.53.x Classic UI, Shoehorn, and SSO related properties:

      ```
      EDGEUI_SSO_ENABLED=y
      EDGEUI_SSO_CLIENT_NAME=edgeui
      EDGEUI_SSO_CLIENT_SECRET=edgeuisecret
      EDGEUI_PUBLIC_URIS=
      EDGEUI_SSO_CLIENT_OVERWRITE=y
      EDGEUI_SSO_REGISTERD_PUBLIC_URIS=$EDGEUI_PUBLIC_URIS
      EDGEUI_ENABLE_UNIFIED_UI=n
      SHOEHORN_SCHEME=$MANAGEMENT_UI_SCHEME
      SHOEHORN_IP=$MANAGEMENT_UI_IP
      SHOEHORN_PORT=9000
      CLASSIC_UI_SCHEME=http
      CLASSIC_UI_PORT=9000
      MANAGEMENT_UI_PUBLIC_URIS=http://Public_IP:3001
      MANAGEMENT_UI_SSO_REGISTERD_PUBLIC_URIS=$MANAGEMENT_UI_PUBLIC_URIS
      ROUTES_CLASSICUI=""
      ROUTES_SHOEHORN=""
      ```
2. Use the following command on the `apigee-openldap` node to create a machine user for the New Edge UI, and make sure to use the exact same credentials when defining the property in the silent configuration file (`configFile`) in the subsequent step. For more information, see [Create machine user for UI](https://docs.apigee.com/private-cloud/v4.54.00/install-and-configure-edge-sso.md.txt#create-machine-user-for-ui).

   ```
   /opt/apigee/apigee-openldap/bin/apigee-machineuser.sh add -u ui-machine-user@apigee.com -p Secret123
   ```
3. Add or update the required 4.54.00 Apigee SSO , and New Edge UI properties in `configFile`:

   ```
   # ==========================================
   # SSO Enablement
   # ==========================================
   ENABLE_SSO=y

   # ==========================================
   # SSO Hostname/IP and Port config for Apigee SSO
   # ==========================================
   SSO_PUBLIC_URL_SCHEME=http
   SSO_PUBLIC_URL_HOSTNAME=YOUR_SSO_NODE_IP_OR_HOSTNAME #Replace YOUR_SSO_NODE_IP_OR_HOSTNAME with the IP address or hostname of the SSO node.
   SSO_PUBLIC_URL_PORT=9099

   # ==========================================
   # Static Client UI credentials
   # ==========================================
   MANAGEMENT_UI_SSO_CLIENT_ID=YOUR_SSO_CLIENT_ID #Example : MANAGEMENT_UI_SSO_CLIENT_ID=unifiedui
   MANAGEMENT_UI_SSO_CLIENT_SECRET=YOUR_SSO_CLIENT_SECRET #Example : MANAGEMENT_UI_SSO_CLIENT_SECRET=secret123

   # ==========================================
   # Management UI & SSO redirect URLs
   # ==========================================
   MANAGEMENT_UI_SCHEME=http
   MANAGEMENT_UI_IP=MANAGEMENT_UI_NODE_IP #Replace MANAGEMENT_UI_NODE_IP with the IP address or hostname of the UI node.
   MANAGEMENT_UI_PORT=3001

   # ==========================================
   # Management Server parameters (Required for SSO registration)
   # ==========================================
   MSIP=MS_IP_OR_HOSTNAME #Replace MS_IP_OR_HOSTNAME with the IP address or hostname of the Management Server node.
   ADMIN_EMAIL=your@email.com
   APIGEE_ADMINPW=your_password

   # ==========================================
   # Machine user for UI
   # ==========================================
   UI_MACHINE_USER=ui-machine-user@apigee.com
   UI_MACHINE_PWD=Secret123

   # ==========================================
   # Postgres connection parameters
   # ==========================================
   # Postgres username and password as set when you installed Edge.
   PG_HOST=PG_IP_OR_HOSTNAME
   PG_USER=apigee
   PG_PWD=YOUR_PG_PASSWORD

   # ==========================================
   # Other UI Parameters
   # ==========================================
   AUTH_MODE=sso

   # Y to use Internal/Local LDAP for authentication, N to use external IDP
   SSO_LOCAL_LDAP=y

   MANAGEMENT_UI_APP_ENV=OPDK
   MANAGEMENT_UI_SSO_ENABLED=y
   MANAGEMENT_UI_SSO_CSRF_SECRET=YOUR_CSRF_SECRET
   MANAGEMENT_UI_SSO_CSRF_EXPIRATION_HOURS=24
   MANAGEMENT_UI_SSO_STRICT_TRANSPORT_SECURITY_AGE_HOURS=24
   MANAGEMENT_UI_SSO_PUBLIC_KEY_CACHE_HOURS=0.5
   ```

> [!NOTE]
> **Note :** The preceding configurations establish the standard Apigee SSO utilizing `apigee-openldap` as the LDAP Identity Provider (IdP) over the default `http` protocol. To integrate an **External LDAP provider** , **Configure SAML** , or **Enable HTTPS**, please refer to the following documentation for the necessary additional configurations before proceeding further:
>
> - [External Corporate LDAP](https://docs.apigee.com/private-cloud/v4.54.00/configure-ldap-idp.md.txt#external-ldap)
> - [Configure Apigee SSO for HTTPS access](https://docs.apigee.com/private-cloud/v4.54.00/configure-apigee-sso-https-access.md.txt)
> - [SAML SSO Configuration](https://docs.apigee.com/private-cloud/v4.54.00/saml-sso-configuration.md.txt)

#### Step 3: Upgrade the New Edge UI component

> [!NOTE]
> **Note**:
>
> **Regarding New Edge UI with multi-node topologies (prior to Edge for Private Cloud v4.53.01, maintaining separate nodes for the Classic UI and the New Edge UI was mandatory)** : As an example, In a multi-node 4.53.01 setup where **Node 1** operates `edge-ui` (configured via ui.properties) and **Node 2** operates `edge-management-ui` alongside `Shoehorn UI edge-ui` (configured via management-ui.properties):
>
> **Copy Custom Configs (CWC) :** Transfer the `/opt/apigee/customer/application/management-ui.properties` file from Node 2 to Node 1 at the same path. Ensure any legacy `apigee-sso` overrides CWCs are removed, and ensure file ownership to `apigee:apigee`.

1. Stop and Uninstall both the **edge-management-ui** (New Edge UI) and **edge-ui** (Shoehorn UI) components, if the **New Edge UI** is currently in use :

   ```
   #Remove 4.53.xx New Edge UI from installation node 
   apigee-service edge-management-ui stop
   apigee-service edge-management-ui uninstall

   #Remove Shoehorn UI from the node with 4.53.xx New Edge UI
   apigee-service edge-ui stop
   apigee-service edge-ui uninstall
   ```
2. Run the `update.sh` script on your Classic UI (**edge-ui** ) node(s) to install and upgrade to New Edge UI (**edge-management-ui**) component:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
   ```

#### Step 4: Stop the `apigee-sso`

Stop the legacy `apigee-sso` service on all nodes where it is installed:

```
apigee-service apigee-sso stop
```

#### Step 5: Create the `apigee_dex` database for Apigee SSO in Postgres node

> [!NOTE]
> **Note:** Perform these steps on the **Postgres primary node** in a [primary-standby setup](https://docs.apigee.com/private-cloud/v4.54.00/set-master-standby-replication-postgres.md.txt) (or on the **standalone node** for single-node setups).

1. On the Postgres primary node, log in to Postgresql using the following command:

   ```
   psql -h $(hostname -i) -U apigee
   ```
2. Run the following command at the `psql` prompt to create the Apigee SSO database:

   ```
   create database apigee_dex;
   ```

#### Step 6: Set up Apigee SSO on OpenLDAP nodes

Execute the following command on the **`apigee-openldap`** node where Apigee SSO will be installed:

```
/opt/apigee/apigee-service/bin/apigee-service apigee-openldap setup-sso -f configFile
```

#### Step 7: Configure Management UI for Apigee SSO and restart the UI

Execute the following commands on every node that has Edge for Private Cloud 4.54.00 **`edge-management-ui`** installed:

```
/opt/apigee/apigee-service/bin/apigee-service edge-management-ui configure-sso -f configFile
```

#### Step 8: Verify the New Edge UI and Apigee SSO upgrade

After completing the steps above, verify that the 4.54.00**New Edge UI** and **Apigee SSO** are running and accessible:

1. Check that the `edge-management-ui` service is running:

   ```
   apigee-service edge-management-ui status
   ```
2. Open a browser and navigate to:

   ```
   http://MANAGEMENT_UI_NODE_IP:3001
   ```
3. Sign in using your configured **SSO** credentials.

#### Step 9: Uninstall legacy `apigee-sso`

On all nodes where legacy `apigee-sso` was installed, uninstall the `apigee-sso` component:

```
apigee-service apigee-sso uninstall
```

> [!NOTE]
> **Note :** After successfully configuring Apigee SSO by following the preceding instructions, you may [disable Basic Authentication](https://docs.apigee.com/private-cloud/v4.54.00/disabling-basic-auth-edge.md.txt#disablebasicauth) on the Management Server if required.

## Upgrade to Qpid 10.0.1

This method makes sure there is no downtime for your Edge runtime environment and minimizes the loss on runtime data, if any, acquired for analytics.

> [!NOTE]
> **Prerequisite:** Make sure **edge-message-processor** , **edge-management-server** , and **edge-qpid-server** are upgraded before you begin the Qpid upgrade.

To perform an in-place, zero downtime upgrade to Qpid:

1. Pick one Qpid node to start with.

2. Stop the Qpid broker on the node:

   ```
   apigee-service apigee-qpidd stop
   ```
3. Block incoming traffic on broker port 5672 from all message processors by applying a firewall. You can apply this firewall at the level of the Qpid node instance or some other external firewall/network component.

   We recommend that you perform the same step for all the message processor IP addresses. For example, to DROP requests coming from message processor IP addresses to the Qpid node on port 5672 using IPTables, you could use a command like this:

   ```
   iptables -A INPUT -p tcp --dport 5672 -s MESSAGE_PROCESSOR_IP -j DROP
   ```
4. Start the Qpid broker again to drain existing messages, if any:

   ```
   apigee-service apigee-qpidd start
   ```
5. Check that the existing queues are empty:

   ```
   /opt/apigee/apigee-qpidd/bin/qpid-stat -q
   ```

   If messages are stuck in the dead letter queue (DLQ) (`ax-q-axgroup-001-consumer-group-001-dl`), then drain the queue using [the steps to resolve analytics data stuck in the dead letter queue](https://docs.apigee.com/api-platform/troubleshoot/analytics/analytics-data_stuck_qpidd.md.txt#resolution).
6. After verifying queues have drained on the old node, stop `apigee-qpidd`:

   ```
   apigee-service apigee-qpidd stop
   ```
7. Upgrade Qpid on the node:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
   ```
8. Restart `edge-qpid-server`:

   ```
   apigee-service edge-qpid-server restart
   ```
9. Remove the firewall rule applied in Step 3.

   Perform the same removal step for all the message processor IP addresses to which the firewall was applied. Once the firewalls are removed, requests coming from message processor IP addresses to the Qpid node on port 5672 will be accepted. If you used `iptables` to add the firewall, to remove the firewall and to list the existing settings you can use commands like following:

   ```
   iptables -F
   iptables -L
   ```
10. Use web monitoring to verify that the Qpid queues are receiving messages:

    ```
    http://QPID_NODE_IP:8090
    ```
11. Repeat Step 1 to 9 for each Qpid node.

## Upgrade to Postgres 18.6

This release of Edge includes an upgrade to Postgres 18.6. As part of that upgrade, all Postgres data is migrated to Postgres 18.6

> [!NOTE]
> **Notes:**
>
> - Make sure that `yum` is *not* set to clean requirements on remove. Otherwise, Postgres upgrades will fail.
> - If `apigee-monit` is installed and enabled, you must disable `apigee-monit` before upgrading the Postgres server to ensure that it does not try to restart the Postgres database while the upgrade is in progress.

Most Edge production systems use two Postgres nodes configured for primary-standby replication. During the update process, while the Postgres nodes are down for update, analytics data is still written to the Qpid nodes. After the Postgres nodes are updated and back online, analytics data is then pushed to the Postgres nodes.

The way you perform the Postgres update depends on how you configured data storage for your Postgres nodes:

- **If you use local data storage for your Postgres nodes** , you must install a new Postgres standby node for the duration of the upgrade. After the upgrade completes, you can decommission the new Postgres standby node. The additional Postgres standby node is required if you have to roll back the update for any reason. If you have to roll back the update, the new Postgres standby node becomes the primary Postgres node after the rollback. Therefore, when you install the new Postgres standby node, it should be on a node that meets all the hardware requirements of a Postgres server, as defined in the Edge [Installation requirements](https://docs.apigee.com/private-cloud/v4.54.00/installation-requirements.md.txt).

  In a 1-node and 2-node configuration of Edge, topologies used for prototyping and testing, you only have a single Postgres node. You can update these Postgres nodes directly without having to create a new Postgres node.
- **If you use network storage for your Postgres nodes** , as recommended by Apigee, you do not have to install a new Postgres node. In the procedures below, you can skip the steps that specify to install and later decommission a new Postgres standby node. Before you begin the update process, take a network snapshot of the data store used by Postgres. Then, if any errors occur during update and you are forced to perform a rollback, you can restore the Postgres node from that snapshot.

### Installing a new Postgres standby node

This procedure creates a Postgres standby server on a new node. Ensure that you install a new Postgres standby server for your **existing** version of Edge (4.53.00 or 4.53.01), not for version 4.54.00.

To perform the install, use the same config file that you used to install your current version of Edge.

To create a new Postgres standby node:

1. On the current Postgres primary, edit the `/opt/apigee/customer/application/postgresql.properties` file to set the following token. If that file does not exist, create it:

   ```
   conf_pg_hba_replication.connection=host replication apigee existing_standby_ip/32 trust\ \nhost replication apigee new_standby_ip/32 trust
   ```

   Where `existing_standby_ip` is the IP address of the current Postgres standby server and `new_standby_ip` is the IP address of the new standby node.
2. Restart apigee-postgresql on the Postgres primary:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-postgresql restart
   ```
3. Verify that the new standby node was added by viewing the `/opt/apigee/apigee-postgresql/conf/pg_hba.conf` file on the primary. You should see the following lines in that file:

   ```
   host replication apigee existing_standby_ip/32 trust
   host replication apigee new_standby_ip/32 trust
   ```
4. Install the new Postgres standby server:

   1. Edit the config file that you used to install your current version of Edge to specify the following:

      ```
      # IP address of the current primary(master):
      PG_MASTER=PG_MASTER_NODE_IP
      # IP address of the new standby node
      PG_STANDBY=PG_STANDBY_NODE_IP
      ```
   2. Disable SELinux as described in [Install the Edge apigee-setup utility](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-apigee-setup-utility.md.txt).

   3. Download and run the bootstrap script based on your current Edge version:

      - **If you are currently on Edge 4.53.00:**

        Download the Edge `bootstrap_4.53.00.sh` file to `/tmp/bootstrap_4.53.00.sh`:

        ```
        curl https://software.apigee.com/bootstrap_4.53.00.sh -o /tmp/bootstrap_4.53.00.sh
        ```

        Install the Edge `apigee-service` utility and dependencies:

        ```
        bash /tmp/bootstrap_4.53.00.sh apigeeuser=uName apigeepassword=pWord
        ```
      - **If you are currently on Edge 4.53.01:**

        Download the Edge `bootstrap_4.53.01.sh` file to `/tmp/bootstrap_4.53.01.sh`:

        ```
        curl https://software.apigee.com/bootstrap_4.53.01.sh -o /tmp/bootstrap_4.53.01.sh
        ```

        Install the Edge `apigee-service` utility and dependencies:

        ```
        bash /tmp/bootstrap_4.53.01.sh apigeeuser=uName apigeepassword=pWord
        ```
   4. Use `apigee-service` to install the `apigee-setup` utility:

      ```
      /opt/apigee/apigee-service/bin/apigee-service apigee-setup install
      ```
   5. Install Postgres:

      ```
      /opt/apigee/apigee-setup/bin/setup.sh -p ps -f configFile
      ```
   6. On the new standby node, run the following command and verify that it is the **standby**:

      ```
      /opt/apigee/apigee-service/bin/apigee-service apigee-postgresql postgres-check-standby
      ```

### Performing an in-place upgrade of Postgres

> [!NOTE]
> **Note**: You must do the following preliminary step before performing an in-place upgrade of Postgres.

#### Preliminary step

Before performing an in-place upgrade to Postgres, do the following steps on both the primary host and standby, to update the `max_locks_per_transaction` property on `apigee-postgresql`:

1. If not present, create the file /opt/apigee/customer/application/postgresql.properties .

2. Change the ownership of this file to apigee :

   ```
   chown apigee:apigee /opt/apigee/customer/application/postgresql.properties
   ```
3. Add the following property to the file:

   ```
   conf/postgresql.conf+max_locks_per_transaction=30000
   ```
4. Configure apigee-postgresql :

   ```
   apigee-service apigee-postgresql configure
   ```
5. Restart apigee-postgresql :

   ```
   apigee-service apigee-postgresql restart
   ```

> [!NOTE]
> **Note:**You must perform these steps on both the primary host and standby.

#### Perform the in-place upgrade

To perform an in-place upgrade to Postgres 18, do the following steps:

1. Upgrade postgres on the primary host

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
2. Run the setup command on the primary host:

   ```
   apigee-service apigee-postgresql setup -f configFile
   ```
3. Run the configure command on the primary host:

   ```
   apigee-service apigee-postgresql configure
   ```
4. Restart the primary host:

   ```
   apigee-service apigee-postgresql restart
   ```
5. Configure it as primary:

   ```
   apigee-service apigee-postgresql setup-replication-on-master -f configFile
   ```
6. Ensure the primary host has started:

   ```
   apigee-service apigee-postgresql wait_for_ready
   ```
7. Stop the standby:

   ```
   apigee-service apigee-postgresql stop
   ```
8. Upgrade the standby.

   **Note:** If this step errors/fails, it can be ignored. `update.sh` will attempt to start the stand-by server with an incorrect configuration. Provided the Postgres installation is upgraded to 18, the error can be ignored.

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
9. Ensure the standby is stopped:

   ```
   apigee-service apigee-postgresql stop
   ```
10. Remove the old standby configuration:

    ```
    rm -rf /opt/apigee/data/apigee-postgresql/
    ```
11. Set up replication on the standby server:

    ```
    apigee-service apigee-postgresql setup-replication-on-standby -f configFile
    ```
12. Remove the line `conf/postgresql.conf+max_locks_per_transaction=30000` from the file `/opt/apigee/customer/application/postgresql.properties` on both the primary host and standby. This line was added in the [preliminary step](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#preliminary-step) .

    After completing this procedure, the standby will start successfully.

### Decommissioning a Postgres node

After the update completes, decommission the new standby node:

1. Make sure Postgres is running:

   ```
   /opt/apigee/apigee-service/bin/apigee-all status
   ```

   If Postgres is not running, start it:

   ```
   /opt/apigee/apigee-service/bin/apigee-all start
   ```
2. Get the UUID of the new standby node by running the following curl command on the new standby node:

   ```
   curl -u sysAdminEmail:password http://node_IP:8084/v1/servers/self
   ```

   You should see the UUID of the node at the end of the output, in the form:

   ```
   "type" : [ "postgres-server" ],
   "uUID" : "599e8ebf-5d69-4ae4-aa71-154970a8ec75"
   ```
3. Stop the new standby node by running the following command on the new standby node:

   ```
   /opt/apigee/apigee-service/bin/apigee-all stop
   ```
4. On the Postgres primary node, edit `/opt/apigee/customer/application/postgresql.properties` to remove the new standby node from `conf_pg_hba_replication.connection`:

   ```
   conf_pg_hba_replication.connection=host replication apigee existing_standby_ip/32 trust
   ```
5. Restart apigee-postgresql on the Postgres primary:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-postgresql restart
   ```
6. Verify that the new standby node was removed by viewing the `/opt/apigee/apigee-postgresql/conf/pg_hba.conf` file on the primary. You should see only the following line in that file:

   ```
   host replication apigee existing_standby_ip/32 trust
   ```
7. Delete the UUID of the standby node from ZooKeeper by making the following Edge management API call on the Management Server node:

   ```
   curl -u sysAdminEmail:password -X DELETE http://ms_IP:8080/v1/servers/new_standby_uuid
   ```

### Post-upgrade steps for Postgres

After a major Postgres upgrade, the internal statistics of Postgres are wiped out. These statistics aid the Postgres query planner in utilizing the most optimal indexes and paths to execute queries.

Postgres can gradually rebuild its statistics over time as queries are executed and when the autovacuum daemon runs. However, until the statistics are rebuilt, your queries may be slow.

To address this issue, execute [ANALYZE](https://www.postgresql.org/docs/18/sql-analyze.html) on all tables in the database on the primary Postgres node. Alternatively, you can execute [ANALYZE](https://www.postgresql.org/docs/18/sql-analyze.html) for a few tables at a time.

> [!NOTE]
> **Note** : **ANALYZE** can take a long time to run, but it only takes a read lock on the table, allowing other operations on Postgres to continue executing while **ANALYZE** is running.

## Upgrade to ZooKeeper 3.8.5

This release of Edge for Private Cloud includes an upgrade to ZooKeeper 3.8.5. As part of that upgrade, all ZooKeeper data will be migrated to ZooKeeper 3.8.5.

Before upgrading ZooKeeper, read through the [ZooKeeper maintenance guide](https://docs.apigee.com/private-cloud/v4.54.00/zookeeper-maintenance.md.txt#maintenanceconsiderations). Most Edge production systems use a cluster of ZooKeeper nodes spread across multiple data centers. Some of these nodes are configured as voters who participate in ZooKeeper leader election, and the rest are configured as observers. See [About leaders, followers, voters, and observers](https://docs.apigee.com/private-cloud/v4.54.00/zookeeper-maintenance.md.txt#aboutzookeeperandedge-aboutleadersfollowersvotersandobservers) for more details. The voter nodes elect a leader after which the voter nodes themselves become followers.

During the update process, there could be a momentary delay or write failure in ZooKeeper when the leader node is shutdown. This could affect Management operations that write into ZooKeeper, such as deployment operation of a proxy, and Apigee infrastructure changes, such as addition or removal of a message processor, etc. There should be no impact on runtime APIs of Apigee (unless these runtime APIs call management APIs) during upgrade of ZooKeeper while following the procedure below.

At a high level, the upgrade process involves taking a backup of each node. This is followed by upgrading all observers and followers and finally upgrading the leader node.

### Take a backup

Take a backup of all nodes of ZooKeeper for use in case a rollback is required. Note that a rollback will restore ZooKeeper to the state when the backup was taken.

> [!NOTE]
> **Note:** Any deployments or infrastructure changes in Apigee since the backup was taken (whose information is stored in ZooKeeper) will be lost during restoration.

```
/opt/apigee/apigee-service/bin/apigee-service apigee-zookeeper backup
```

If you are using virtual machines and have the capability, VM snapshots or backups could also be taken for restoration or rollback (if necessary).

### Identify leader, followers and observers

> [!NOTE]
> **Note** : The sample commands below use the [nc utility](https://linux.die.net/man/1/nc) to send data to ZooKeeper. You could use alternate utilities to send data to ZooKeeper as well.

1. If it is not installed on the ZooKeeper node, install nc:

   ```
   yum install nc
   ```
2. Run the following nc command on the node, where 2181 is the ZooKeeper port:

   ```
   echo stat | nc localhost 2181
   ```

   You should see output like the following:

   ```
   Zookeeper version: 3.8.5-19f1842d4b6ee1f82cc8b05284959b26c6ae507d, built on 2025-09-03 21:35 UTC
   Clients:
    /[0:0:0:0:0:0:0:1]:40696[0](queued=0,recved=1,sent=0)

   Latency min/avg/max: 3/4.3333/6
   Received: 4
   Sent: 3
   Connections: 1
   Outstanding: 0
   Zxid: 0x500000005
   Mode: follower
   ```

   In the `Mode` line of the output for the nodes, you should see observer, leader, or follower (meaning a voter that is not the leader) depending on the node configuration.

> [!NOTE]
> **Note:** In a standalone installation of Edge with a single ZooKeeper node, the `Mode` is set to standalone.

1. Repeat steps 1 and 2 on each ZooKeeper node.

### Upgrade ZooKeeper on the observer and follower nodes

Upgrade ZooKeeper on each of the observer and follower nodes as follows:

1. Download and run bootstrap of Edge for Private Cloud 4.54.00, as described in [Update to 4.54.00 on a node with an external internet connection](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#procedureforupdatingto45301onanodewithanexternalinternetconnection). The process will likely vary depending on whether the node has an external internet connection or you're performing an offline installation.

2. Upgrade the ZooKeeper component:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c zk -f silent-config-file
   ```

   **Note**: If these nodes have other components installed (such as Cassandra), you could upgrade them too now (like with zk,cs profile) or you could upgrade the other components later. Apigee recommends that you upgrade ZooKeeper only first and ensure your cluster is working properly before upgrading other components.
3. Repeat above steps on each ZooKeeper observer and follower nodes.

### Shutdown the leader

Once all observer and follower nodes have been upgraded, shutdown the leader. On the node identified as leader, run the command below:

```
/opt/apigee/apigee-service/bin/apigee-service apigee-zookeeper stop
```

Note that during this event, before a new leader is elected, there could be momentary delays or write failures in ZooKeeper. This could affect operations which write into ZooKeeper such as deployment action of proxies or Apigee infrastructure changes, such as addition or removal of message processors, etc.

### Verify that the new leader is elected

Using the steps in the [Identify leader, followers and observers](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#identify-leader-followers-and-observers)section above, verify that a new leader has been elected from the followers, once the existing leader is stopped. Note that the leader could have been elected in a different data center than the current leader.

### Upgrade leader

Follow the same steps as in [Upgrading ZooKeeper on the observer and follower nodes](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-zookeeper-on-the-observer-and-follower-nodes) above.

Once the old leader node is upgraded as well, verify the cluster health and ensure there is a leader node.

## Upgrade to Cassandra 5.0.8

Apigee Edge for Private Cloud 4.54.00 includes an upgrade of Cassandra to version 5.0.8.

> [!CAUTION]
> **Caution**: While Apigee has certified the Cassandra upgrade, it is strongly advised that you thoroughly test the upgrade in your lower environments before applying it in production to ensure you are familiar with the upgrade steps and that the upgrade is not disruptive.

### Upgrades and rollback

- Upgrading from Cassandra 4.0.X to Cassandra 5.0.X is a rolling process.

- Direct in-place rollback from Cassandra 5.0.X to 4.0.X is not possible. Rolling back using replicas or backups is a complex procedure and may involve downtime and/or data loss. Troubleshooting issues and upgrading to Cassandra 5.0.X is preferable to rolling back.

- It is important to familiarize yourself with rollback procedures before attempting the upgrade. Considering the nuances of rollback during the upgrade is critical to ensure appropriate rollback paths are available.

> [!NOTE]
> **Note**: There is no direct in-place rollback option available after upgrading Cassandra

#### Single data center

Upgrading Cassandra from 4.0.X to 5.0.X within a single data center is seamless, but rollback is complex and may result in downtime and data loss. For production workloads, it's strongly advised to [add a new data center](https://docs.apigee.com/private-cloud/v4.54.00/adding-data-center.md.txt) with at least Cassandra nodes available in the new data center before initiating the upgrade. This will enable rollback of Cassandra without incurring data loss or disruption to your API traffic. This additional data center can be decommissioned once the upgrade is finished.

If adding a new data center isn't feasible but rollback capability is still desired, backups will be necessary for restoring Cassandra 4.0.X. However, this method is likely to involve both downtime and data loss.

#### Multiple data centers

Operating multiple data centers with Edge for Private Cloud 4.53.00 (or) 4.53.01 offers more flexibility for rollbacks during the upgrade to Edge for Private Cloud 4.54.00.

- Rollbacks require at least one data center running the earlier Cassandra version (4.0.X).

#### Recommended upgrade methodology

1. **Upgrade one Cassandra data center at a time**: Start by upgrading Cassandra nodes individually within a single data center. Complete upgrades of all Cassandra nodes in one data center before proceeding to the next.

2. **Pause and validate:** After upgrading one data center, pause to ensure your Private Cloud cluster, especially the upgraded data center, is functioning correctly.

3. **Remember**: You can only roll back to the previous Cassandra version if you have at least one data center still running the older version.

4. **Time-sensitive**: While you can pause for a short period (a few hours is recommended) to validate functionality, you cannot remain in a mixed-version state indefinitely. This is because a non-uniform Cassandra cluster (with nodes on different versions) has operational limitations.

5. **Thorough testing**: Apigee strongly recommends comprehensive testing of performance and functionality before upgrading the next data center. Once all data centers are upgraded, rollback to the earlier version is impossible.

#### Rollback checkpoint process

**Single Rollback Checkpoint:** When all components are upgraded to 4.54.00, a cassandra rollback remains possible only if at least one Cassandra data center continues to run the older version. Once the final Cassandra data center is upgraded, the upgrade to Edge for Private Cloud 4.54.00 is complete, and rollback is no longer possible.

#### Example

Consider a two-data-center (DC) cluster:

1. **Start state:** Cassandra nodes in both DCs are on version 4.0.X. All other nodes are on Edge for Private Cloud version 4.54.00. Assume three Cassandra nodes per DC.

2. **Upgrade DC-1**: Upgrade the three Cassandra nodes in DC-1 one by one.

3. **Pause and validate:** Pause to ensure the cluster, particularly DC-1, is working correctly (check performance, functionality). You can roll back to the initial state using the Cassandra nodes in DC-2. Remember, this pause must be temporary due to the limitations of a mixed-version Cassandra cluster.

4. **Upgrade DC-2**: Upgrade the remaining three Cassandra nodes in DC-2. Once all Cassandra nodes in DC-2 are successfully upgraded, the Edge for Private Cloud 4.54.00 upgrade is complete.

> [!NOTE]
> **Note**: Careful planning and testing are crucial for a successful upgrade. Always consider the rollback limitations and follow the recommended methodology.

### Prerequisites for Cassandra upgrade

You should be running Cassandra 4.0.X with Edge for Private Cloud 4.53.00 (or) 4.53.01 and ensure the following:

1. **Set Java 17 as the default Java version on the server:**Cassandra 5.0.X removes Java 8 support. You cannot run Cassandra 5.0.X or its nodetool utility with Java 8. Ensure that Java 17 is installed on each Cassandra node and set Java 17 as the default Java version before running the Cassandra upgrade steps so that nodetool commands execute with Java 17:

   ```
   alternatives --set java JAVA_17_PATH/bin/java
   ```

   Verify that the active default Java version is Java 17:

   ```
   java -version
   ```
2. The entire cluster is operational and fully functional with Cassandra 4.0.X.

3. The compaction strategy is set to `LeveledCompactionStrategy` (a prerequisite for the upgrade to version 4.53.00 (or) 4.53.01).

4. Confirm that each step below was completed as part of the initial upgrade of Cassandra 4.0.X in Edge for Private Cloud of 4.53.00 (or) 4.53.01.

   - The `post_upgrade` command was executed on each Cassandra node during previous upgrade

   - The `drop_old_tables` command was executed on the entire Cassandra cluster during the previous upgrade.

> [!NOTE]
> **Note**: The above steps ( post-upgrade and Drop Unused tables ) are part of standard steps that you should have executed while upgrading your cluster to Edge for Private Cloud 4.53.00 (or) 4.53.01 from older versions.

If you are not sure that the [post_upgrade](https://docs.apigee.com/private-cloud/v4.52.02/update-apigee-edge-45100-45200.md.txt#step-3:-upgrade-all-cassandra-nodes-in-the-first-data-center) and [drop_old_tables](https://docs.apigee.com/private-cloud/v4.52.02/update-apigee-edge-45100-45200.md.txt#step-10---drop-unused-tables) commands were executed on Cassandra 4.0.X while using Edge for Private Cloud 4.53.00 (or) 4.53.01, you can safely re-run them before attempting the upgrade to 4.54.00.

### Step 1: Prepare for upgrade

The steps below are in addition to standard files that you typically create, such as [Apigee's standard configuration file](https://docs.apigee.com/private-cloud/v4.54.00/edge-configuration-file-reference.md.txt) for enabling component upgrades.

1. Backup Cassandra using Apigee.

2. Take VM snapshots of Cassandra nodes (if feasible).

3. Ensure that port 9042 is accessible from all Edge for Private Cloud components, including Management Server, Message Processor, Router, Qpid, and Postgres, to Cassandra nodes if not already configured. Refer to the [Port requirements](https://docs.apigee.com/private-cloud/v4.54.00/port-requirements.md.txt) for more information.

> [!CAUTION]
> **Caution**: All these steps are critical for upgrading Cassandra to version 5.0.X to ensure minimal data loss if a rollback is required and to prevent data loss post-upgrade. It is imperative that these steps are carried out carefully and not skipped.

### Step 2: Upgrade all Cassandra nodes

All Cassandra nodes should be updated one by one in each data center, one data center at a time. Between upgrades of nodes within a data center, wait a few minutes to ensure that an updated node has fully started and joined the cluster before proceeding with upgrading another node in the same data center.

After upgrading all Cassandra nodes within a data center, wait for some time (30 minutes to a few hours) before proceeding with the nodes in the next data center. During this time, thoroughly review the data center that was updated and ensure that the functional and performance metrics of your Apigee cluster are intact. This step is crucial to ensure the stability of the data center where Cassandra has been upgraded to version 5.0.X, while the rest of the Apigee components upgraded to 4.54.00.

1. To upgrade a Cassandra node, Run the following command:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c cs -f configFile
   ```
2. Once a node is updated, run the following command on the node to run some validations before proceeding ahead:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-cassandra validate_upgrade -f configFile
   ```
3. The above will output something along the lines of:

   ```
   Cassandra version is verified - [cqlsh 6.2.0 | Cassandra 5.0.8 | CQL spec 3.4.7 | Native protocol v5]
   Metadata is verified
   ```
4. Run the following post_upgrade command on the Cassandra node:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-cassandra post_upgrade
   ```
5. Run the following cleanup_old_index command on the Cassandra node:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-cassandra cleanup_old_index
   ```
6. Run the following nodetool commands to rebuild indices on the Cassandra node:

> [!CAUTION]
> **Caution:** Before running nodetool commands, verify that the user executing nodetool has Java 17 configured as the default Java version (by using `alternatives --set java `<var translate="no">JAVA_17_PATH</var>`/bin/java`) as described in [Prerequisites for Cassandra upgrade](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#prerequisites-for-cassandra-upgrade). Running nodetool with Java 8 fails on Cassandra 5.0.8.

```
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms api_products api_products_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms app_credentials app_credentials_api_products_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms app_credentials app_credentials_organization_app_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms app_credentials app_credentials_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms app_end_user app_end_user_app_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_app_family_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_app_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_app_type_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_parent_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_parent_status_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms apps apps_status_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms maps maps_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect companies companies_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect companies companies_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect companies companies_status_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect company_developers company_developers_company_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect company_developers company_developers_developer_email_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect company_developers company_developers_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect developers developers_email_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect developers developers_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index devconnect developers developers_status_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis a_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis a_org_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_a_active_rev
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_a_def_index_template
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_a_def_method_template
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_a_latest_rev
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_a_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_a_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_base_url
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_is_active
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_is_latest
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_org_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_rel_ver
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 apis_revision ar_rev_num
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_a_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_api_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_ar_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_base_url
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_org_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_r_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_r_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_res_path
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 method m_rev_num
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_a_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_api_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_ar_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_base_url
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_org_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_res_path
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 resource r_rev_num
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 schemas s_api_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 schemas s_ar_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 security sa_api_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 security sa_ar_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 template t_a_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 template t_a_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 template t_entity
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 template t_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 template t_org_name
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index apimodel_v2 template_auth au_api_uuid
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index dek keys usecase_index
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index audit audits audits_operation_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index audit audits audits_requesturi_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index audit audits audits_responsecode_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index audit audits audits_timestamp_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index audit audits audits_user_idx    
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index cache cache_entries cache_entries_cache_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_access_tokens oauth_10_access_tokens_app_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_access_tokens oauth_10_access_tokens_consumer_key_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_access_tokens oauth_10_access_tokens_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_access_tokens oauth_10_access_tokens_status_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_request_tokens oauth_10_request_tokens_consumer_key_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_request_tokens oauth_10_request_tokens_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_verifiers oauth_10_verifiers_organization_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_10_verifiers oauth_10_verifiers_request_token_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_20_access_tokens oauth_20_access_tokens_app_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_20_access_tokens oauth_20_access_tokens_client_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_20_access_tokens oauth_20_access_tokens_refresh_token_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_20_authorization_codes oauth_20_authorization_codes_client_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index kms oauth_20_authorization_codes oauth_20_authorization_codes_organization_name_idx
```

> [!NOTE]
> **Note**: Rebuilding indices may take a while to complete, depending on how much data is in your nodes

If you're using monetization, also run the following rebuild indices commands related to monetization keyspaces:

```
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint limits limits_created_date_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint limits limits_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint limits limits_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint limits limits_updated_date_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_created_date_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_currency_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_dev_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_limit_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_prod_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_reason_code_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint suspended_developer_products suspended_developer_products_sub_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint invitations invitations_company_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint invitations invitations_created_at_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint invitations invitations_developer_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint invitations invitations_lastmodified_at_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index mint invitations invitations_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus triggers triggers_env_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus triggers triggers_job_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus triggers triggers_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus job_details job_details_job_class_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus job_details job_details_job_group_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus job_details job_details_job_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus org_triggers org_triggers_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus triggers_suite triggers_suite_group_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus triggers_suite triggers_suite_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index taurus triggers_suite triggers_suite_suite_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index notification notification_service_item notification_service_item_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index notification notification_service_item notification_service_item_status_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index notification notification_service_black_list_item notification_service_black_list_item_org_id_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index notification notification_service_black_list_item notification_service_black_list_item_to_email_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index notification notification_email_template_item notification_email_template_item_name_idx
/opt/apigee/apigee-cassandra/bin/nodetool rebuild_index notification notification_email_template_item notification_email_template_item_org_id_idx
```

> [!CAUTION]
> **Caution**: Complete the Cassandra upgrade across all data centers without delay. Because the cluster schema remains inconsistent until every node is upgraded, avoid performing Cassandra operations, such as adding or removing nodes, during the upgrade window.

## Update with Apigee mTLS

To update [Apigee mTLS](https://docs.apigee.com/private-cloud/v4.54.00/mtls-intro.md.txt) , do the following steps:

- [Uninstall Apigee mTLS](https://docs.apigee.com/private-cloud/v4.54.00/mtls-uninstall.md.txt) .

- [Re-install Apigee mTLS](https://docs.apigee.com/private-cloud/v4.54.00/mtls-install.md.txt) .

## Rolling back an update

In the case of an update failure, you can try to correct the issue, and then execute `update.sh` again. You can run the update multiple times and it continues the update from where it last left off.

If the failure requires that you roll back the update to your previous version, see [Roll back 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/rollback-45400.md.txt) for detailed instructions.

> [!NOTE]
> **Note** : The Edge [all-in-one (AIO)](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt#allinoneinstallation) and [standalone (2-node)](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt#standaloneinstallation2host) topologies are designed for getting started and prototyping environments, not for production. Therefore, there is no rollback procedure for the [all-in-one (AIO)](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt#allinoneinstallation) and [standalone (2-node)](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt#standaloneinstallation2host) topologies. In the situation where the update of these topologies fails, and retrying the update does not resolve the issue, the easiest option is to do a fresh install of 4.54.00.

## Logging update information

By default, the `update.sh` utility writes log information to:

```
/opt/apigee/var/log/apigee-setup/update.log
```

If the person running the `update.sh` utility does not have access to that directory, it writes the log to the `/tmp` directory as a file named `update_username.log`.

If the person does not have access to `/tmp`, the `update.sh` utility fails.

## Zero-downtime update

A zero-downtime update, or rolling update, lets you update your Edge installation without bringing down Edge.

Zero-downtime update is only possible with a 5-node configuration and larger.

The key to zero-downtime upgrading is to remove each Router, one at a time, from the load balancer. You then update the Router and any other components on the same machine as the Router, and then add the Router back to the load balancer.

1. Update the machines in the correct order for your installation as described in [Order of machine update](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#orderofmachineupdate) .

2. When it is time to update the Routers, select any one Router and make it unreachable, as described in [Enabling/Disabling server (Message Processor/Router) reachability](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt) .

3. Update the selected Router and all other Edge components on the same machine as the Router. All Edge configurations show a Router and Message Processor on the same node.

4. Make the Router reachable again.

5. Repeat steps 2 through 4 for the remaining Routers.

6. Continue the update for any remaining machines in your installation.

Take care of the following before and after the update:

- On combined Router and Message Processor node:

  - Before update -- perform the following:

    1. [Make the Router unreachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonarouter).

    2. [Make the Message Processor unreachable.](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonamessageprocessor)

  - After update -- perform the following:

    1. [Make the Message Processor reachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonamessageprocessor).

    2. [Make the Router reachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonarouter).

- On single Router nodes:

  - Before update, [make the Router unreachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonarouter).

  - After update, [make the Router reachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonarouter).

- On single Message Processor nodes:

  - Before update, [make the Message Processor unreachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonamessageprocessor).

  - After update, [make the Message Processor reachable](https://docs.apigee.com/private-cloud/v4.54.00/enablingdisabling-server-message-processorrouter-reachability.md.txt#disablingenablingreachabilityonamessageprocessor).

## Use a silent configuration file

You must pass a silent configuration file to the update command. While the silent configuration file is mostly similar to the one you used to install Edge for Private Cloud 4.53.00 or 4.53.01, you may need to make changes for components such as the UI and SSO, as described in [Upgrade to New Edge UI and Apigee SSO (If Installed)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-edge-management-ui).

## Update to 4.54.00 on a node with an external internet connection

Use the following procedure to update the Edge components on a node:

1. If present, disable any `cron` jobs configured to perform a repair operation on Cassandra until after the update completes.

2. Log in to your node as root to install the Edge RPMs.

   Note: While RPM installation requires root access, you can perform Edge configuration without root access.
3. Disable SELinux as described in [Install the Edge apigee-setup utility](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-apigee-setup-utility.md.txt) .

4. **If you are installing on AWS**, execute the following yum-configure-manager commands:

   ```
   yum update rh-amazon-rhui-client.noarch
   yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
   ```
5. If you are currently on Edge for Private Cloud 4.53.00 (or) 4.53.01:

   1. Download the Edge `bootstrap_4.54.00.sh` file to `/tmp/bootstrap_4.54.00.sh` :

      ```
      curl https://software.apigee.com/bootstrap_4.54.00.sh -o /tmp/bootstrap_4.54.00.sh
      ```
   2. Install the Edge 4.54.00 `apigee-service` utility and dependencies by executing the following command:

      ```
      bash /tmp/bootstrap_4.54.00.sh apigeeuser=uName apigeepassword=pWord
      ```

      Where <var translate="no">uName</var>:<var translate="no">pWord</var> are the username and password you received from Apigee. If you omit <var translate="no">pWord</var>, you will be prompted to enter it.

      By default, the installer checks that you have Java 17 \& 21 installed.
   3. Use `apigee-service` to update the `apigee-setup` utility, as the following example shows:

      ```
      /opt/apigee/apigee-service/bin/apigee-service apigee-setup update
      ```
   4. Update the `apigee-validate` utility on the Management Server, as the following example shows:

      ```
      /opt/apigee/apigee-service/bin/apigee-service apigee-validate update
      ```
   5. Update the `apigee-provision` utility on the Management Server, as the following example shows:

      ```
      /opt/apigee/apigee-service/bin/apigee-service apigee-provision update
      ```
   6. Run the `update` utility on your nodes by executing the following command:

      ```
      /opt/apigee/apigee-setup/bin/update.sh -c component -f configFile
      ```

      Do this in the order described in [Order of machine update](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#orderofmachineupdate).

      Where:
      - `component` is the Edge component to update. Possible values include:

        - `edge` : All Edge components except New Edge UI: Management Server, Message Processor, Router, QPID Server, Postgres Server

        - `ldap` : OpenLDAP

        - `ue` : New Edge UI

        - `qpid` : Apigee Qpid

        - `ps` : Apigee Postgresql

        - `zk` : ZooKeeper

        - `cs` : Cassandra

      - `configFile` is the same configuration file that you used to [define your Edge components](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-components-node.md.txt#installedgecomponents) during the 4.53.00 (or) 4.53.01 installation.

      > [!NOTE]
      > **Note**: The configuration file must be readable by the "apigee" user. To change the owner, use the following command:
      >
      > ```
      > chown apigee:apigee configFile
      > ```

      You can run `update.sh` against all components by setting `component` to "all", but only if you have an Edge all-in-one (AIO) installation profile. For example:

      ```
      /opt/apigee/apigee-setup/bin/update.sh -c all -f configFile
      ```
   7. Restart the New Edge UI components on all nodes running them, if you haven't done so already:

      ```
      /opt/apigee/apigee-service/bin/apigee-service edge-management-ui restart
      ```
   8. Test the update by running the `apigee-validate` utility on the Management Server, as described in [Test the install](https://docs.apigee.com/private-cloud/v4.54.00/test-install.md.txt).

If you later decide to roll back the update, use the procedure described in [Roll back 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/rollback-45400.md.txt)

## Update to 4.54.00 from a local repo

If your Edge nodes are behind a firewall, or in some other way are prohibited from accessing the Apigee repository over the Internet, then you can perform the update from a local repository, or mirror, of the Apigee repo.

After you create a local Edge repository, you have two options for updating Edge from the local repo:

- Create a .tar file of the repo, copy the .tar file to a node, and then update Edge from the .tar file.

- Install a webserver on the node with the local repo so that other nodes can access it. Apigee provides the Nginx web server for you to use, or you can use your own web server.

To update from a local 4.54.00 repo:

1. Create a local 4.54.00 repo as described in "Create a local Apigee repository" at [Install the Edge apigee-setup utility](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-apigee-setup-utility.md.txt).

   > [!NOTE]
   > **Note:** If you already have an existing repo, you can add the 4.54.00 repo to it as described in "Update a local Apigee repository" at [Install the Edge apigee-setup utility](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-apigee-setup-utility.md.txt).

2. Install `apigee-service` on the target nodes using one of the following methods:

   - **Option 1: Install apigee-service from a .tar file**

     1. On the node with the local repo, use the following command to package the local repo into a single .tar file named `/opt/apigee/data/apigee-mirror/apigee-4.54.00.tar.gz`:

        ```
        /opt/apigee/apigee-service/bin/apigee-service apigee-mirror package
        ```
     2. Copy the .tar file to the node where you want to update Edge. For example, copy it to the `/tmp` directory on the new node.

     3. On the new node, untar the file to the `/tmp` directory:

        ```
        tar -xzf apigee-4.54.00.tar.gz
        ```

        This command creates a new directory, named repos, in the directory containing the .tar file. For example `/tmp/repos`.
     4. Install the Edge `apigee-service` utility and dependencies from `/tmp/repos`:

        ```
        bash /tmp/repos/bootstrap_4.54.00.sh apigeeprotocol="file://" apigeerepobasepath=/tmp/repos
        ```

        Notice that you include the path to the repos directory in this command.
   - **Option 2: Install apigee-service using the Nginx web server**

     1. Configure the Nginx web server as described in "Install from the repo using the Nginx web server" at [Install the Edge apigee-setup utility](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-apigee-setup-utility.md.txt).

     2. On the remote node, download the Edge `bootstrap_4.54.00.sh` file to `/tmp/bootstrap_4.54.00.sh`:

        ```
        /usr/bin/curl http://uName:pWord@remoteRepo:3939/bootstrap_4.54.00.sh -o /tmp/bootstrap_4.54.00.sh
        ```

        Where <var translate="no">uName</var>:<var translate="no">pWord</var> are the username and password you set previously for the repo, and <var translate="no">remoteRepo</var> is the IP address or DNS name of the repo node.
     3. On the remote node, install the Edge `apigee-service` utility and dependencies:

        ```
        bash /tmp/bootstrap_4.54.00.sh apigeerepohost=remoteRepo:3939 apigeeuser=uName apigeepassword=pWord apigeeprotocol=http://
        ```

        Where <var translate="no">uName</var>:<var translate="no">pWord</var> are the repo username and password.
3. Use `apigee-service` to update the `apigee-setup` utility, as the following example shows:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-setup update
   ```
4. Update the `apigee-validate` utility on the Management Server, as the following example shows:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-validate update
   ```
5. Update the `apigee-provision` utility on the Management Server, as the following example shows:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-provision update
   ```
6. Run the `update` utility on your nodes in the order described in [Order of machine update](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#orderofmachineupdate):

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c component -f configFile
   ```

   Where:
   - `component` is the Edge component to update. Possible values include:

     - `edge` : All Edge components except New Edge UI: Management Server, Message Processor, Router, QPID Server, Postgres Server

     - `ldap` : OpenLDAP

     - `ue` : New Edge UI

     - `qpid` : Apigee Qpid

     - `ps` : Apigee Postgresql

     - `zk` : ZooKeeper

     - `cs` : Cassandra

   - `configFile` is the same configuration file that you used to [define your Edge components](https://docs.apigee.com/private-cloud/v4.54.00/install-edge-components-node.md.txt#installedgecomponents) during the 4.53.00 (or) 4.53.01 installation.

     **Note:** The configuration file must be readable by the "apigee" user. To change the owner, use the following command:

     ```
     chown apigee:apigee configFile
     ```

   You can run `update.sh` against all components by setting `component` to "all", but only if you have an Edge all-in-one (AIO) installation profile. For example:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c all -f configFile
   ```
7. Restart the UI components on all nodes running it, if you haven't done so already:

   ```
   /opt/apigee/apigee-service/bin/apigee-service edge-management-ui restart
   ```
8. Test the update by running the `apigee-validate` utility on the Management Server, as described in [Test the install](https://docs.apigee.com/private-cloud/v4.54.00/test-install.md.txt).

If you later decide to roll back the update, use the procedure described in [Roll back 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/rollback-45400.md.txt).

## Order of machine update

The order that you update the machines in an Edge installation is important. Upgrade your components in the below sequence.

1. Upgrade all Router and Message Processor nodes across all data centers using the `-c edge` option.

2. Upgrade all Management Server nodes across all data centers using the `-c edge` option.

3. Upgrade all LDAP nodes across all the data centers. If you are upgrading from Edge for Private Cloud 4.53.00, you will need to follow additional steps to [special steps of LDAP upgrade](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#openldapupgrade)

4. Upgrade UI and Apigee SSO (if installed) across all data centers:

   1. **If apigee-sso is not installed:** Follow [Option 1: Upgrade UI (without Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-without-apigee-sso) to upgrade to the New Edge UI.

   2. **If apigee-sso is installed:** Follow [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) to upgrade to New Edge UI and Apigee SSO.

5. Upgrade all Qpid and edge-qpid-server components across all the data centers by following the [special steps of Qpid](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-qpid).

6. Upgrade all Postgresql and edge-postgres-server components across all the data centers by following the [special steps of Postgres](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgradetopostgres)

7. Upgrade all Zookeeper components across all the data centers by following the [special steps of Zookeeper upgrade](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-zookeeper).

8. Upgrade all Cassandra components across all the data centers by following the [special steps of Cassandra upgrade](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#cassandraupgrade).

9. There is no separate step to update Monetization. It is updated when you specify the `-c edge` option.

### 1-node standalone upgrade

**To upgrade a 1-node standalone configuration to 4.54.00:**

When upgrading from Edge for Private Cloud 4.53.00, LDAP must be upgraded first by following the [Steps to upgrade from 4.53.00 to 4.54.00](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#openldap-preparation) before starting the upgrade of all components.

1. Update all components:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c all -f configFile
   ```
2. (If you installed `apigee-adminapi`) Update the apigee-adminapi utility:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
   ```

### 2-node standalone upgrade

Update the following components for a 2-node standalone installation:

See [Installation topologies](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt) for the list of Edge topologies and node numbers.

1. Update Edge components on machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
2. Update LDAP on machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
   ```
3. Update the New Edge UI on machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
   ```

   > [!NOTE]
   > **Note:** If `apigee-sso` is installed, please refer to [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) for instructions on configuring it to Apigee SSO.

4. Update Edge components on machine 2:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
5. Update Qpid on Machine 2:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
   ```
6. Update Postgres on machine 2:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
7. Update Cassandra and ZooKeeper on machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c zk,cs -f configFile
   ```
8. (If you installed `apigee-adminapi`) Update the apigee-adminapi utility on machine 1:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
   ```

### 5-node upgrade

Update the following components for a 5-node installation:

See [Installation topologies](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt) for the list of Edge topologies and node numbers.

1. Update Edge components on machine 2, 3, 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
2. Update LDAP on machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
   ```
3. Update the New Edge UI in machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
   ```

   > [!NOTE]
   > **Note:** If `apigee-sso` is installed, please refer to [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) for instructions on configuring it to Apigee SSO.

4. Update Edge components on machine 4, 5:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
5. Update Qpid on machine 4, 5:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
   ```
6. Update Postgres on machine 4, 5:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
7. Update Cassandra and ZooKeeper on machine 1, 2, and 3:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c zk,cs -f configFile
   ```
8. (If you installed `apigee-adminapi`) Update the apigee-adminapi utility on machine 1:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
   ```

### 9-node clustered upgrade

Update the following components for a 9-node clustered installation:

See [Installation topologies](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt) for the list of Edge topologies and node numbers.

1. Update Edge components on machine 4, 5, and 1 (router, message-processor \& management-server) in that order:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
2. Update LDAP on machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
   ```
3. Update the New Edge UI in machine 1:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
   ```

   > [!NOTE]
   > **Note:** If `apigee-sso` is installed, please refer to [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) for instructions on configuring it to Apigee SSO.

4. Update Edge components on machine 6, 7, 8, and 9 in that order:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
5. Update Qpid on machines 6 and 7:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
   ```
6. Update Postgres on machine 8:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
7. Update Postgres on machine 9:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
8. Update Cassandra and ZooKeeper on machine 1, 2, and 3:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c zk,cs -f configFile
   ```
9. (If you installed `apigee-adminapi`) Update the apigee-adminapi utility on machine 1:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
   ```

### 13-node clustered upgrade

Update the following components for a 13-node clustered installation:

See [Installation topologies](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt) for the list of Edge topologies and node numbers.

1. Update Edge components on machines 10, 11, 6, and 7 in that order:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
2. Update LDAP on machine 4 and 5:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
   ```
3. Update the New Edge UI in machine 6, 7:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
   ```

   > [!NOTE]
   > **Note:** If `apigee-sso` is installed, please refer to [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) for instructions on configuring it to Apigee SSO.

4. Update Edge components on machines 12, 13, 8, and 9 in that order:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
   ```
5. Update Qpid on machines 12 and 13:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
   ```
6. Update Postgres on machine 8:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
7. Update Postgres on machine 9:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
   ```
8. Update Cassandra and ZooKeeper on machines 1, 2, and 3:

   ```
   /opt/apigee/apigee-setup/bin/update.sh -c zk,cs -f configFile
   ```
9. (If you installed `apigee-adminapi`) Update the apigee-adminapi utility on machines 6 and 7:

   ```
   /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
   ```

### 12-node clustered upgrade

Update the following components for a 12-node clustered installation:

See [Installation topologies](https://docs.apigee.com/private-cloud/v4.54.00/installation-topologies.md.txt) for the list of Edge topologies and node numbers.

1. Update Edge (Router \& Message Processor) components:

   - On machines 2, 3 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
     ```
   - On machines 8, 9 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
     ```
2. Update Edge (Management Server) components:

   - On machine 1 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
     ```
   - On machine 7 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
     ```
3. Update LDAP:

   - Machine 1 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
     ```
   - Machine 7 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ldap -f configFile
     ```
4. Update New Edge UI components:

   - On machine 1 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
     ```

     > [!NOTE]
     > **Note:** If `apigee-sso` is installed, please refer to [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) for instructions on configuring it to Apigee SSO.

   - On machine 7 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ue -f configFile
     ```

     > [!NOTE]
     > **Note:** If `apigee-sso` is installed, please refer to [Option 2: Upgrade UI (with Apigee SSO)](https://docs.apigee.com/private-cloud/v4.54.00/update-apigee-edge-4530x-45400.md.txt#upgrade-ui-with-apigee-sso) for instructions on configuring it to Apigee SSO.

5. Update Edge components:

   - Machines 4, 5, 6 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
     ```
   - Machines 10, 11, 12 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c edge -f configFile
     ```
6. Update qpidd:

   - Machines 4, 5 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
     ```
   - Machines 10, 11 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c qpid -f configFile
     ```
7. Update Postgres:

   - Machine 6 in Data Center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
     ```
   - Machine 12 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c ps -f configFile
     ```
8. Update Cassandra and ZooKeeper:

   - Machines 1, 2 and 3 in Data center 1:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c zk,cs -f configFile
     ```
   - On machines 7, 8, and 9 in Data Center 2:

     ```
     /opt/apigee/apigee-setup/bin/update.sh -c zk,cs -f configFile
     ```
9. (If you installed `apigee-adminapi`) Update the apigee-adminapi utility:

   - Machine 1 in Data Center 1:

     ```
     /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
     ```
   - Machine 7 in Data Center 2:

     ```
     /opt/apigee/apigee-service/bin/apigee-service apigee-adminapi update
     ```

### For a non-standard configuration

If you have a non-standard configuration, then update Edge components in the following order:

1. Router

2. Message Processor

3. Management Server

4. LDAP

5. UI (either classic UI or New UI)

6. SSO (if applicable)

7. Qpid and edge-qpid-server

8. Postgres and edge-postgres-server

9. ZooKeeper

10. Cassandra

11. apigee-adminapi

## Remove Java 8 after upgrading to Edge for Private Cloud 4.54.00

After you upgrade all Apigee Edge for Private Cloud components on a node from version 4.53.00 or
4.53.01 to version 4.54.00, you can safely remove Java 8 installations from
that node. After you remove Java 8, restart all Apigee components on
the node and verify that they are running:

```
/opt/apigee/apigee-service/bin/apigee-all restart
/opt/apigee/apigee-service/bin/apigee-all status
```