Installing the server in interactive mode#

In interactive mode, you install the server by typing configuration information on the command line.

If you are adding the server to a high-availability cluster, including as a cold standby server:

For information about high-availability clusters, see High availability and failover. For information about cold standby, see Adding cold standby servers.

The properties that are set during installation are recorded in the file server_install/conf/server/installed.properties on the server.

  1. Download and extract the installation files for HCL Launch. These files are available for download from the HCL FlexNet Operations portal.

  2. If you are using a database other than Apache Derby, place the JAR file for the database in the lib/ext folder of the installation files.

  3. From the command line, run the server installer program.

    • On Windows™, run the install-server.bat file.
    • On Linux, run ./install-server.sh.
    • To install a FIPS-compliant server, add the switch -fips to the command, such as install-server.sh -fips.

      Note: If you install a FIPS-compliant server, cloud provisioning is not available. Your JVM connects to only FIPS 140-2 certified IBM providers.

    Depending on your system settings, you might need to run this file as an administrator.

  4. Specify the configuration information as the installation program prompts you.

    • *Enter the directory of the server to upgrade(leave blank for installing to a clean directory).*

      To install HCL™ Launch, press Enter.

    • *Enter the home directory for the JRE/JDK that the new server or already installed server uses.*

      Specify the location of the JRE or JDK for the server. The default value is the value of the JAVA_HOME system variable.

  5. Read the license agreements for the software package. Press Enter to show one page at a time, or press F and then press Enter to show the entire license at once.

  6. If you agree to the terms of all of the license agreements, press Y and then press Enter.

  7. Specify the following information as the installation program prompts you.

    Accept the default values (displayed within brackets) by pressing Enter. If two options are given, such as [Y/n], the capitalized option is the default value.

    • *Enter the directory where the HCL™ Launch server should be installed.*

      Specify the installation directory for the server. The default server installation directory is /opt/ucd/server on Linux™ and C:\Program Files\ucd\server on Windows™.

      Note: Do not use any shell expansions or abbreviations, such as the tilde character (~).

    • *The specified directory does not exist. Do you want to create it?*

      Press Y to create the installation directory.

    • *Will this server be used as a node in a high availability cluster?*

      Press Y to add the server to a high-availability (HA) cluster, including cold standby clusters. Selecting this option sets the property com.urbancode.ds.UDeployServer.multiserver to true on the new server, which indicates that it is part of a high-availability installation.

    • *Where should the server store application data such as logs, plugins, and keystores?*

      Type the name of the application data directory. The directory must be accessible to the server, and you must have the appropriate permissions. If you are installing a node in a high-availability cluster, this directory must be on the cluster network storage. The default application data folder is /opt/ibm-ucd/server/appdata on Linux™ and C:\Program Files\ibm-ucd\server\appdata on Windows™.

      Depending on whether the shared folder exists or is empty, you are prompted with one of the following options:

      • If the folder does not exist, you are prompted with the following option: The specified directory for application data doesn't exist. Do you want to create it?. Press Y to create the application data directory. If you select N, the installation process ends.
      • If the shared folder exists and is not empty, you are prompted with the following option: The specified directory for shared resources already exists and is non-empty. Do you want to use the existing data?. Press Y to use the data. If you select N, the installation process ends; in this case, you must manually clear the application data folder to use it.
      • If the shared folder exists but is empty, the folder is used and you are not prompted to use the existing data. Note: Do not use any shell expansions or abbreviations, such as the tilde character (~).
    • *What host name will users access the web UI at?*

      If you are installing a stand-alone server, specify the host name of the computer that hosts the server. If you are installing a stand-alone server in a production environment, consider specifying a host name that is not tied to the physical computer. By specifying such a host name, you can expand the server to a high-availability system later. If you are installing a server in a high-availability cluster, specify the host name of the load balancer for the cluster.

      The server listens on all IP addresses that are available to it, not just this host name or IP address.

    • *Do you want the Web UI to always use secure connections using SSL?*

      Press Y to use secure connections to the server. If you select this option, you must configure a certificate for the server; see Configuring SSL on Apache Tomcat and LDAP servers.

    • *Enter the port on which the Web UI should listen for secure HTTPS requests.*

      Specify the HTTPS port for the server. The default value is 8443. If you are installing HCL™ Launch, UrbanCode Velocity, and IBM® UrbanCode™ Release, be sure to use a different port for each product. If you are installing multiple instances of HCL™ Launch on the same computer, be sure to use a different port for each instance.

    • *Enter the port on which the Web UI should redirect unsecured HTTP requests.*

      Specify the HTTP port for the server. The default value is 8080.If you are installing HCL™ Launch, UrbanCode Velocity, and IBM® UrbanCode™ Release, be sure to use a different port for each product. If you are installing multiple instances of HCL™ Launch on the same computer, be sure to use a different port for each instance.

    • *Enter the initial password for the admin user.*

      Specify the starting password for the administrator account on the server. The administrator user name is admin. Then, type the password again to verify it.

    • *Enter the port to use for JMS agent communication.*

      Specify the port that JMS agents use to contact the server. The default value is 7918.

    • *Do you want the Server and Agent communication to require mutual authentication? This requires a manual key exchange between the server and each agent. See the documentation for more details.*

      If you use mutual authentication, you must manually exchange a key between the server and each agent. For more information about this option, see Configuring mutual authentication.

    • *Enter the web agent communication URL for this server.*

      The WebSocket secure URL must have the format wss://host-or-ip:port. For example, wss://myUCD:7919. The default WebSocket port is 7919. Each server must have a unique URL, and every server in a HA cluster must be able to connect to this URL. Web agents use this URL to communicate with the sever. When you install an agent, you determine its type, either WEB or JMS.

    • *Create database schema?*

      In most cases, press Y to create new schema definitions in the database. However, if you have a pre-populated database, such as if you are adding a server to a cluster, press N. If you are adding the server to a high-availability cluster, press N unless the server is the first node in the cluster.

    • *Enter the database type to use.*

      Specify the type of database. If you select derby, the installation program installs a new instance of Apache Derby for the server to use. Depending on the type of database that you select, new fields appear for information about the database. Valid values are derby, mysql, oracle, sqlserver, db2, and db2zos.

      Warning: Derby is for evaluation purposes only; do not use Derby for a production server. In addition, if you install the server as a node in a high-availability cluster, you cannot use Derby.

      If you specify db2zos, you are prompted to enter the database name, which is not necessarily the database location.

      If you specify a type other than derby, specify the following database-related parameters:

      • *Enter the database driver.*

        Specify the class name of the database driver.

      • *Please place the jar file containing the driver for your database inside the lib/ext directory in the HCL™ Launch installer.*

        Verify that you placed the JAR file for the database driver in the lib/ext folder of the installation program and then press Enter.

      • *Enter the database connection string.*

        Specify the complete connection string for the database, such as the following string:

        jdbc:db2://localhost:50000/ibm_ucd

      • *Enter the database schema name.*

        Specify the name of the database schema to create or use. This field is required on Windows™ if the user has the database administrator role. This field applies only to Oracle databases.

    • *Enter the database username.*

      Specify the user name for the database. If you are creating the database schema, this user must have permission to create tables in the database.

    • *Enter the database password.*

      Specify the password for the database.

  8. If you are installing on Windows, the installation program prompts you with the following questions after a pause:

    • *Do you want to install the Server as Windows service?*

      Press Y to install the server as a Windows™ service.

    • *Enter a unique service name. No spaces allowed.*

      Specify a name for the Windows™ service. The name must be unique on the system and must not contain spaces.

    • *Enter the user account name including domain path to run the service*

      Specify the user account with which to run the service, including the domain path. Prefix local accounts with a period, such as .\localsystem.

    • *Do you want to start the service automatically?*

      Press Y to start the server automatically. Otherwise, you can start and stop the server manually. See Starting and stopping the server.

    • *User account password*

      Specify the password for the user account.

The installation program installs the server. If you install the server as a node in high-availability cluster, the installer loads the existing encryption keystore that is in the shared storage folder by using the default settings. If the default password is incorrect, you are prompted for the password. If after three attempts you do not enter the correct password, the installation process stops. If the keystore has more than one alias, you are prompted to specify an alias.

To start the server, see Starting and stopping the server.

If you selected mutual authentication, set up the authentication. See Configuring mutual authentication.

When you run the server for the first time, you might see an error message that says that no agent or tag is configured to import new component versions. To import component versions, including built artifacts, you must use an agent, and the server requires that you specify a default agent for this purpose. You can override this default setting when you create a component. Follow these steps to specify a default agent or agent tag:

If you see "Out of memory" errors, increase the amount of memory that is available to the HCL Launch service. See Increasing the amount of memory that is available to the server.

If you are using Derby, you might see the following error in the results of the installation program:

[echo]     waiting for db to start - 6 seconds remaining
[echo]     waiting for db to start - 3 seconds remaining
[echo] Could not start database
[echo] Stopping embedded database ...
[java] Tue Feb 04 09:11:25 EST 2014 : Could not connect 
  to Derby Network Server on host localhost, port 11377: 
  Connection refused

If you see this error, you must change the default security settings for the Java installation on the server:

  1. Open the Java security policy file in a text editor. If you are using a Java Runtime Environment (JRE), this file is at the location JAVA_HOME/lib/security/java.policy, where JAVA_HOME is the base folder of the Java installation. If you are using a Java Development Kit (JDK), the file is at the location JAVA_HOME/jre/lib/security/java.policy.
  2. In the java.policy file, in the section that is labeled // default permissions granted to all domains, within the grant{} block, add the following code:

    permission java.net.SocketPermission "localhost:11377", "listen";

  3. Run the installation program again.

Parent topic: Installing the server