nativeInstallercodedx

Prepare to upgrade Code Dx

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

If you are presented with a summary of issues during a Code Dx upgrade, you may want to clean your current installation before continuing.

Clean file system

The upgrade process expects specific file(s) or folder(s) in the installation directory. If you are presented with a list of files, you could continue with the upgrade process by following the steps below:

  • Open the installation directory (Eg: C:\Program Files\Code Dx or /opt/codedx/codedx).
  • Remove the specified file(s) or folder(s) and leave the backup folder (backup-timestamp), the upgrade.ini file, and the properties.ini file.

Free ports

The upgrade process requires certain ports to be available. If you are presented with a list of ports, you could free them by following the steps below:

NOTE: In the example below, we will assume we have been presented with the port “8009”.

Windows

  • Open the “Resource Monitor” application as an administrator.
  • Click the “Network” tab.
  • Click the “TCP Connections” bar to see a list of TCP connections established.
  • Look for one of the ports in the presented list:

    Codedx system ready

  • In order to continue with the upgrade process, you have to make sure that the presented ports are available. You have two options to do so:

    • Option 1: If you see a process using your port in the “Image” column, you should stop the service or application that spawned that process or end the current process:

      • Open the “Task Manager”, search for the process name in the “Details” tab.
      • Right-click on the process and select the “End process tree” option.

        Codedx system ready

    • Option 2: If you see a “-” in the “Image” column, associated with your port, please wait until it disappears from the list.

      Codedx system ready

Linux and OS X

  • List the processes listening a TCP connection using the command line:

    $ sudo lsof -iTCP:8009 -sTCP:LISTEN
    COMMAND   PID    USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
    java    81106 bitnami   50u  IPv4 40576813      0t0  TCP *:8009 (LISTEN)
    
  • In order to continue with the upgrade process, you have to make sure that the presented ports are available. You should stop the service that spawned the process or end the current process (see the number under the PID column):

    $ sudo kill -15 81106
    

Remove services

On Windows, the upgrade process requires specific Code Dx services. Other Code Dx services should be removed. If you are presented with a list of services, you could remove them by following the steps below:

NOTE: In the example below, we will assume we have been presented with the service “CodeDxMariaDB”.

  • Open the “Command Prompt” application as an administrator.
  • Remove the presented service by doing:

    > sc delete CodeDxMariaDB
    [SC] DeleteService SUCCESS
    
Last modification September 3, 2018