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.
- If you haven't yet upgraded your CodeSonar installation
(or installed CodeSonar at all), go back to Installing or Upgrading CodeSonar and
follow the instructions on that page.
- If you do not have a hub, or you have a hub but it does not
need to be upgraded, go back to Installation: Setting Up The Hub and
use the decision tree provided to navigate to the appropriate hub
setup instructions.
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.
Upgrading a CodeSonar hub involves several major steps.
- A. Identify the hub to be
upgraded.
- B. Perform any necessary preliminary
steps.
- C. Perform the upgrade.
The remainder of this page describes these steps and provides
links to further information.
Identify the hub you would like to upgrade. You will need the
following information:
- 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.
- 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.
- Upgrading from a CodeSonar version before 4.2 to version
4.2 or later.
- Upgrading from a CodeSonar version before 4.5 to version
4.5 or later.
If your upgrade situation matches one of these cases:
(For other upgrade cases, your current Administrator password will be preserved.)
- 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.
- 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.
- 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:
- Exit from the configuration tool if it is currently
running.
- 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.)
Once you have identified the hub and
upgraded the CodeSonar
installation on the hub machine, perform the hub upgrade as
follows.
- 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.
- 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.
- The configuration tool will ask you which hub you want to
upgrade.
- If one of the presented options corresponds to the hub you identified in step A, enter the
option number at the prompt.
- Otherwise, select the option number corresponding to
"Specify hub directory", then enter the absolute path
to the hub directory when prompted.
If the hub is currently running, CodeSonar will shut it down. It
will then upgrade and restart the hub.
- 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.
- When prompted, press Enter to
continue.
- The configuration tool main
menu will be displayed, and your upgraded hub should appear in
the table of known
hubs.
- 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?.
- 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.
- Go on to Hub Setup: Hub
License.
The following entries from Frequently Asked Questions: Hub and User
Accounts are particularly relevant.