K2 blackpearl Product Documentation: Installation and Configuration Guide
Install K2 blackpearl Host Server

Install and configure a K2 Host Server

Download: You can download an Excel Workbook to help you organize your K2 blackpearl installation by clicking here. Use this checklist to ensure that all topics have been read, understood and implemented successfully before, during and after K2 blackpearl installation. The checklist includes all possible items for both Standalone and Distributed installations. Please read the Reference Topic to determine if the item applies to your environment.

There is also a worksheet where users can record their configured settings as reference.

Prerequisites

 

The K2 Server role is defined to be the server on which the K2 Host Server runs. The K2 Server component, configuration manager, and K2 documentation will be installed on this server.

The same version of K2 blackpearl must be installed on all K2 servers in the distributed environment.

The K2 Server role requires the following prerequisites:

K2 blackpearl Prerequisites for the K2 Server
Operating System
Windows Components
  • Microsoft Message Queuing (MSMQ) Services
    • Message Queuing Server
    • Directory Service Integration
  • A User Manager: The default User Manager is Active Directory (AD), but a custom user manager may be configured for use with K2 blackpearl
  • Distributed Transaction Coordinator (DTC)
  • IPv4 (IPv6 can exist, but IPv4 must also be configured)
Additional Software

Note: Windows Support Tools is a prerequisite if the installer is to automatically set the SPNs during the installation of K2 blackpearl. Otherwise, the Windows Support Tool is regarded as optional software.

While infrastructure changes are required by K2, each environment is different and has its peculiarities which must be taken into account. Modifying the infrastructure could have unforeseen results if the changes are not appropriately understood or managed. Given the broad spectrum of underlying infrastructure utilized, it is recommended that a panel or committee with appropriate skill in each area concerned be assembled to outline the underlying infrastructure changes and gauge the impact of the required changes.

Rights and Permissions

The K2 Service Account is the account under which the K2 service runs.

The rest of this guide will use domain\K2 Service Account as a placeholder for the K2 Service account name. When installing K2 in your environment, replace this placeholder with your actual account name.

The K2 Service Account will need the following permissions:

K2 Server
Permission Used For

Log on as a Service

In order to run the K2 blackpearl Service, the Service Account will need this permission. To see how to set this permission, click here.

Rights Folder or Registry Key
Full Control %SYSTEMROOT%\temp
Full Control %ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA
Full Control HKEY_LOCAL_MACHINE\SOFTWARE\SourceCode\Logging  (* Note)
Modify %PROGRAMFILES%\K2 blackpearl\Host Server\Bin  (* Note)
* Note The following step is done post installation

The Installation Account will need the following permissions during installation and configuration:

All Servers with K2 Components
Permission Used For
Local Administrator

In order to successfully install and configure K2 blackpearl components, the Installation User account must be a local administrator on all the servers that will have K2 components installed.

Kerberos / Pass Through Authentication

When components are installed on separate servers, credentials must be passed between the services. This can be accomplished by setting up Kerberos, which should be configured prior to installing K2. Any time where two or more hops are required for user authentication, Kerberos must be configured.

Pass Through Authentication is a K2 proprietary authentication methodology specifically for authenticating users whose credentials need to be passed between machines that interact with the K2 APIs. This authentication model can be used as an alternative to Kerberos, but is not in any way intended to be a replacement for Kerberos within the overall infrastructure.

Install Steps

After you have installed all the prerequisites, created the service accounts, enabled DTC and installed MSMQ, you are now ready to install the K2 blackpearl Server.

Once the installation is done, the Configuration Analysis tool will be available to help troubleshoot any errors detected during the installation.


It is recommended to install all K2 components using the K2 Service Account. Log on to the server as the K2 Service Account before installing.

Click on this link to see a flow diagram of the install steps.

To install the K2 Server component, follow the below steps:

From the local installation folder, double-click on the Setup.exe file

On the Welcome screen, click Next

On the  Checking for Latest Version screen, the installation will verify the version

On the End User License Agreement screen, read through the EULA. You must select the I agree option before you can continue with the installation. You can print out the EULA for your records. Once you have read the EULA, click Next

On the Installation Type screen, select the Custom Installation option and type in an Installation Folder, and click Next

On the Select Components screen, you should see that the only components for which the prerequisites are met are checked. Uncheck everything except the K2 blackpearl Server:
               
                
You may also see links to Check Dependencies for the other components.

If you want to install one of the components on this server that have a Check Dependencies action, cancel the installation and fix the dependency. Then, restart the installation and you should be able to select that component.

On the License Configuration screen enter the License Key.

If you do not have a license key, you can request one by opening Internet Explorer and going to https://portal.k2.com/licensekey/Default.aspx. You will need an internet connection, and you will also need a Customer and Partner portal account. Enter in the appropriate information, and the license key will be generated automatically for you.

On the K2 Server Configuration screen, select the appropriate option:


  • Standalone K2 Server. Single K2 Server in your environment. This does not mean that all K2 components are installed on the same server, it means that there is only one server with the K2 blackpearl Server component installed.
  • K2 Server Farm. Multiple K2 Servers in your environment.

If you selected the K2 Server Farm option, additional radio buttons are now enabled for you to choose from:

  • Add K2 Server to existing Farm. Select this option if a K2 Server Farm already exists, and you are connecting an additional server to the farm.
  • Configure K2 Server Farm. Select this option if this is the first K2 Server you are configuring.


If you are installing K2 Server in a distributed environment but there is only a single server playing the K2 Server Role, select Standalone K2 Server

If you are installing K2 Server for the first time in a distributed environment with multiple K2 Servers, select K2 Server Farm and Configure K2 Server Farm and enter the K2 Server Farm Name (fully qualified domain name)

If you are installing a second node to your K2 Server farm, select K2 Server Farm and Add K2 Server to existing Farm



Click Next to continue the Configuration Manager

On the K2 Pass-Through Authentication screen, if Kerberos is installed select Kerberos and if not then select Windows

On the K2 Server Configuration screen, take note of the ports that are used for communication. It is strongly recommended to leave the default ports as is.

It is strongly recommended to leave the default ports. It is also important to verify that those ports are not blocked in your environment to ensure that K2 runs successfully.

The ports are as follows:

  • Host Service Port. By default, port 5555 is used to communicate with the K2 Host Server.
  • Workflow Service Port. By default, port 5252 is used to communicate with the workflow service. For backwards compatibility, be sure to leave this at port 5252.
  • Discovery Service Port. This should be a unique port that gets assigned to each server cluster you have in the environment. It is used by the K2 management tools to identify your clustered K2 servers in your environment. This port is only displayed if you are installing a K2 Server Farm. By default, port 49599 is used on non NLB environments, and port 49600 is used for NLB environments.

    Also on this screen, there is a Set K2 Host Server SPN check box:
  • This check box is enabled by default, and will therefore automatically configure the SPN settings for the K2 Host Server. When you click Next, you will be warned that you will be reconfiguring the current SPN configuration. If you click Yes, the check box will remain checked and the SPNs will be configured automatically. If you click No, the check box will be unchecked and you will have to manually configure the SPNs.
  • If you uncheck this check box, you will have to manually configure the SPNs for the K2 Server.
  • If the check box is disabled by the system, verify that the Microsoft Windows Support Tools (in particular, SetSPN.exe) is installed on the machine.
    For more information on which SPNs are required, refer to the SPNs for K2 Service Account topic. Once you have decided whether or not to allow the system to set the SPNs for you, click Next

If the account you are logged in as while installing the K2 Server does not have domain administrator rights to configure the SPNs, you will need to configure the SPNs manually after installing K2. If you do not configure the SPNs properly in a distributed environment, the K2 Server will not function properly.

On the Workspace Web Site Configuration screen, type in the URL to the K2 Workspace Web Site,  and click the Browse button to browse and select an existing security certificate or create a new certificate.

K2 Certificate

To create a new security certificate, select 'Create new Self-Signed Certificate', enter a name in the text box and click OK.


Even though we have not configured the K2 Workspace yet, enter the URL which you will use to access the Workspace. If this is a clustered workspace, be sure to enter the URL used to access the cluster.

It is preferred to use the fully qualified URL to your workspace web site.

On the CRM Server Settings screen,the details of the CRM Server and the Organizations name can be added. The CRM server details entered on this screen are used to create the Environment Library entry that can be used within the K2 wizards. This screen is optional and the installation will complete without any information being entered on the screen. Ensure that the Microsoft CRM Server is started before adding the information to this screen. CRM integration in K2 such as the CRM Entity Wizard is dependent on the information entered on this screen.

On the Database Configurations screen, you will see the list of K2 Databases that will be created as well as the SQL Server they will be created on. You can change the installation location for the databases by clicking on each database's change link, or the Change All button. You can select whether you want to use Windows or SQL Authentication by changing the database configuration. You can also change the Database Name by clicking on the change link and editing the Database Name field. When you have completed your database configuration, click Next to continue.

On the Service Accounts Configuration screen, enter in the following user accounts:

  • K2 Administrator Account. This account will be given Administrative rights to the K2 Server for the Administrator to perform administrative functions. domain\K2 Administrator Account
  • K2 Service Account. This account is the dedicated account for the K2 Service. domain\K2 Service Account

    You can test that the user name and passwords are valid by clicking on the Test button. When you finished entering in the accounts, click Next to continue.

On the Exchange Server Settings screen, enter details as required. See the topics Exchange Server Configuration and Exchange Integration for important information.

On the SmartActions Configuration screen, enter details as required. See the topic SmartActions Configuration for important information.

Note: The SMTP Settings screen is displayed after the SmartActions setup step only if the Use Exchange for mail integration option has been selected on the Exchange Server Configuration screen.

On the Configuration Summary screen, validate the settings. You can go back to make any necessary changes, and you can print this page for reference later. Once you are satisfied with your settings, click Install.

The Setup Manager will update and show you the progress of the components as it installs.

When the installation has completed, you will see a finished screen. There will also be a link to the created configuration log file. When you click Finish, you will be prompted to restart now (click Yes) or restart later (click No). It is important to restart in order to complete the installation and configuration of K2 blackpearl.

Recommendation: When the K2 Server is run in console mode make sure to be logged in as the correct user and make use of the “Run as Administrator” option to ensure that the correct elevated privileges are utilized.

K2 Service Account

In a distributed environment where components are installed on more than one server, Kerberos security must be configured. One of the components of Kerberos is the Service Principal Name (SPN). Whenever user credentials must be passed from one system to another, the system that is attempting to pass the credentials must be trusted for delegation. For this step to take place successfully, Kerberos delegation must be configured.

Configuring SPNs is an advanced task and should only be performed by an appropriately trained professional. The steps and configurations given in this help file are to be used as a guide  - your system may require additional configuration due to different hardware and software compatibilities.

There are two sets of SPNs that need to be set up for the K2 Service Account:

The following placeholders are used in the commands:

Be sure to set all the SPNs as listed below. Also, the service account is required so be sure to specify the account properly. The SPNs listed below are for K2 blackpearl.

If you have a K2 Server farm running on a cluster, be sure to use the name of the cluster and the fully qualified cluster name instead of a single node's machine name.

Open a command prompt on a server that has the Windows Support Tools installed, and execute the following commands:


If you are installing K2 blackpearl on an NLB environment, the MachineName will change to the the LBHostServerName

After the commands have successfully executed, you can verify the SPNs were set by executing the following command:

While infrastructure changes are required by K2, each environment is different and has its peculiarities which must be taken into account. Modifying the infrastructure could have unforeseen results if the changes are not appropriately understood or managed. Given the broad spectrum of underlying infrastructure utilized, it is recommended that a panel or committee with appropriate skill in each area concerned be assembled to outline the underlying infrastructure changes and gauge the impact of the required changes.

After installing and configuring the K2 Server component, you can easily validate that the K2 Server is functioning properly by running the K2 Service in console mode. Console mode is a useful troubleshooting tool, as all error and informational messages are sent to the console window so you can watch what is going on. It is important that you run the service as the Service Account in order to accurately troubleshoot permissions and other errors.

To run in console mode, perform the following steps:

Open the Services manager (Start > All Programs > Administrative Tools > Services)

Scroll down to the K2 blackpearl Server service, select it and click the Stop Service button

Once the service shows as stopped, you can close the Services manager

Right-click on the K2 blackpearl Server item in the Start menu (under Start > All Programs > K2 blackpearl) and select Run as...

Select The following user option, and type in the domain\K2 Service Account as the User Name and password, and click OK

The K2 Server will start and initialize. You will see several messages starting the various components. Once you see the line stating "Info 7010 MSMQ Thread Listing", you know the service has started successfully.

If you see the following error messages, the SPNs for the K2 Service Account were not set properly:

  • Info 7003 SourceCode.SmartObjects.Runtime.SmartObjectClientServer not yet Loaded…
  • Error 8060 ProcessPacket Error, Authentication With Server Failed : SEC_E_LOGON_DENIED

Be sure to see the section on Post instillation common tasks once done with the install.

See Also

Planning Guide

 

 


K2 blackpearl Product Documentation: Installation and Configuration Guide 4.6.10