JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc

Installation: Hub Setup: Upgrading an Existing Hub

This section is for users who need to upgrade an existing CodeSonar Hub as part of the CodeSonar installation.

CodeSonar SaaS Note: if you are using CodeSonar SaaS, contact CodeSecure support to arrange a convenient time for your SaaS hub to be upgraded. You do not need to perform the hub upgrade steps on this page.



Overview

Upgrading a CodeSonar hub involves several major steps.

The remainder of this page describes these steps and provides links to further information.

A. Identify the Hub

Identify the hub you would like to upgrade. You will need the following information:

B. Preliminary Steps

  1. If you have not already upgraded the CodeSonar installation on the hub machine, follow the Installing or Upgrading CodeSonar instructions to upgrade it before proceeding.
  2. In certain upgrade cases, the hub upgrade procedure will include a phase in which you are prompted to specify a 'new' password for the hub Administrator account. The previous Administrator password will be discarded.
    The upgrade cases that will require you to specify a 'new' Administrator password are as follows. Note that you can respecify your previous Administrator password if you wish, provided it is sufficiently strong. If your upgrade situation matches one of these cases: (For other upgrade cases, your current Administrator password will be preserved.)
  3. Check that users without hub administration privileges do not have access to the hub directory. If necessary, use file system security controls to adjust the relevant permissions.
  4. If your hub is set up to perform streaming replication, follow the instructions in Task: Back Up and Restore a Hub Database: When You Upgrade CodeSonar to move your current backup to a new location.
  5. During the upgrade process, the hub database contents will be temporarily output to file UPDUMP in the hub directory (this is independent of any streaming replication you may be performing). If this is not a suitable location, for example because there is not sufficient space in that location, set environment variable CSHUB_DUMP_FILE=/your/preferred/file/path in the environment from which you will run codesonar config.

    If you wish to make this change:

    1. Exit from the configuration tool if it is currently running.
    2. Set environment variable CSHUB_DUMP_FILE and run codesonar config.
      (Windows note: run from a command prompt, rather than from the start menu or the desktop.)

C. Upgrade the Hub

Once you have identified the hub and upgraded the CodeSonar installation on the hub machine, perform the hub upgrade as follows.

  1. If the CodeSonar configuration tool is not already running on the hub machine, start it now.
    codesonar config
    Windows users can also select CodeSonar > CodeSonar Configuration Tool from the Windows Start menu.

    The configuration tool main menu will be displayed.

  2. Windows-Enter 7 at the prompt to select option 7 ("Upgrade hub") from the main menu.
    Linux-Enter 6 at the prompt to select option 6 ("Upgrade hub") from the main menu.
  3. The configuration tool will ask you which hub you want to upgrade. If the hub is currently running, CodeSonar will shut it down. It will then upgrade and restart the hub.
  4. As the hub restarts, the tool may prompt you to specify a password for the hub Administrator account. [Windows only] If the restart appears to be taking a long time to finish, it may be waiting for services authentication. (If you are working in other windows while running CodeSonar those windows might be obscuring the authentication dialog: if you don't see a dialog, move the other windows to check underneath). See CodeSonar as a Windows Service for more information.
  5. When prompted, press Enter to continue.
  6. The configuration tool main menu will be displayed, and your upgraded hub should appear in the table of known hubs.
  7. If there is a firewall on your system, you may need to configure it to permit connections to and from the hub. See FAQ: How do I allow hub access through a firewall?.
  8. If you want to back up your hub, follow the instructions in Task: Back Up and Restore a Hub Database: Unencrypted Communication or Task: Back Up and Restore a Hub Database: TLS Communication to set up a new standby database.
  9. Go on to Hub Setup: Hub License Key.

Troubleshooting

The following entries from Frequently Asked Questions: Hub and User Accounts are particularly relevant.

 

To report problems with this documentation, please visit https://support.codesecure.com/.