Troubleshooting your installation
Troubleshooting your installationNeed a hand with your installation? Did you have trouble installing the product? This section describes basic installation issues and provides troubleshooting information. Repairing a Windows installation of KlocworkIf files in the Klocwork installation were accidentally damaged or deleted, you can repair the installation. You may discover that your Klocwork installation is damaged, for example, if you are attempting to uninstall Klocwork and see the error message "Fatal error: Cannot uninstall". If this occurs, click OK in the error message dialog to cancel the uninstallation, perform the following repair procedure, and then run the uninstallation procedure again. To repair a Klocwork installation on Windows:
Unable to start the Database Server because the path to the socket file is too longIf the path to the socket file (including separators and the name of the socket file) is greater than 107 characters, you will be unable to start the Klocwork Database Server. The database log will indicate that this is the problem. The socket file is located in the following directory: <projects_root>/locks To remedy this situation, move your projects to another projects_root with a path length of less than 68-72 characters, depending on the length of the Database Server port number (which can be 1 to 5 characters). For help moving a projects_root, see Moving or creating additional projects_root directories. Unable to start Klocwork Servers following Windows installationIf you see one of the following messages after installing the Klocwork Server package on Windows:
An earlier version of the Klocwork Server and/or Klocwork License Server may be running on the port that you specified during installation of Klocwork 2018.1. It is not possible to run two versions of a server on the same port. You need to set a different port number for the Klocwork Server and/or Klocwork License Server with kwservice set-service-property, and then start the servers. Database connection errorImportant: Due to MySQL limitations, the projects_root directory should not be located on NFS. It has a special file locking implementation which is not fully supported by MySQL. See also the warning in the MySQL documentation.
If you see the following error: Error occurred while connecting to database: Database connection to <database> refused: Communications link failure due to underlying exception Check the host name in the error message. If the host name is not a fully qualified host name that includes the domain (for example, server1.klocwork.com), you need to set the fully qualified domain name for the Database Server. To do this:
Package Load Failure occurs in Visual Studio after I install patchDo one of the following:
regsvr32 IfPkgVS2005.dll |