Installing the Validate Server Package on Linux

This section provides instructions for installing the Validate Server package using the installer.

Before You Begin

  1. Download the packages from Perforce Support. Account credentials are provided when the license is issued. Typically, only one or two users in an organization have access to the Validate technical support portal. If you don't have access, you can register for a new account.
  2. You need a license. Contact Perforce support to obtain a license file.
  3. If you are using Validate 2023.4 with QAC 2023.4, you need to install the Validate RLM server using the installer included in the Validate package. You can do this by selecting Local when prompted to choose a license server location during the installation process.

Installation Notes

  • ulimit -n must be 2048 in order to run the Validate Server.
  • Ensure that the downloaded .sh file is executable. Use the chmod command to set the appropriate permissions:chmod 755 <p4-validate-installer.sh>
  • To control permissions when you are installing Validate, change the value of umask.
  • Install Validate software as a non-root user.
  • Ensure that the path in which you install the product is the same path from which users invoke the product. For example, the local path to the installation might be /local/tools/Validate, but users on other machines have to use the NFS path /opt/tools/Validate to invoke the product. Therefore, to ensure that users can invoke the product, use the /opt/tools/Validate path during installation.
  • Due to issues with file locking, user home directories should not be located on NFS.
  • For some Linux installations, if you want to run the Validate Server, you may be required to install additional third-party libraries. For example: libaio1, libaio, or libaio.x86_64.
  • If you are installing on 64-bit Linux and the target machine has 6 GB or more of memory, the memory settings configuration will be increased to improve performance.
  • The Validate Server and Database Server need to be running on the same machine.
Do not locate the projects_root directory on NFS to avoid issues with file locking.

Running the Installation Package

Run the following command:

p4-validate-installer..x.x.<platform>.sh [options] <install_directory> [<component...>]

where:

  • <platform> is linux.
  • [<options>] are any of the options listed in Command-line options for the Server package.
  • <install_directory> specifies the directory in which you want to install Validate. Do not specify a subdirectory of the projects_root directory. Note that if the chosen directory is not empty, you will not be able to continue with the installation.
  • [<component ...>] is any of the arguments from Arguments for Server Components. Separate multiple components with spaces. If you do not specify one or more components, the entire package will be installed. You can also see a list of arguments for the various components with the --list option.
  • Reprise is the only supported licence provider, support for Flex has been withdrawn.

Command-line Options for the Server Package

Name Short name Description
--agree -a Agree to license terms and do not display license agreement.
--database-port <port_number>   Specify the port number that you will use to run the Database Server. Default: 3306. This option is equivalent to specifying the port number with validate service.
--debug   Print debug information
--force -f Install without integrity checks
--help -h Display this help and exit
--klocwork-port <port_number>   Specify the port number that you will use to run the Validate Server. Default: 8080. This option is equivalent to specifying the port number with validate service.
--license-port <port_number>   Specify that the License Server will be run locally, but on a non-default port. Default: 27000. This option is equivalent to specifying the port number with validate service.
--license-server <host>[:<port>]   Specify a remote License Server host. The host argument is required; the port argument is optional. Default: localhost:27000. This option is equivalent to specifying the host and port with validate service.
--list -l List available features (components)
--projects-root <directory> -p Specify the complete path to a non-default projects_root directory. Default: <install_directory>/projects_root. The directory you specify must meet one of the following conditions:
  • it does not yet exist
  • it is empty
  • it is a valid projects_root directory created previously. Do not specify the same directory as the root Validate installation directory you have specified. Do not install Validate in a subdirectory of the projects_root directory.
--version -v Display the version of Validate software and exit

Arguments for Server Components

Server component Argument
License Server LicenseServer
Validate Server ValidateServer

Add Validate to your PATH

On Linux, we recommend adding <Validate_install>/bin to your PATH. Otherwise, you need to execute commands from <Validate_install>/bin.

Copy the License File

Copy your license file to the following location:

<projects_root>/licenses

Reprise is the only supported licence provider, as support for Flex has been withdrawn.

The license file must have the extension .lic.

Start the Servers

Start the servers with validate service start:

validate service --projects-root <projects_root> start

where <projects_root> is the projects_root directory you specified during installation.

Example

validate service --projects-root /space//projects_root start

You see messages indicating that the servers have been started, showing the server host name and port number and the path to the projects_root. For example:

Using projects root: /space//projects_root Local Host is: serverxyz.com [13.1.1.142]
Starting License Server [started on serverxyz.com:27000] (projects root is /space//projects_root) 
Starting Database Server [started on serverxyz.com:3306] (projects root is /space//projects_root) 
Starting  Server [started on serverxyz.com:8080] (projects root is /space//projects_root)
If you create a script to start the Validate servers automatically, do not name your script 'Validate' as it will interfere with existing processes.

Log in to Validate

After starting the Validate servers, Validate is accessible from a browser using the URL of the Validate server hostname and the Validate server port chosen during the install (for example, server21:8080). By default, the person who installed Validate is set as the Validate administrator, and is given the Projects root admin role. Initially, the Basic Authentication access control method is used, so no password is needed to log in. For example, if the user account used during the installation was ‘jsmith’, to log in to Validate with the administrator role, use the credentials:

username: jsmith
password: <empty>