Prepare to upgrade Code Dx
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.
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”.
- 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:
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:
Option 2: If you see a “-” in the “Image” column, associated with your port, please wait until it disappears from the list.
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
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