Book Contents

Book Index

K2 Installer

Book Contents

Book Index

K2 Installer

The main idea of the K2 installer is to unify all installations related to IS K2 in one place, from which each can be repeatedly installed as a so-called new instance. Each such instance can be managed by the installer, i.e. repaired, updated or uninstalled. Management can also be performed in bulk for selected instances across different installations.

The chapter Installer description is devoted to an introduction to the installer user interface. Its basic functions and advantages are described there.

The next chapter, Application, is a guide on how to work with the installer, what the software and hardware requirements are, and what to do if any of the installations fail.

The penultimate chapter, Available installations, describes the individual installations offered by the installer. For each installation, the individual input screens are described in detail so that the user has no problem successfully completing any of the installations. If some installer screens are the same, only the difference between these installations is described.

The last chapter, Extensibility with further installations, deals with the possibility of extending the K2 installer with new installations.

Book Contents

Book Index

Registration for the K2 installer

K2 products can be downloaded using the K2 installer tool. To use the K2 installer, the user must register at https://instalator.k2.cz. On this page, the user finds the registration form, registration instructions and a link to download the K2 installer. On this page, the user can also change their password.

User login to the installer

To use the K2 installer, you need to log in with the account the user registered with at https://instalator.k2.cz. The form for entering login credentials is displayed after the installer is started. However, if the user activates the Remember login option when logging in, they will be logged in automatically the next time the installer is started.

pim_1456

Picture: Form for logging in to the K2 installer

Information about the user login is then displayed in the lower left corner of the form. If the text Not connected is displayed here, the installer is not currently connected to the product download site. The text Not connected is displayed here, e.g., if the user uses the Continue without login option in the login form.

The user can also be logged in to the K2 installer using the Log in button, which is available in the upper right corner. The window for entering login credentials is displayed again.

pim_1225

Picture: Button for logging in to the K2 installer

A user who is not logged in cannot install newly distributed versions. They can only work in offline mode with already installed instances and downloaded installations.

Installer description - user interface

The main installer screen contains the tabs – New installations, Installed, Remote administration, Reinstallation plan, Other installations, Settings, Help.

New installations

On the New installations tab, a list of all installations available to the logged-in user is displayed. Each of the possible installations is defined by a name, description and icon. The individual installations work here as groups (drop-down menus), which can be expanded by pressing the left mouse button. A list of the available partial installations within the given product (group) is then displayed. The flag symbol here indicates the language localization of the given version.

pim_1415

Picture: New installations tab

Installed

The Installed tab shows a list of installations that are already installed on the given machine.

pic_107609

Picture: Installed tab

The individual installations are divided here into groups that work as drop-down menus. Each of these menus always contains a list of all instances installed for the given product (group). For each group, the number of installations it contains is shown. Installations of individual products can be sorted here by installation type or into user-defined folders. Using the pic_705i icon, we display the sorting by installation type. The sorting by user-defined folders is displayed by pressing the pic_706i icon. The contents of individual groups can be displayed by clicking the left mouse button.

pim_1216

Picture: Installed tab

For each instance, its name and version designation are shown. There are also columns for the installation date, or version update date, and the location of this installation. If a newer version is available after the user logs in, the number of this available version is displayed in the penultimate column Installation with the green symbol pic_707i. The pic_785i icon is also visible for each installation. If we move the mouse cursor over this icon, a list of detailed information about each installation of the given product is displayed. This is the same information as shown in the columns, i.e. Product, Version, Name, Group, Update, Location. The important field here is Available updates, which lists all the options for handling the installed version of the given product.

Display by groups

The individual installations on the Installed tab can be sorted into user-created groups. The display mode by defined groups is switched on using the pic_706i icon. The process of creating groups and sorting installations is simple. The Group column is editable for each installation. By double-clicking the left mouse button, you can place the cursor in this column and enter the name of the group into which we want to classify the installation.

pim_1217

Picture: Installed tab - creating groups

Pressing the Enter key then classifies the installation into the entered group. Installations without an entered group will be assigned to Installations without group.

pim_1218

Picture: Installed tab - created groups

The classification of installations into groups can subsequently be used in the Reinstallation plan.

Remote administration

Remote administration is a new functionality in the K2 installer used for faster and more convenient updating of K2 products (application server, web K2, e-shop) that are installed on servers other than K2 itself. Naturally, the only thing that cannot be updated remotely is the K2 installation itself.

pic_6888

Remote administration in the K2 installer

Description of individual components

On the Remote administration tab, we can see 4 buttons:

pic_1158i Using this button, we can connect remote computers on which K2 products are installed. After pressing it, a form with remote computers is displayed.

pic_6889

Remote computer administration

In this form, we define remote computers by clicking in the Remote computer column. In the next column, we can add our own description. The Downloaded files data item informs us about the size of the downloaded files that the installer has downloaded to the remote computer and that are needed to update the K2 product. By clicking the size, we delete these files remotely. The same applies to the Log files column, which tells us the total size of the files that are typically in the C:\K2Installer.tmp\ folder. There is also the version of the K2 update service. If it is coloured red, it is not up to date; if blue, it is up to date. The last column, Status, informs us about the connection status. A red circle tells us that the connection to the remote computer could not be established; a green circle tells us that the connection is established. If there is a problem connecting to the remote computer, it is necessary to check the Firewall (or the allowed port number 445) or the antivirus.

pic_6895

Remote computer administration - inserting a new computer

pic_1159i Used to update / load remote computers. If we add new computers to the Remote computer administration, we use this button to load K2 products from the remote computers.

pic_1160i Used for display by instance type.

pic_6896

Display by instance type

pic_1161i Used for display by groups we have defined.

pic_6897

Display by defined groups

For those K2 products that can be switched off, such as the application server, a switch is displayed next to the version, which shows the current status (green – running, red – not running, grey – unknown status), and by clicking it we can switch it off / on. A bulk function for switching on / off can also be used - the switch is located in the table header. Next to the switch, there is an update icon which, when clicked, updates the status of the given service (returns the switch status).

pic_6898

Example of bulk switching on/off of K2 products

Note

It may happen that when the application server is switched on using the switch, it turns green, but after clicking the update icon, the red switch status is displayed again. In that case, it is necessary to connect to the server where the given service is located and check why it did not start.

The remaining icons are already known from the Installed tab.

Information for correct functionality

The first step to be able to use remote administration is to have the installer installed and to be logged in. Without logging in to the K2 installer, this function is not available.

pic_6899

Remote administration without login

Furthermore, it is necessary to have the current K2 update service installed on all servers on which we want to perform remote reinstallation. (The update / reinstallation of products on remote computers is then performed by the K2 update service product.) More information about the update service can be found in the chapter Available installations / Local installations / K2 update service. Whether we have the current update service installed on the server can be found in the Remote computer administration in the Service version column. If the service is not up to date, the field is red; to update it, just click it and a question is displayed asking whether we want to update the update service. If it is up to date, the version is blue.

pic_6900

Updating the update service on remote computers

Note

During the update of the update service, the status icon changes to a blue flashing circle, which informs us that it is trying to obtain the status. During the update of the update service, the service is deleted, so the current status cannot be obtained; therefore, the Remote computer administration has a certain timeout set, during which it keeps querying the status, which is indicated by the blue flashing circle.

pic_6902

Progress of the update service update

Note

The user under which the update service runs on the remote computer must have access to the folder where K2 is installed, otherwise an error may occur during the update.

Another important prerequisite is that if an application server is installed on the server, it must run under a domain account that is also an administrator on the given machine.

Product update process using remote administration

First, we choose the version to which we want to update the given K2 product. Using the selection, we choose a specific version; we can also do this in bulk, e.g. for one entire group of ours. Once we have selected the version we want to switch to, we just press Perform.

pic_6903

Example of starting an update

In the Installed column, a progress indicator is displayed, which tells us that the given product is in update mode. The specific update status is described next to the running indicator (it may be, e.g., downloading, updating …).

pic_6904

Example of update progress

After a successful update, a form with the information "The remote update was successful." is displayed.

pic_6905

Successful update message

Once everything has been updated, we check whether the services that are supposed to run are running by looking at the switch (it should have a green status). We can also verify it in K2, e.g. the logged-in application server.

Finally, we can "clean up" after ourselves on the remote computers, both the downloaded files needed for the update and the logs that have been created. We open the Remote computer administration (green button with a computer icon) and, if we want to delete the downloaded files, we click in the Downloaded files column on the size they occupy. Then a question appears asking whether you really want to delete the files. We can do the same with the logs.

pic_6906

Deleting downloaded files

Book Contents

Book Index

Reinstallation plan

Reinstallation plans allow you to prepare and run a bulk reinstallation of K2 products. The principle is that we put the individual product installations into groups, which we then use in the reinstallation plan. (Classification of products into groups is described in the chapter Installed, section Display by groups.) The plan ensures the reinstallation of all products by a simple run, without the need to configure the reinstallation manager in IS K2, log out users or perform other pre-installation steps. Reinstallation becomes simpler and faster for administrators.

pic_7486.png

Picture: Reinstallation plan

Notes:

The reinstallation plan is available only if the user is logged in.

The IS K2 product can be reinstalled only from the computer on which it is installed, i.e. remote update of K2 is not allowed.

We recommend using reinstallation plans only for reinstallations within one release, or between releases of one generation version of IS K2.

Book Contents

Book Index

Creating a reinstallation plan

On the Reinstallation plan tab, we can see a list of reinstallation plan definitions.

To create a new plan, we use the Create new reinstallation plan button.

pic_7487.png

Creating a new reinstallation plan

A form for defining the reinstallation plan is displayed.

pic_7488_2023

Reinstallation plan definition

User actions:

Using this function, you can run one of the predefined user actions before or after the reinstallation. Actions defined in this way are then run automatically within the reinstallation plan. This function is most often used to back up the database and files before reinstallation.

If we want to add an action, we press the greenplus button (green plus) and a form for setting the action is displayed – see the picture.

pic_10176

New user action

Run: Selects when to run the given action. There are two options to choose from:

Action: Selects which action is to be run. There are two options to choose from:

Name: Action name

Operation: Specifies what is to be backed up and where. A new record is created by double-clicking in the corresponding column.

1. If the Backup database action is selected.

In this case, in the first column, by double-clicking we enter the server and the name of the database to be backed up in the column Server and database name (server@database). The name must be in the form given in brackets, i.e. server name@database name.

In the Output directory column for the backup, we write the path (including the backup file name) where the database is to be backed up. It is important that the database server can see the output folder, otherwise the backup will not be performed.

pic_10177

Backup database

For example, we have the server TS1 and the databases K2 and K2_Demo on it. I will want to save the given folder on the local c:\ to the file ZalohaDB. Of course, the local c:\ is visible to the database server. I will want to run the action before reinstallation and I will name it Database backup.

The picture shows what such an action would look like.

pic_10178

Backup database action

2. If the Back up files action is selected.

In this case, in the first column File mask, we enter the file mask by double-clicking, and in the Output directory column for the backup we enter the path where the files are to be saved.

Three variants can be used in the file mask:

  1. c:\temp\*.* - all files from this directory
  2. c:\temp\*.pas - all pas files from this directory
  3. c:\temp - everything, including subdirectories, from this directory.

pic_10179

Back up files

For example, I want to save all files in the DEMO client folder and only the scripts (everything with the *.pas extension) in the SestavyW folder. I will want to save them before reinstallation to the c:\ZalohaSouboru folder. I will name the action File backup.

The picture shows the resulting setting.

pic_10180

Back up files action

Note:

When entering the output directory, the {date} macro can also be used. For example C:\Temp\{date}\Soubor.bak, where date is replaced by the current date. The backup is thus always created in a different directory, i.e. one for each day.

We fill in the plan name and, using the pic_1205i.png icon, select the groups we want to include in the plan and thus reinstall. (The menu contains all currently installed products classified into groups (from the Installed tab) and products classified into groups from Remote administration.)

pic_7489.png

Assigning groups to a reinstallation plan

After confirmation, the created plan appears in the list of reinstallations, as we can see in the picture.

pic_7490.png

Created custom reinstallation plan

Description of columns:

Name - plan name

Created - when the plan was created

Changed - when the plan was changed

Number - number of groups in the plan

Buttons:

Delete - deletes the given plan

Change - allows you to change the plan

Run - runs the plan

Book Contents

Book Index

Running a reinstallation plan

We run the plan using the Run button in the specific plan row.

pic_7491.png

Running a custom reinstallation plan

The installer offers us the plan for review first. In the header, in the Version field, we select the version to which we want to reinstall and, if everything is correct, we confirm the plan using the Confirm and display schema button.

pic_7492.png

Reinstallation plan recapitulation

After the plan is confirmed, a reinstallation plan diagram appears, where we can see how the reinstallation will proceed. At the beginning of the reinstallation, the applications (application server, web K2) are first switched off, a maintenance page is set on the e-shop, users are logged out of K2 and the reinstallation manager is set. Then the reinstallation (including downloading the version) of all products from the groups in the reinstallation plan starts in parallel on all servers. After the installation has completed successfully, applications such as the application server, web K2 and the e-shop are started. K2 switches off the login ban in the Reinstallation manager.

pic_7493.png

Example of a reinstallation plan diagram

By moving the mouse over the individual components of the diagram, we can find out what will happen in the given section.

pic_7498.png

Example of displaying information for a given plan section - web K2

We start the reinstallation using the Run reinstallation plan button (top left). In the bottom part, we can also monitor the progress of the plan in %, the elapsed time, or zoom the diagram in or out.

pic_7494.png

Example of plan progress

Using the Stop reinstallation plan button, we can stop the reinstallation plan. The plan stops only after the current activity has finished, i.e. if the K2 application server is already being reinstalled and the reinstallation of web K2 is to follow and we stop the plan, the reinstallation of the K2 application server will be completed, but the subsequent activities, such as the reinstallation of web K2, will not.

If an error occurs during the installation of any of the products, the given action for the product turns red. When you move the mouse over the given action, brief information is displayed (the information is also displayed for a product coloured green).

pic_7495.png

Example of an unfinished installation of the application server

By double-clicking, we can display the log and installation information for the respective product.

pic_7496.png

Example of a log from an unfinished reinstallation of the application server

If the entire reinstallation plan has finished and all steps are green, the reinstallation was completed successfully and the plan can be closed using the Terminate button.

pic_7497.png

Successfully completed reinstallation according to the reinstallation plan

If SMTP and an e-mail for sending information are set in the installer (more detailed description here), we receive information about the completed status after the plan has finished.

pic_7505.png

Information received by e-mail about the status of the reinstallation plan.

Other installations, settings and help

Other installations

On the Other installations tab, installations of programs are available that are not strictly necessary for the functionality of IS K2 but may be useful. These are installations of the programs Adobe Acrobat Reader, Oracle Call Interface (OCI) client 11.1. and Microsoft .NET Framework 4.5.1. There are also installations of IIS extensions (IIS URL Rewrite 2.1 x64 and PHP 5.3 for IIS) and Microsoft Visual C+ +, which are necessary for a trouble-free installation of the K2 E-shop product.

Settings

Tab for setting the basic properties of the K2 installer.

pic_7502.png

Picture: K2 installer - Settings tab

Description of fields:

Name

Description

Path to installer temporary files

Field for setting the path to the installer temporary files.

Path to downloaded installations

Setting of the path to saved installations (updates). The installer then runs the selected and downloaded installations from this storage.

 

FTP server for updates

Path for downloading K2. If not filled in, it is taken from the configurator.

Display of available product versions for download

Using this option, the logged-in user can filter the versions offered for installation from the FTP infoservice on the New installations tab.

  • All available versions - all available versions will be offered;
  • Only the latest version for each available release - only the latest versions from each available release will be offered. There may therefore also be versions within older releases.
  • Only the latest versions - only the latest versions of currently available releases will be offered.

 

This option also affects the versions available for update on the Installed tab.

Default sorting of installed products

In this field, you can set the sorting method of installed products in individual groups on the Installed tab.

Language of installations for download

Here you can select the language localization of IS K2 installations that will be offered to the logged-in user for download and subsequent use. This option applies only to IS K2 installations.

Log in automatically after start

On: When the installer is started, the user is automatically logged in to the FTP infoservice.

Off: When the installer is started, the user is prompted to log in.

Perform bulk reinstallations silently

If this flag is checked, bulk reinstallations are performed "silently", without the need to confirm individual steps. This option can be used for all products except IS K2 reinstallations.

Saved login credentials

The Delete button deletes the user's saved login credentials for the FTP infoservice, and login will be required again after the installer is started.

Downloaded installations

The Delete button deletes all downloaded installations from the disk.

SMTP server address/port

Address and port of the SMTP server for sending e-mails.

SMTP user/password

SMTP server user and password, if required.

E-mail for sending information

E-mail to which the information will be sent.

Help

The Help tab shows the K2 installer version. There are also important links for help and technical support. At the bottom of this tab, system information about the machine on which the K2 installer is installed and running is available.

Localization

The K2 installer is fully localized into Czech and English. Each installation available within the installer is also fully localized into Czech and English. The language is always used depending on the Windows OS environment.

By translating the texts, the installer can easily be extended with further languages.

Application

Starting the installer

The K2 installer is automatically run in mode with administrator privileges. The K2 installer is started using the file "K2Installer.exe".

A necessary prerequisite is to ensure the required software and hardware equipment of the computer on which we will use the installer.

Software requirements

Hardware requirements

Installer update

Each time you log in, updates of the K2 installer are checked. If an available update is found, the K2 installer offers it for download.

pim_1230

Picture: Downloading an available K2 installer update

By pressing the Yes button, we save the given update. After the update has been downloaded, the K2 installer automatically offers this update for installation.

pim_1231

Picture: Installing an available update of the K2 installer

Pressing the Yes button starts the K2 installer product installation wizard.

pim_1232

Picture: Installation wizard of the K2 installer product

Installation

Before the actual installation, the installation of any type of product must always be downloaded and saved to disk. The Download button is used for this purpose. After saving, the Install button becomes available for the selected and downloaded installation. Pressing this button starts the installation of the given product. The Remove button is used to delete the downloaded installation from the local disk.

pim_1219

Picture: Starting the installation

The individual installations have different input screens depending on the product being installed, see the chapter Available installations.

If the installation completes without errors, a message about the successful completion of the installation is displayed. After switching to the Installed tab, we will see that a new record of the installed instance has been added to the given installation type.

If, on the other hand, an error occurs during the installation, the installation displays a message that it was not completed.

Other options

As already mentioned, all installed product instances are available on the Installed tab. This tab is used to manage these individual installations, i.e. to update, repair or uninstall them.

If a higher version of the installed products is found after the installer is started and the user logs in, the installer offers it for installation for the given instance and marks it with the pic_707i icon. To update the installed version, the installer always offers the highest (most current) version within the release. When offering a version for update, the installer also respects the logic of migration between versions and, for IS K2, also the language localization. It is thus not possible, e.g., to reinstall the Slovak version of IS K2 to the Czech version. We then update the given instance using the Perform button. The Uninstall button is used to start uninstalling the selected version.

pim_1220

Picture: Installed tab - version update

The field with the version number for update can be opened. The displayed window always shows a list of all available versions that can be installed. This list draws on the versions downloaded and saved on disk and on the FTP with product installations. If we select a lower version than the currently installed instance, the pic_708i icon is displayed here. In this way, the instance can be downgraded to a lower version.

pim_1221

Picture: Installed tab - installing a lower version of an instance

Installations within a group can be unified in bulk to one selected version. The field in the header of each group is used for this. The installer automatically fills in the latest possible common version for installation found on the local disk or on the FTP with product installations. The version is then marked with the pic_709i icon. The field can be opened to display a list of all available installations. By pressing the Perform button, the installer gradually updates all instances in the group to the selected version.

pim_1222

Picture: Installed tab - bulk update (unification) of versions

By selecting the identical version for installation, we can also repair already installed instances via the K2 installer. The K2 installer marks this version with the pic_710i icon. Pressing the Perform button starts the installation (repair) of this version.

pim_1224

Picture: Installed tab - installation repair

"Silent" reinstallation

Bulk reinstallations of products in groups can be performed "silently", i.e. without the need to confirm the individual steps of the action being performed. This method can be used for all products except the reinstallation of the K2 information system. To enable this option, it is necessary to activate the Perform bulk actions silently parameter, which is available on the Settings tab.

Troubleshooting

If any error occurs during the installation that prevents it from continuing, a window is displayed with a description that this installation has been interrupted, see Picture: Premature termination. In this case, it is necessary to inspect the log file to see whether it contains more detailed information about the error. The log file is saved in the installer folder K2Installer.tmp on drive C, and its name is in the format log_product name_date and time of installation.txt.

To make it easier to detect and subsequently fix the error, we recommend sending the log file to the infoservice.

pim_1122

Picture: Premature termination

Book Contents

Book Index

Available installations

IS K2 installation

This installation package is used to install the K2 information system.

For existing users

Since the "MONDE" version, K2 can be installed using an MSI installation package. The original installer will no longer be distributed. The change of the installer also leads to a change in the installation philosophy, which was required by the use of the MSI package. In particular, for the purposes of installing K2, it is necessary to reserve one machine from which K2 will be installed. Records of installed applications are stored in the registry of the given computer, and an installation from another workstation therefore knows nothing about the installed products.

Software requirements - K2 installation

Compared to the K2Installer, Microsoft .NET Framework 4.5 or higher is required, which can be downloaded and installed from http://www.microsoft.com/cs-cz/download/details.aspx?id=30653. The MSI package cannot detect this, so it is a good idea to first check in the Control Panel, in the Uninstall a program section, whether the above module is installed.

New installation

After the installation is started and the above conditions are met, the first dialog is displayed, which informs the user that the installer for the "K2" product has been started.

pic_1703874

Picture: K2 installation start

After pressing the Next button, we go to the second dialog, which contains the license agreement, which we must accept after reading in order to continue. We accept the agreement by checking the option I accept the terms of the license agreement.

pic_1703875

Picture: K2 license agreement

The Next button takes us to the third dialog, where the user is prompted to enter the path where IS K2 is to be installed. Using the Change button, you can browse directories on physical disks or on the network in a standard dialog.

pic_1703876

Picture: K2 target directory

After selecting the directory and pressing the Next button, a form is displayed that prompts the user to enter the server name and the name of the main catalogue for IS K2. (The default preset values are, for the server, the name of the computer from which IS K2 is installed, and for the main catalogue, the directory into which IS K2 is installed.)

pic_1703877

Picture: Database platform selection - MS SQL

The dialog contains three more buttons. The Test connection button is used to verify the connection according to the entered data. It is not necessary to run the test, because it is also performed when the Next button is pressed. We are informed about the test result by three possible windows. The first informs about a successful connection, see Picture: Successful connection, the second about incorrect login credentials, see Picture: Unsuccessful connection, and the third about a conflict of catalogue names, see Picture: Database exists. An unsuccessful connection occurs if the server is entered incorrectly or if there is an incorrect combination of values in the language settings of the catalogues, see the Extended button.

pic_1703879
Picture: Successful connection

pic_1703878
Picture: Unsuccessful connection

pic_1703888
Picture: Database exists

The Extended button is used for the language settings of the catalogues. It is not necessary to set them unless the K2 language used will differ from the installation language. The values are filled in automatically according to the IS K2 language in the MSI package. If they do not meet the requirements of the IS K2 user, they can be changed, see Picture: Setting language variables. This setting should be performed by a person familiar with the issue, otherwise it is not guaranteed that K2 will work correctly when communicating with databases.

pic_1703880

Picture: Language variable settings

The Restore extended button restores the language setting values according to the IS K2 language in the MSI package.

After successful setup and pressing the Next button, we choose between the 64-bit and 32-bit version of the K2 program. The default value for the K2 vega version is the 64-bit architecture. The advantages and disadvantages of the architectures are described in the dialog. The selected architecture is written to the K2.ini file in the ARCHITECTURE parameter. The parameter values are "x86" or "x64". The parameter value can be changed at any time as needed.

pic_1703881

Picture: Architecture settings

In the next step, we select the license file for the given version of the K2 system.

pic_1703882

Picture: License file selection

If we do not fill in the path to the license file, the installer will ask again for this file to be loaded at the end of the installation.

pic_1703885

Picture: Incorrect license message

pic_1703886
Picture: Message about the option to load a new license

In the next step, a form is displayed with an overview of the product components and the option to install them. In this step we set the K2 Status, which is used for sending license usage information to K2 atmitec. If we check the Production K2 field, IS K2 will be registered as a production system; if we do not check the field, IS K2 will be a test system and its functionality will be limited.

pic_1703883

Picture: Settings of optional installation components and production selection

After pressing the Install button, the installation of IS K2 starts. Its progress is indicated by a progress bar. The progress bar may stop and it may look as if nothing is happening. In this case, it is a good idea to check the taskbar or the system processes to see whether K2 programs are already running, either "k2_sqlrs" or "k2wimport", which are hidden behind the window showing the installation progress.

pic_1703884

Picture: Installation progress

We are informed about the successful installation by the following dialog window. On this screen, the Run K2 check box is available. If this field is checked, the dialog window for starting IS K2 is displayed automatically right after the installation finishes.

pic_1703887

Picture: Completing the installation

If an error occurs during installation, a window about the failed installation is displayed.

pic_1703889
Picture: Failed installation

Book Contents

Book Index

New installation with a changed password of the K2 SQL user

If we perform a new clean installation of IS K2 on a server on which the default password of the SQL user K2 has already been changed to a custom password, a problem with logging in the SQL user K2 to the given server will occur during the installation step. The message "Login failed for user K2 (Create connection)" is displayed.

pic_107597

Picture: SQL user K2 cannot log in to the server

After confirmation, a message is displayed informing that the password of the SQL user K2 has been changed (it is not the default, factory one) and that the SetK2Password program will be started, which allows registering the changed password for the K2 currently being installed. Password change is described in the chapter Using the SetK2Password program.

pic_107596

Picture: Information that the SetK2Password program will be started

The login form of the SetK2Password program is displayed. We leave the Server field empty and enter the factory password for login. You can get the password on request from your K2 consulting team.

pic_107598

Picture: Logging in to the SetK2Password program with the factory password

After a successful login, the program is ready to register the new password of the SQL user K2. The Server field is prefilled with the server on which we are installing the given IS K2, and the Username field is prefilled with the SQL user "K2". In the Password field, we enter the currently valid password. We confirm the entered data with the Save credentials button.

pic_107595

Picture: Entering data to register the changed (current) password in IS K2

The SetK2Password program writes encrypted values to the SysK2.ini file, which IS K2 will use to log in to the server. We close the SetK2Password program form and the IS K2 installation continues automatically.

Taking over an existing K2

Taking over an existing IS K2 installation is an action in which K2 is installed into an already existing directory with an already existing K2. The reason for this procedure may be a situation where IS K2 had to be uninstalled for some reason. However, the presence of the original "k2.ini" and "sysk2.ini" files in the K2 directory is important, and the databases of the given K2 must also exist. The information needed for a successful K2 installation is read from the "ini" files. The difference compared to a K2 reinstallation is that old, invalid files may remain in the K2 directory, which would be removed during a proper reinstallation.

The steps of an installation by takeover are the same as for a clean installation of IS K2.

pic_107601
Picture: Query about taking over an existing installation

Installation logs

After performing any action (installation, reinstallation, product removal), the K2 installer displays a message about its completion. Here the user has two options.

pim_1294

Picture: Completing the installation

Pressing the Close button closes the form. Using the Display installation information button, detailed information about the performed action can be displayed. Every action carried out through the installer is recorded in a text file and saved in the K2Installer.tmp folder.

pim_1295

Picture: Detailed installation information

If the installer performs a bulk silent reinstallation, i.e. without the need to confirm the individual steps, at the end of this action the installer displays a window with information about all performed installations. Here too it is possible to display a detailed record of the performed action using the Detail button.

pim_1297

Picture: Information about installations performed "silently"

If any of the resulting log files is too large, it is not loaded immediately, but only after clicking the visible link.

pim_1296

Picture: Link for displaying the log

The resulting log files can be saved to a "*.ZIP" archive and thus prepared e.g. for sending. The log files can be saved by clicking the Prepare log files for sending button. A dialog window opens in which we choose the file name and select the folder in which we want to save the file. All log files related to the action just completed are saved to the created "*.ZIP" archive, and this archive always also includes a file named SystemInfo, which contains system information about the computer on which the K2 installer is installed and running. This is the same information as shown on the Help tab in the K2 installer.

Log files from the installation service, i.e. those on the Windows installation log tab, can be opened in Notepad by clicking the corresponding button.

Local installation

This type of installation is available from version K2 mona. It is an installation of IS K2 on a local computer, which is connected in terms of data to the server installation and thus ensures that both always have the same version. The local installation is therefore able to reinstall itself automatically when the server installation is updated.

The main benefit of the local installation is the startup speed of the K2 program. The local installation contains all binary files, localization files and help files. All other data files are shared by the local installation with the server installation.

The installer for the local installation can be found in the server K2 directory, in the SupportFiles\LocalInstall folder. The installer for this installation can be started from this location. The installation is therefore always started from the server K2 for which we want to install the local IS K2 installation.

We start the installer from the specified location using the "K2Installer.exe" file. After start, the installer screen with the Local installation product is displayed.

pic_107602

Picture: Installer for the Local installation

We start the installation itself using the Install button. After start, the first dialog is displayed, informing the user that the installer for the K2 Local installation product has been started.

pic_107603

Picture: Start of the K2 local installation

After pressing the Next button, we proceed to the second dialog, which contains the license agreement that must be accepted after reading in order to continue. We accept the agreement by checking the I accept the terms of the license agreement option.

pic_107604

Picture: K2 license agreement

Using the Next button, we get to the third dialog, where the user is prompted to select directories. In the Installation folder field, we enter the path where the local K2 is to be installed. With the Change button we can browse the directories on physical disks in a standard dialog. After a directory is selected, the installer also appends the instance of the local installation to the path, e.g. K2 for the first installation, K2_I1 for the second, K2_ I2 for the third, etc., so it is advisable to check or change the path before pressing the Next button. This behaviour is justified when we install several local K2 instances and have one common directory prepared for them. We do not recommend installing the local K2 into the Program Files or Program Files (x86) folder. In this case, a problem with updating K2 may occur!

In the Main K2 folder field, we enter the path to the directory with the server K2 installation for which this local K2 is installed. The path to the K2 from which the local installation is started is always offered here. A UNC path should always be specified here.

pic_107605

Picture: Target directory selection

The folder into which the local K2 installation is installed must have the "Modify" permission set for the user who runs the local installation.

pim_1350

Picture: Permission settings

The next screen, displayed after pressing the Next button, is only an overview of the installation components. Here you can also set the creation of a local K2 shortcut on the computer desktop.

pic_107606

Picture: Overview of local installation components

After pressing the Install button, the local K2 installation starts.

pic_107607

Picture: Local installation progress

Finally, the user is informed about the successful installation of the local K2. Pressing the Finish button completes the local K2 installation. The local K2 installation shortcut appears in the Start menu in Windows.

pic_107608

Picture: Completion of the local installation

Solving known problems

If the K2 system cannot be started and the login screen remains, it must be started in the correct mode. Loading of our k2p_*.bpl files is blocked by the internal Windows antivirus.

You can turn it off in the internet browser via Settings ® Update & Security ® Windows Security ® Virus & threat protection ® Real-time protection.

K2 update service

The K2 Update service ensures that the versions of the server and local IS K2 installations match. This service updates the local K2 installation even if the user does not have the right to install any applications on the given computer.

The K2 Update service product must also be installed for Remote management of installations, see the chapter Information for correct functionality.

Installing the update service

The installer for the K2 update service can be found in the server K2 directory, in the SupportFiles\LocalInstall\Packages\UpdateService folder. The K2 update service installer should therefore always be started from the directory of the server K2 for which we have the local K2 installed.

We start the installer from the specified location using the "K2UpdateServiceInstallation.msi" file. After start, the installer screen is displayed with information about the installation of the K2 update service product.

pim_1334

Picture: Start of the K2 update service installation

After pressing the Next button, we proceed to the second dialog, which contains the license agreement that must be accepted after reading in order to continue. We accept the agreement by checking the I accept the terms of the license agreement option.

pim_1335

Picture: K2 license agreement

Using the Next button, we get to the third dialog, where the user is prompted to select the target directory for installing the K2 update service. The directory into which the K2 update service will be installed can be changed using the Change button.

pim_1336

Picture: Target directory selection

In the next installation step there is the Run the event notification application for users check box. If this field is checked, an application that notifies of update service events will be started for each user. An icon representing the status of the update service is then displayed in Windows. If we do not check this field during installation, the application will not be started. For terminal servers, we recommend not enabling this option.

pim_1363

Picture: Running the event notification application

The next step of the installation is entering the name and password of the user under which the K2 update service will run. A local system account or a domain user account can be used. The account must be an administrator of the given computer, and the server K2 must also be visible to this user.

pim_1339

Picture: Local system account

pim_1340

Picture: This account

After pressing the Next button, the passwords are checked for a match. If they do not match, the user is prompted to correct them.

The next screen, displayed after pressing the Next button, only informs the user that the installation is ready.

pim_1337

Picture: Installation confirmation

The user is informed about the successful installation of the K2 update service in the subsequent dialog window.

pim_1338

Picture: Completing the installation

Pressing the Finish button completes the K2 update service installation.

Principle of updating the local installation

After the K2 update service is installed, the icon of this service appears among the running services in Windows. This icon reflects 3 states of the K2 update service:

After the local IS K2 is started using the "K2.exe" file, the server K2 with which the given local K2 is connected in terms of data is always checked. If both K2 instances are the same (have the same version), the local K2 is started. If the server K2 has a different version than the local K2, a request is sent to the K2 update service and this service reinstalls the local K2 so that it matches the version of the server K2. The service then removes the local K2, installs it again and subsequently starts the local IS K2.

If a difference between the local and the server K2 is detected after the local K2 is started and no connection to the K2 update service is established (e.g. if the service is not running or is not installed), the server K2 is started. In this case, IS K2 reports that the server version of K2 is running.

K2 remote management of local installations

This application allows the IS K2 administrator to remotely manage the local installations of the given server K2 installation. This application must always be started from the root directory of the server K2, from the Admin folder. Here we find the "K2RemoteUpdateManager.exe" file, which we use to start the application for remote management of local installations. All operations performed by K2 remote management of local installations require the K2 update service to be running on the given remote computer.

The text file "LocalInstallations.k2" is also available in the Admin directory. This file contains a list of all local IS K2 installations that have been installed for the given server K2. The application for remote management of local installations is based on this text file.

The application for remote management of local installations contains two tabs, Installations and Services.

Installation

The Installations tab is used for remote management of local IS K2 installations.

pim_1341

Picture: Installations tab

In the upper part of the Installations tab, there is basic information about the server K2 installation. The version designation and location of the server K2 are shown here. There may also be a warning that K2 is not in reinstallation mode. If the server K2 is in reinstallation mode, no one can be logged in to the local K2 instances and their remote update can be started safely.

If the server K2 is not in reinstallation mode, users may be logged in to the local K2 instances. In this case, these users may lose e.g. unfinished work when the local K2 instances are updated.

In the lower part of the Installations tab, there is a list of remote computers and the locations of the local K2 instances installed on them. The version designation, the installation date and time and an icon representing the status of the given installation are also always shown. Installations can have 3 states:

pic_928i the local K2 matches the server installation. The local K2 is therefore up to date.

pic_929i the version of the local K2 does not match the server installation. The local K2 is out of date.

pic_930i the update service is not running on the given computer, the service is not installed, or e.g. the local K2 has been deleted manually. This red traffic light covers several states.

When we hover the mouse over the traffic light representing the status, detailed information about this status is displayed (status + date and time of reading). Double-clicking the traffic light representing the status refreshes this traffic light.

After the application for remote management of local installations is started, all installations marked with an orange traffic light are checked automatically. These are not up to date and should be updated. We can also force an update for items with a red or green traffic light, but they must always be checked.

Only checked local K2 installations are updated. The selected local installations are actually updated after pressing the Update button. During the update, no further work can be done in this application. If there are several local installations on a computer, they will be updated one by one.

Using this application, local K2 installations can also be uninstalled remotely. This can be done by selecting the given local installation in the list and pressing the Uninstall button.

A local K2 can also be installed on a computer remotely. To do this, we press the New installation button and in the displayed form fill in the computer name in the Remote computer field and, in the Installation directory field, the path to the directory into which we want to install the local K2.

pim_1342

Picture: New installation

We then confirm the installation of the local K2 with the Install button.

Services

On the Services tab, K2 update services can be managed remotely.

pim_1343

Picture: Services tab

Remote management of services on this tab works similarly to the management of local K2 instances on the Installations tab. The upper part of the Services tab always shows information about the available (current) version of the K2 update service. The lower part then shows a list of all computers on which the K2 update service is installed. This list corresponds to the list of local installations of the given server K2.

For each update service in the list, the name of the computer on which this service is installed, its version designation and its status in the form of a traffic light are always shown. The update service can have 3 different states:

pic_928i The K2 update service is up to date.

pic_929i The K2 update service is not up to date and must be updated.

pic_930i The K2 update service is not running on the given computer, it was not possible to connect to the service, etc. This red traffic light covers several states.

Detailed information about the service status is displayed when hovering the mouse over the given traffic light. The status and the date and time of reading are displayed. Double-clicking the traffic light representing the status refreshes this traffic light.

After the application is started, the services that should be updated, i.e. those marked with an orange traffic light, are always checked. We then start the update of the service itself using the Update button. The application updates the marked items (K2 update services).

Distribution of the K2 update service and local installation using domain group policy (GPO)

The aim of the following text is to describe the distribution of the K2 update service and the local installation using group policy to computers that are members of a domain. The instructions are divided into two parts. The first deals with the settings of the target computers and the second part describes the scripts for remote installation.

Target computer settings

The K2 update service must run under a user who is set as a local administrator on the target computer, i.e. a member of the local "Administrators" group.

As the first step, the policy must add the user intended for running the service to this group. Care must be taken here to add to the "Administrators" group a domain group that we create and to which we assign the given user. If we added the user directly, the whole "Administators" group would be cleared and only the user we were adding would remain its member. The variant with a group preserves and extends the current group settings on the target computer.

This part can be found in the policy detail in the section "Computer Configuration / Policies / Windows Settings / Restricted Groups", see the picture. Here we can see the created group "K2_install_test", which has the "Member Of" membership set to "administrators".

pim_1344

Picture: Target computer settings

Installing the update service

We install the service using a script that we assign in the policy as a "Startup" script. This part can be found in the policy detail in the section "Computer Configuration / Policies / Windows Settings / Scripts(Startup/Shutdown)", see the picture.

pim_1345

Picture: Installing the update service

We create a file, e.g. "update_service_loc_inst.cmd", into which we insert the batch shown and described below. The batch is set up so that the installation starts only if it has not yet been installed on the target computer. Otherwise, the batch ends immediately. If we also want to install the local K2 installation, the parameters marked in red must be included. Without these parameters, only the K2 update service will be installed.

REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\K2UpdateService"

IF %ERRORLEVEL% NEQ 0 (

msiexec /i %DIRECTORY_WITH_MSI_FOR_SERVICE%\K2UpdateServiceInstallation.msi INSTALLDIR="%INSTALL_DIR%" ACCOUNTTYPE=2 WINDOWSUSER=%USER_FOR_SERVICE% CAWINDOWSPASS1=%PASSWORD_FOR_USER_FOR_SERVICE% SERVER_INSTALLATION_PATH=%PATH_WITH_SERVER_INST_K2% CLIENT_INSTALLATION_PATH=%PATH_FOR_LOCAL_K2% SENDREQUESTFORINSTALLNEWK2=1 /quiet /norestart

)

where we replace the following parameters with the required values:

Parameter: %DIRECTORY_WITH_MSI_FOR_SERVICE%

Description: Path to the K2 update service installation file. The path must be accessible to the local user "LocalSystem", under which the installation on the target computer runs.

Parameter: %INSTALL_DIR%

Description: Path for installing the service on the target computer

Parameter: %USER_FOR_SERVICE%

Description: Name of the account under which the update service will run. The user must have access to the server K2 installation and must be listed as a local administrator.

Parameter: %PASSWORD_FOR_USER_FOR_SERVICE%

Description: Password for the user specified above

Parameter: %PATH_WITH_SERVER_INST_K2%

Description: Path to the server IS K2 installation. The path must be in the UNC path format. It must start with "\\".

Parameter: %PATH_FOR_LOCAL_K2%

Description: Path for the local installation on the target computer

Complete example:

REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\K2UpdateService"

IF %ERRORLEVEL% NEQ 0 (

msiexec /i \\ISK2\Server\SupportFiles\LocalInstall\Packages\UpdateService\K2UpdateServiceInstallation.msi INSTALLDIR="c:\K2UpdateService" ACCOUNTTYPE=2 WINDOWSUSER=adm\updateservice CAWINDOWSPASS1=PassForUser SERVER_INSTALLATION_PATH=\\ISK2\Server CLIENT_INSTALLATION_PATH=c:\K2Production SENDREQUESTFORINSTALLNEWK2=1 /quiet /norestart

)

We then add the script to the section described above. The area is shown in the pictures below.

pim_1346

Picture: Form for batch settings

The Add… button opens a form where we select the file with the batch that is to be run on the target computer.

pim_1347

Picture: Form for batch selection

Summary:

In the policy definition, the first step must be adding the user to the local administrators, followed by the script with the installation at computer startup. Finally, we assign the policy to the computers on which the remote installation is to be performed.

The policy is applied to the target computers only after they are restarted.

Note:

The local installation takes place approximately 20 seconds after the installation of the update service.

Reinstallation of IS K2

Reinstallation means upgrading the system to a higher version.

We start the reinstallation in the K2 installer on the Installed tab. Here there is a list of all IS K2 instances installed so far (see the chapter Other options). In the form, we find the IS K2 version we want to reinstall and press the Perform button. This starts the reinstallation of the version. A window with the product installation wizard opens, see Picture: Starting the reinstallation.

pic_107666
Picture: Starting the reinstallation

If K2 is not in reinstallation mode, the installer displays the following message when checking the installation.

pic_107668

Picture: Reinstallation check message

During the reinstallation, one more message may appear, namely if a user has remained logged in to the K2 system.

pic_2912
Picture: Message about a user logged in to K2

After setting the reinstallation flag, or logging out all users, we press the Repeat button. The reinstallation then continues.

If we reinstall IS K2 on an Oracle database, K2 in some cases needs access to the database when checking the readiness of the previous version. After the reinstallation is started, the Database login credentials form appears. This action runs immediately after the start of the installation, so the data cannot be obtained from the installation forms.

pic_3987

Picture: Database login credentials form

After pressing the Next button, a window is displayed with information that the database structures will be checked. As part of the reinstallation, the structures of all clients are checked. Depending on the number of clients, the installer estimates the duration of the check. After pressing the Next button, the check starts.

pic_107669

Picture: Database structure check

If the check finishes successfully, the reinstallation continues with the next window. If errors occur during the structure check, one of the following messages is displayed. Pressing the Interrupt button cancels the reinstallation, the Repeat button runs the check again. If we press the Ignore button, the reinstallation continues and the structure check runs only at the end of the reinstallation.

pic_4921

Picture: Structure check error - the check did not run

pic_4923

Picture: Structure check error - the check found errors

The reported errors must be corrected and the check must then be run again. It is recommended that the structure check reports no errors. The database structure check can be prepared in advance in the reinstall manager (see the chapter Reinstall manager), because the reinstallation mode does not need to be enabled for this check.

When reinstalling to a higher generation version, a form for selecting the license file then appears.

pic_1703882

Picture: License file selection

After pressing the Next button, a form is displayed with the option to install some optional components of IS K2.

In this form, we set the K2 Status, which is used for sending license usage information to K2 atmitec. If we check the Production K2 field, IS K2 will be registered as a production system; if we do not check the field, IS K2 will be a test system and its functionality will be limited.

pic_107670

Picture: Settings of optional installation components

After pressing the Install button, the reinstallation of IS K2 starts.

Notification check

After the reinstallation of IS K2, a log may be displayed with a message about inconsistencies in notifications. After logging in to IS K2, it is necessary to run the Check in the notification settings and remove any inconsistencies.

pic_6979

Picture: Notification check

Reinstall manager

The Reinstall manager is used to ensure a correct reinstallation of the K2 system. The function is available in the tree menu in the Administrator / System folder. To work with the Reinstall manager, the user must have the Service operations right set.

After the function is started, the Reinstall manager form is displayed.

pic_1704028

Picture: Reinstall manager

The checked Login prohibited field prevents users from logging in to IS K2, with the exception of the user who set the login prohibition. This ensures that the reinstallation is not disrupted by the presence of users in IS K2. The Login prohibited from field allows setting from when users will not be able to log in. If the login time is before the set prohibition, a message is displayed stating that it will not be possible to log in to IS K2 from the set time. We set the message in the Login message field. The abbreviation of the currently logged-in user who makes the settings in the Reinstall manager is then filled in automatically in the User field.

pic_1704001

Picture: IS K2 login window - Login prohibited field checked

pic_1704002
Picture: Login window - after filling in the Login prohibited from field

When the Login prohibited field is checked, the Reinstallation enabled field can also be activated. With this, the user confirms that nothing prevents the reinstallation and it can take place. To check this field, all users must be logged out of K2 and all mandatory initializations in the given version must have been performed. If the field is not checked, the installer will not allow us to continue with the reinstallation.

If the field cannot be checked, the reasons appear in the Reasons for not allowing installation table.

pic_107559

Picture: Reinstall manager

Depending on the type of version reinstallation, the following option is selected in the Reinstall manager for Reinstall to version:

Depending on the selected reinstallation variant, checks are run for completion of mandatory initializations and the steps needed for the transition to the required version.

In the Main client field, the client is selected under which all reinstallation actions that do not run separately for each client are to run.

The All button runs the Check structures, Simplified diagnostics of modules from the Object designer and Notification check actions all at once.

The Check structures button checks whether the database structures correspond to the definitions in K2. The check can be run at any time, because it is not bound to checking the Login prohibited and Reinstallation enabled fields. The same check is also performed as part of the installer's preparation for reinstallation.

If certain actions must be performed before reinstalling from a lower version, the Reinstall manager additionally shows a Prepare for "given version" button, which contains the necessary initializations.

After pressing the Simplified diagnostics button, a check is performed of the creation of each module registered in IS K2, including customer modules.

The Notification check may display a log with a message about inconsistencies in notifications. After logging in to IS K2, it is necessary to run the Check in the notification settings and remove any inconsistencies.

The Backup database button opens a form for creating a backup, in which the path for its location must be selected. The database is always backed up on the server where the SQL server is located.

pic_1704029

Picture: List of databases

Warning: After the reinstallation is finished, K2 is still in reinstallation mode and it is not possible to log in to it. The user who made the settings in the Reinstall manager, must log in to K2 after the reinstallation is complete and uncheck the Login prohibited field in the Reinstall manager. After that, it is possible to log in to K2 as any user.

Note: As long as K2 is in reinstallation mode, the user who set the reinstallation mode will be warned about this when closing K2 by the message "K2 has login prohibited. Close anyway?". If the user selects Yes, K2 closes; if No, the user remains logged in.

pic_1704030

Picture: K2 system message when closing K2

Full-text keys

If text fields are changed or deleted during conversions, the full-text key is deleted automatically so that no errors occur while the SQL queries of the conversions are executed. After the conversions finish, a version initialization runs which tries to restore the deleted full-text keys according to the definition in K2: Administrator - full-text key settings, function 778.

Restoring full-text keys can be a time-consuming operation performed on the SQL server in the background. The keys are therefore available for querying only after this background operation has finished.

If an error occurs during restoring, which may be caused by missing fields in the full-text or by a change of the table's primary key, it is written to the log in the folder SetupLogs\repairfulltext_(mandant).log. The listed incorrect full-text keys must be checked and corrected, see the Administrator documentation - chapter 1.17.15. Full-text key settings.

Book Contents

Book Index

K2 application server

This installation package is used to install the IS K2 version 3 application server. The application server then serves the web clients that connect to it. Installation of the application server is also required by the K2 tools Task scheduler and Notification.

Software requirements

The first requirement of the application server installer is that the installation must be run with administrator privileges. Since the K2 installer itself must already meet this condition, this ensures that the privilege is also passed on to all installations run from the K2 installer. To be sure, each installation tests this privilege, so if the privileges are insufficient, the installer displays a message.

The second requirement is that IS K2 must be installed, in the version corresponding to the version of the application server, at least at the level of the version release, i.e. e.g. Iris.3.

If the conditions mentioned above are met, we can start the installation.

Installation

After the installation is started, the first dialog is displayed, informing the user that the installer for the K2 Application server product has been started, and it also displays the number of the version that will be installed.

pic_107610

Picture: AS installation start

After pressing the Next button, we move on to the second dialog, which contains the license agreement that we must accept after reading in order to continue. We accept the agreement by checking the option I accept the terms in the license agreement.

pic_107611

Picture: AS license agreement

The Next button takes us to the third dialog, where the user is prompted to enter the path to the installed K2. Using the Change button, you can browse the directories on physical disks or on the network in a standard dialog.

pic_107612

Picture: Path to IS K2

If IS K2 is not installed in the selected directory, a warning message is displayed when trying to continue the installation, and it does not allow the installation to continue until a valid path is selected.

pim_1127

Picture: IS K2 not found

If a valid IS K2 installation is found in the directory, after pressing the Next button the installation continues to the next dialog, which is used to select the installation path, i.e. the path where the application will be installed. Using the Change button, you can browse the directories on physical disks in a standard dialog.

pic_107613

Picture: Installation directory

After selecting the installation directory and pressing the Next button, a dialog is displayed prompting the user to specify how the application server will be identified and how it will communicate with other applications. K2 web applications can communicate with the application server (and identify it) either by the instance name (named pipe) or by a specific port number. As needed, we therefore enter the instance name or the port number. Only the Web services server - K2 API version 2 and web K2 can communicate with the AS using the port number. For this reason, both access methods can be entered at the same time. Further, we enter the description of the application server, and in the Client field we enter the client for which the application server is to be the default.

pic_107614

Picture: Selecting communication with the application server

pic_107615

Picture: Application server settings

The Turn on notification option turns on notifications on the AS, i.e. the parameter "NSUSERS=K2" is added to the "K2.INI" file. The Turn on scheduler option turns on the scheduler on the AS and the parameter "SCHEDULESERVICE=1" is added to the "K2.INI" file.

If the Configure the application server also for the web services server option is checked, a dialog follows, see picture: Settings for the web services server, which prompts you to enter the anonymous user prefix, the number of users and the users' password. These users must be created in IS K2 before the AS installation and should be numbered in ascending order, e.g. AN1, AN2, etc., where AN is the prefix followed by a sequence number. All these users must have the same password.

If the Configure for e-shop option is checked, the next installation step displays the dialog Application server settings for E-shop, see picture Default contact person number for EShop. Here we enter the number of the contact person through which the anonymous e-shop user is logged in. This contact person must have a registration assigned. The "AS3ContactPerson" parameter is also added to the "K2.INI" of the application server.

If the Configure for contact centre option is checked, the application server installation also displays a dialog, see picture K2 user for contact centre. On this screen we enter the name of the user under which the contact centre runs in IS K2, as well as the password. The values entered here are then added to the "K2.INI" of the application server as the parameters "CCUSER" and "CCPASWORD". The parameter "CONTACTCENTERSERVICE=1" is also added to "K2.INI".

pic_107616

Picture: Settings for the web services server

pic_107617

Picture: Default contact person number for EShop

pic_107618

Picture: K2 user for contact centre

The next dialog of the installation is entering the name and password of the user under which the application server service will run. The local system account can be used, see picture Local system account - AS, or the account of a Windows user, which requires a password, see picture: Windows user 2 - AS.

pic_107619

Picture: Local system account - AS

A domain user with a password can also be used, see picture: Windows user 2 - AS.

pic_107620

Picture: Windows user 2 - AS

After pressing the Next button, the passwords are checked for a match. If they do not match, the user is prompted to correct them. The next dialog of the installation is entering the K2 user under which the application server will connect to IS K2. An already created user can be used, or a special user can be created that will be used only for connecting to the AS. The user used to connect to the AS does not need a reserved license, see picture: K2 user - AS.

pic_107621

Picture: K2 user - AS

After pressing the Next button, the passwords are checked for a match. If they do not match, the user is prompted to correct them.

If the passwords match, a dialog is displayed informing the user that the installation is ready. Clicking the Install button then starts the installation itself.

pic_107622

Picture: Installation confirmation

After a successful installation, the last dialog about the successful installation is displayed to the user, see Picture: End of installation

pic_107623

Picture: End of installation

At the end of the installation or reinstallation of the Application server, a text file with a list of users may be displayed. The reason is the stricter security policy for IS K2 user accounts.

Access to IS K2 from the web can be denied to individual users, and after the reinstallation all users have this access denied. At the end of the installation, the text file displays a list of all users who are linked to a contact person and at the same time have web access denied. These users will not be able to use some functions, such as approving workflow from e-mail. For these users, web access must be set in the Users - password settings book.

pim_1362

Picture: Text file with a list of users

The K2_AS installation automatically sets the K2_AS service to restart in case of an error. In Windows, it sets the option "Restart the Service" in the failure fields on the Recovery tab of the service. This action no longer needs to be done manually.

pic_10218_202410

Picture: AS restart settings

At startup, K2_AS checks for the existence of the economize.cpu file and if it:

Book Contents

Book Index

K2 application server 64 bit

Installation package for installing the 64-bit version of the IS K2 application server. The application server then serves the web clients that connect to it.

Software requirements

An important requirement for installing the 64-bit application server is a 64-bit operating system. The other software requirements do not differ in any way from the installation of the 32-bit application server.

Installation

The installation of the 64-bit application server includes the same installation steps and input dialog windows as the installation of the 32-bit application server.

Book Contents

Book Index

Web K2

This installation package is used to install the Web K2. It is a web client that uses HTML5 technology.

Software requirements

The first prerequisite is the installation of Internet Information Services, hereinafter IIS, version 8.0 or higher. If IIS is not installed, a warning message is displayed at the beginning of the installation.

pim_1135_2024

Picture: Missing IIS

The second prerequisite is the installation of the IIS tool called IIS Metabase and IIS 6 configuration compatibility. If this tool is not installed, a warning message is displayed at the beginning of the installation.

pim_1136

Picture: Missing Metabase Compatibility

Furthermore, the WebSocket Protocol feature must be enabled in IIS. If this feature is not available in IIS, the installer displays a warning message.

pim_1351

Picture: Message when the WebSocket Protocol service does not exist

We install IIS and make all settings in IIS using Windows.

In a server installation of Windows, via Server Manager and the Manage / Add Roles and Features menu, and we set the features according to the settings in the following picture:

pim_1461

Picture: IIS installation in a server installation of Windows

In a client installation of Windows, via Control Panel / Programs and Features / Turn Windows features on or off, and we set the features according to the settings in the following picture:

pim_1427

Picture: IIS installation in Windows 10

Another requirement is that the URL Rewrite module must be installed in IIS. This installation is available in the K2 installer on the Other installations tab, or at the URL address displayed in the warning message if this library is not installed.

pim_1453

Picture: Message when the URL Rewrite module does not exist

Another requirement is the installation of the .NET Core 1.0.0 library or newer. This installation is available in the K2 installer on the Other installations tab, or at the URL address displayed in the warning message if this module is not installed.

pim_1352

Picture: Message when the .NET Core library does not exist

Installation

After the installation is started, the first dialog is displayed, informing the user that the installer for the Web K2 product has been started; in addition, the number of the version that will be installed is displayed.

pic_107624

Picture: Web K2 installation

After pressing the Next button, we proceed to the second dialog, which concerns the license agreement. After the license agreement is accepted, the dialog for selecting the operating system is displayed.

pic_107625

Picture: Target operating system of the Web K2

When installing on Microsoft Windows, the Node.js environment must also be installed. If Node.js is not installed, a warning is displayed. The installation is available in the K2 installer on the Other installations tab.

pic_107626

Picture: Message when Node.js does not exist

Furthermore, the Microsoft Application Request Routing module must also be installed in IIS. The installation is available in the K2 installer on the Other installations tab.

pim_1455

Picture: Message when Microsoft Application Request Routing does not exist

Next, the Protocol type must be selected, either standard HTTP or the secure HTTPS variant, through which communication with the web client will take place, see Picture: Web K2 protocol type.

pic_107627

Picture: Web K2 protocol type

Book Contents

Book Index

Microsoft Windows (local installation)

The next dialog window of the Microsoft Windows installation is used to select the Target directory into which the Web K2 is to be installed.

pic_107628

Picture: Web K2 target directory

After selecting the installation path, a dialog follows in which we set the location of the web application on IIS. This setting subsequently makes up the URL path through which we connect to the web application.

The first input value is the IIS server name, which is essentially the part of the IIS home page URL address without the protocol (HTTP, HTTPS). This means that if we have IIS installed in the standard way on a computer named e.g. "amadeus", the home page is at the URL address http://amadeus. We enter the part of the address after the protocol, i.e. "amadeus". If there are no mappings to other names, the web name is most likely the same as the computer name. On a local computer with its own IIS this is almost always the case. Of course, if we install IIS on a public computer, this is not the case, see the live K2 server, where the IIS home address is at a URL such as https://hetera.k2atmitec.cz. In this case we enter the value "hetera.k2atmitec.cz" in this field. On your local computer, you can verify the address by entering the URL address in the browser window. If the entered URL address is correct, the IIS welcome page is displayed. Caution - the home page may be redirected, see the live K2 server. To sum up - if you install the web client on your local computer, the first input value equals the name of your computer.

The second input value is the selection of the web site on your IIS. After a standard IIS installation, only the so-called "Default" web site is available. This is the web site located at the URL address that is the same as the home address. If it is not required to install the application on a specific IIS web site, we select the Default web site. option.

Another value in this dialog is the Application name on the web server. This is the part of the URL address through which we will access the Web K2 and which will uniquely identify the Web K2 by this address. For example, if we enter "WebK2", after installation the web client will be available at the URL address "http://amadeus/WebK2".

In the Port for the web service part, we specify the number of the port on which the Web K2 will run. The number of ports is max. 65000.

With the Preview button, the application URL can be displayed for checking.

pic_107629

Picture: Application name on the web server

After filling in all information, we can continue to the next dialog, see the picture K2 application server information. It is used to set up communication with the application server, which was described in more detail in the chapter K2 application server.

The first field in this dialog is Name or IP address of the computer with K2 AS. Here we enter the DNS name or directly the IP address of the computer on which we installed the IS K2 application server. If we have the AS installed on our local computer, we can enter the value "." or "localhost".

The second input is the K2 AS instance name. This value was entered during the AS installation and uniquely identifies the application server on the specified computer.

pic_107630

Picture: K2 application server information

When all data have been filled in, we continue with the Next button. A dialog is displayed informing the user that the installation is ready. Clicking the Install button then starts the installation itself.

pic_107631

Picture: Ready to install

After a successful installation, the last dialog with the installation result is displayed to the user.

pic_107632

Picture: Completed installation of the Web K2

Book Contents

Book Index

Linux (remote installation)

When installing on Linux, the next step of the Web K2 installation is specifying the folder into which the product is to be installed.

pic_1704003

Picture: Web K2 target directory

After pressing the Next button, the SFTP connection settings are displayed.

Next, we fill in the data for SFTP connection settings in the Linux environment.

pic_1704004

Picture: SFTP connection settings in the Linux environment

Description of fields:

SFTP address

IP address or name of the SFTP server on which we will install K2 Web.

User for connecting to SFTP

Name of the user for connecting to SFTP in the Linux environment.

Path to the file with the private key for SFTP

We enter the path to the file where the private key of the SFTP user is located. It is used to authenticate access.

In the next step, we fill in the Docker container settings for running.

pic_1704005

Picture: Docker container settings for running

Description of fields:

Container name

Enter a unique name of the container that will be created in Docker.

URL for the Web K2 (without http)

We enter the URL address (domain) for K2 Web. The domain must be routed to the Linux server.

URL postfix for the Web K2

If there is only one application on a server, it does not need to be filled in.

URL preview for the installed application

The complete K2 Web URL address is then composed from the settings above.

Next, we enter the K2 AS instance name. This value was entered during the AS installation and uniquely identifies the application server on the specified computer.

pic_1704006

Picture: K2 application server information

When all data have been filled in, we continue with the Next button. A dialog is displayed informing the user that the installation is ready, see Picture: Ready to install. Clicking the Install button then starts the installation itself.

pic_1704007

Picture: Ready to install

After a successful installation, the last dialog with the installation result is displayed to the user, see Picture: Web K2 installation completed.

pic_1704008

Picture: Web K2 installation completed

Book Contents

Book Index

Limited functions of the Web K2 installed via HTTP

If the Web K2 is installed on HTTP, some functions/methods/objects may be limited, e.g.:

Book Contents

Book Index

K2 API

This installation package is used to install the IS K2 web services server. Using these web services, clients can communicate with this server.

The installer is the same as for the Web K2 installation.

Likewise, the software requirements are the same as for the Web K2 installation.

Book Contents

Book Index

K2 API v2

The second generation of the REST API that makes K2 data and logic available to other applications. Compared to the previous generation, it allows operation on both Windows and Linux servers, authorization using JWT tokens, easier passing of context information and handling of error states. It also contains built-in OpenAPI documentation of the interface.

Book Contents

Book Index

Installation

After the installation is started, a dialog window opens with information about the installation of the given product.

pic_107648

Picture: Start of the K2 API v2 product installation

After clicking the Next button, the K2 License agreement information is displayed. After accepting the license agreement and clicking the Next button, a dialog window for selecting the Target operating system is displayed.

pic_107649

Picture: Target operating system

K2 API v2 can be installed on Microsoft Windows (local installation) or on Linux (remote installation).

Book Contents

Book Index

Microsoft Windows (local installation)

When installing on Microsoft Windows, we select the protocol type on which we want to install K2 API v2. The standard HTTP variant or the secure HTTPS variant can be selected.

pic_107650

Picture: Protocol type for K2 API v2

In the next part, we select the target folder into which we want to install the product.

pic_107651

Picture: K2 API v2 target directory

Next, we choose the location of the K2 API v2 application on IIS.

pic_107652

Picture: Location on IIS

Description of fields:

Web server name

Here we enter the name of the IIS within which K2 API v2 will be installed. The IIS name is usually the same as the computer name.

Select a web site on IIS

Field for selecting the web site on IIS. After a standard IIS installation, only the so-called "Default" web site is available. We therefore enter the value Default Web Site here.

Web server application name

Name for the application on the web server. Unique identification of the application on the web server.

URL preview for the installed application

Button for displaying the complete URL address of the K2 API v2 application.

After filling in the required data in the Application name on the web server part, we click the Next button. A window for entering the K2 application server information is displayed.

pic_107653

Picture: K2 application server information

Description of fields:

Name or IP address of the computer with K2 AS

We enter the name of the computer on which the application server is running.

Port for connecting to K2 AS

We enter the port of the computer on which the application server is running.

After clicking the Next button, a dialog is displayed informing that the installation is ready.

pic_107654

Book Contents

Book Index

Linux (remote installation)

Installation on a Linux server is performed remotely. In this mode, the installation program connects to the specified Linux server, on which it downloads, installs and sets up the Docker container in which the K2 API application runs.

The remote Linux server must have an SFTP server with user authentication by private key and Docker for running the application installed. The Docker image itself is installed on the server from the K2 container registry.

When installing on Linux (remote installation), we select the protocol type on which we want to install K2 API v2. The standard HTTP variant or the secure HTTPS variant can be selected.

pic_1704009

Picture: Protocol type for K2 API v2

In the next part, we select the target folder into which we want to install the product.

pic_1704010

Picture: K2 API v2 target directory

Next, we fill in the data for SFTP connection settings in the Linux environment.

pic_1704011

Picture: SFTP connection settings in the Linux environment

Description of fields:

SFTP address

IP address or name of the SFTP server on which we will install K2 API v2.

User for connecting to SFTP

Name of the user for connecting to SFTP in the Linux environment.

Path to the file with the private key for SFTP

We enter the path to the file where the private key of the SFTP user is located. It is used to authenticate access.

In the next step, we fill in the Docker container settings for running.

pic_1704012

Picture: Docker container settings for running

Description of fields:

Container name

Enter a unique name of the container that will be created in Docker.

URL for K2 api (without http)

We enter the URL address (domain) for K2 api v2. The domain must be routed to the Linux server.

URL postfix for K2 api

If there is only one application on a server, it does not need to be filled in. If we have several K2 api instances, the field must be filled in.

URL preview for the installed application

The complete K2 api v2 URL address is then composed from the settings above.

After filling in the required data and clicking the Next button, a window for entering the K2 application server information is displayed.

pic_1704013

Picture: K2 application server information

Description of fields:

Name or IP address of the computer with K2 AS

We enter the name of the computer on which the application server is running.

Port for connecting to K2 AS

We enter the port of the computer on which the application server is running.

After clicking the Next button, a dialog is displayed informing that the installation is ready.

pic_1704014

Book Contents

Book Index

K2 e-shop, company websites

This installation package is used to install the K2 E-shop and company websites product. This application runs within Internet Information Services. K2 E-shop and company websites uses web services to connect to IS K2, and these in turn use the application server. The installation therefore assumes they already exist. The K2 e-shop, company websites product can be installed locally on Microsoft Windows or remotely on Linux.

Software requirements

The first prerequisite for installing K2 E-shop, company websites is the installation of Internet Information Services, hereinafter IIS, version 8.0 or higher. If IIS is not installed, a warning message is displayed at the beginning of the installation. In IIS, the CGI (Common Gateway Interface) option must be checked in the World Wide Web Services - Application Development Features section. This option is required for PHP to work in IIS.

The second requirement for K2 E-shop, company websites to work is the URL Rewrite extension of IIS. Installing this extension ensures that URL addresses are translated into a readable form. If this extension is not installed, the installer displays a message with a download link. The URL Rewrite installation is also included on the Other installations tab, from where it can be downloaded and installed.

pim_1265

Picture: Installer message (missing URL Rewrite)

A prerequisite is the installation of PHP support version 7.4.3 to 8.3.0. If this support is not installed, the installer informs about it with a message. The link for downloading PHP is http://windows.php.net/.

pim_1266_2022

Picture: Installer message (missing PHP support)

Installing K2 e-shop, company websites on Microsoft Windows (local installation)

After the installation is started, the first dialog is displayed, informing the user that the installer for the K2 E-shop, company websites product has been started. In addition, the number of the version that will be installed is displayed, see Picture: Start of the K2 E-shop, company websites product installation.

pic_107655

Picture: Start of the K2 E-shop, company websites product installation

After pressing the Next button, we proceed to the second dialog, which contains the license agreement. The license terms must be accepted here.

pic_107656

Picture: License agreement

With the Next button, we get to the third dialog, which is used to select the platform for the e-shop installation. This product can be installed on the Microsoft Windows and Linux operating systems.

pic_107657

Picture: Selecting the operating system for the e-shop installation

The next dialog window is used to select the target directory into which the K2 e-shop, company websites product will be installed. With the Change button you can browse the directories on physical disks or on the network in a standard dialog. K2 E-shop, company websites is usually installed into the IIS home directory (the default IIS directory is C:\inetpub\wwwroot). The directory name then determines the final form of the e-shop URL address, which consists of the IIS address and the name of the directory with the K2 E-shop, company websites product installation.

pic_107658

Picture: Selecting the target directory for the e-shop installation

After selecting the installation path, a dialog follows in which we specify the K2 API for the K2 E-shop, company websites product. Using this web application, the K2 e-shop connects to IS K2. In this dialog we select the Protocol type (Http or Https), the IIS server name (usually the name of the computer where K2 API is installed) and the Application name on IIS (the name of the K2 API for the K2 e-shop). These three values form the complete URL address for connecting to the K2 API web application.

pic_107659

Picture: K2 API for the E-shop

We display the next installation window by pressing the Next button again. Here it is necessary to set the login credentials for anonymous access to the e-shop. These are the login credentials set on the contact person for an unregistered e-shop user.

pic_107660

Picture: Login for an unregistered user

The next installation dialog is E-shop settings. This form contains several fields for the basic settings of the e-shop.

pic_107661

Picture: E-shop settings

Description of fields:

E-shop number from K2

Here we enter the RID of the online store from IS K2 for its unique identification.

URL address for accessing images

Field for specifying the URL address for accessing the e-shop images.

E-shop/website template

Here you can select the default template for the e-shop or website. We select from the list of available templates.

URL address for the image server

If the e-shop will use the image server, we enter here the URL address where this server is installed.

By pressing the Next button, we move to the next installer form, Elasticsearch configuration. If the e-shop will use the Smart Search function, the data for accessing the Elasticsearch service must be entered here. This specialized tool is part of the Smart Search function, a detailed description of which can be found in the Technical documentation in the chapter Smart Search (e-shop).

pic_107662

Picture: Elasticsearch configuration

Description of fields:

Elasticsearch

To configure Elasticsearch, this field must be checked. Only then do the other settings of this tool become available.

Address for connecting to the Elasticsearch server

IP address or name of the server on which the Elasticsearch service is installed.

Port for connecting to the Elasticsearch server

Network port on which the Elasticsearch service runs. The default value 9200 is already prefilled in the field.

The next installer window is used to set up the Redis service. This is a data caching service used by the e-shop.

pic_107663

Picture: Redis configuration

Description of fields:

Redis

To configure Redis, this field must be checked. Only then do the other settings of this tool become available.

Address for connecting to the Redis server

IP address or name of the server on which the Redis service is installed.

Port for connecting to the Redis server

Network port on which the Redis service runs. The default value 6379 is already prefilled in the field.

DBIndex for Redis

Database number within the Redis service.

We continue the installation with the Next button. A dialog is displayed informing the user that the installation is ready. Using the Install button, we then start the installation of the K2 E-shop, company websites product itself.

pic_107664

Picture: Installation of K2 E-shop, company websites ready

Finally, after a successful installation, the last dialog with information about the result is displayed.

pic_107665

Picture: Completing the installation

Installing K2 e-shop, company websites on Linux (remote installation)

After the installation is started, the first dialog is displayed, informing the user that the installer for the K2 E-shop, company websites product has been started. In addition, the number of the version that will be installed is displayed, see Picture: Start of the K2 E-shop, company websites product installation.

pic_1704016

Picture: Start of the K2 E-shop, company websites product installation

After pressing the Next button, we proceed to the second dialog, which contains the license agreement. The license terms must be accepted here.

pic_1704017

Picture: License agreement

With the Next button, we get to the third dialog, which is used to select the platform for the e-shop installation. This product can be installed on the Microsoft Windows and Linux operating systems. For a remote installation on the Linux operating system, this option must be checked.

pic_1704018

Picture: Selecting the operating system for the e-shop installation

In the next installer window, the connection to the SFTP protocol for data transfer in the Linux environment must be set up. These are essentially the settings for transferring files to the Linux server. This is done using the SFTP protocol. The K2 installer connects to this protocol using the data entered here.

pic_1704019

Picture: SFTP connection settings in the Linux environment

Description of fields:

SFTP address

Address of the target server for the remote installation of the K2 E-shop, company websites product. The SFTP protocol must be available on this server.

User for connecting to SFTP

Name of the user for connecting to SFTP.

Path to the file with the user's private key for SFTP

User authorization is not based on an entered password but uses a private key. In this field, the path to this key (file) for authorization to SFTP must be entered. Because this login, and thus also the key, is also used by the product reinstallation, the private key should not be moved to another storage location.

The next dialog window is used to select the directory for the installer's temporary files. The K2 installer saves all files it uses for the given installation into this directory. We set this storage in the Place temporary files here field. It is also possible to enter the URL address of the e-shop home page here, if it is already known at the time of installation. It is then used to perform operations that take place immediately after the e-shop installation. We enter the e-shop URL address in the Target URL address of the e-shop field.

pic_1704020

Picture: Selecting the directory and URL address

Next comes a dialog in which we specify the K2 API for the K2 E-shop, company websites product. Using this web application, the K2 e-shop connects to IS K2. In this dialog we select the Protocol type (Http or Https), the IIS server name (usually the name of the computer where K2 API is installed) and the Application name on IIS (the name of the K2 API for the K2 e-shop). These three values form the complete URL address for connecting to the K2 API web application.

When installing on a remote server with the Linux operating system, it makes no sense to enter "localhost" here. The communication does not take place within a single server. It is a connection from the Linux server with the e-shop to the server where K2 API is running.

pic_1704021

Picture: K2 API for the E-shop

We display the next installation window by pressing the Next button again. Here it is necessary to set the login credentials for anonymous access to the e-shop. These are the login credentials set on the contact person for an unregistered e-shop user.

pic_1704022

Picture: Login for an unregistered user

The next installation dialog is E-shop settings. This form contains several fields for the basic settings of the e-shop.

pic_107661

Picture: E-shop settings

Description of fields:

E-shop number from K2

Here we enter the RID of the online store from IS K2 for its unique identification.

URL address for accessing images

Field for specifying the URL address for accessing the e-shop images.

E-shop/website template

Here you can select the default template for the e-shop or website. We select from the list of available templates.

URL address for the image server

If the e-shop will use the image server, we enter here the URL address where this server is installed.

By pressing the Next button, we move to the next installer form, Elasticsearch configuration. If the e-shop will use the Smart Search function, the data for accessing the Elasticsearch service must be entered here. This specialized tool is part of the Smart Search function, a detailed description of which can be found in the Technical documentation in the chapter Smart Search (e-shop).

pic_107662

Picture: Elasticsearch configuration

Description of fields:

Elasticsearch

To configure Elasticsearch, this field must be checked. Only then do the other settings of this tool become available.

Address for connecting to the Elasticsearch server

IP address or name of the server on which the Elasticsearch service is installed.

Port for connecting to the Elasticsearch server

Network port on which the Elasticsearch service runs. The default value 9200 is already prefilled in the field.

The next installer window is used to set up the Redis service. This is a data caching service used by the e-shop.

pic_107663

Picture: Redis configuration

Description of fields:

Redis

To configure Redis, this field must be checked. Only then do the other settings of this tool become available.

Address for connecting to the Redis server

IP address or name of the server on which the Redis service is installed.

Port for connecting to the Redis server

Network port on which the Redis service runs. The default value 6379 is already prefilled in the field.

DBIndex for Redis

Database number within the Redis service.

We continue the installation with the Next button. A dialog is displayed informing the user that the installation is ready. Using the Install button, we then start the installation of the K2 E-shop, company websites product itself.

pic_107664

Picture: Installation of K2 E-shop, company websites ready

Finally, after a successful installation, the last dialog with information about the result is displayed.

pic_107665

Picture: Completing the installation

Book Contents

Book Index

K2 Image server

Installation package for installing the K2 Image server. It is software acting as a server, created for efficient distribution of images to clients of the e-shop and the Web K2 and for optimizing these distributed images. The K2 image server product can be installed locally on the Microsoft Windows operating system or remotely on Linux.

Software requirements

The first prerequisite is the installation of Internet Information Services, hereinafter IIS, version 8.0 or higher. If IIS is not installed, a warning message is displayed at the beginning of the installation.

The second prerequisite is the installation of the IIS tool called IIS Metabase and IIS 6 configuration compatibility. If this tool is not installed, a warning message is displayed at the beginning of the installation, see Picture: Missing Metabase Compatibility.

pim_1136

Picture: Missing Metabase Compatibility

The third prerequisite is that the WebSocket Protocol feature must be enabled in IIS. If this feature is not available in IIS, the installer displays a warning message.

pim_1351

Picture: Message when the WebSocket Protocol service does not exist

The fourth prerequisite for the K2 Image server is the URL Rewrite extension of IIS. Installing this extension ensures that URL addresses are translated into a readable form. If this extension is not installed, the installer displays a message with a download link. The URL Rewrite installation is also included on the Other installations tab, from where it can be downloaded and installed.

pim_1265

Picture: Installer message (missing URL Rewrite)

The fifth prerequisite is the installation of the .NET Core 2.2.2 library or newer. This installation is available in the K2 installer on the Other installations tab, or at the URL address displayed in the warning message if this library is not installed.

pim_1371

Picture: Message when the .NET Core library does not exist

The last, sixth prerequisite is the installation of ASP.NET Core 7.0.5 or higher. This installation is available at the URL address https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-7.0.5-windows-hosting-bundle-installer.

Installing the K2 Image server product on Microsoft Windows (local installation)

Installation

After the installation is started, the first dialog is displayed, informing the user that the installer for the K2 Image server product has been started; in addition, the number of the version that will be installed is displayed, see the picture Start of the K2 image server product installation.

pic_107636

Picture: Start of the K2 Image server product installation

After pressing the Next button, we proceed to the second dialog, which contains the license agreement. The license terms must be accepted here.

With the Next button, we get to the third dialog, which is used to select the platform for the K2 Image server installation. This product can be installed on the Microsoft Windows and Linux operating systems. For a local installation on the Microsoft Windows operating system, this option must be checked.

pic_107645

Picture: Selecting the operating system for the K2 Image server installation

The next step of the installation is selecting the protocol type for communication with the K2 Image server. You can choose between the standard HTTP or the secure HTTPS variant.

pic_107639

Picture: Protocol type for the K2 Image server

The next dialog window is used to select the target directory into which the K2 Image server is to be installed.

pic_107640

Picture: Target directory selection

After selecting the target installation directory, another dialog window follows, where we specify the location of the application (K2 Image server) on IIS. The complete URL address of the K2 Image server is then composed from this setting.

pic_107641

Picture: Location on IIS

Description of fields:

IIS server name

Here we enter the name of the IIS within which the K2 Image server will be installed. The IIS name is usually the same as the computer name.

Select a web site on IIS

Field for selecting the web site on IIS. After a standard IIS installation, only the so-called "Default" web site is available. We therefore enter the value Default Web Site here.

Application name on IIS

Name for the application on IIS. Unique identification of the application on IIS.

Preview

Button for displaying the complete URL address of the K2 Image server application.

The complete URL address of the K2 Image server then consists of the protocol (HTTP or HTTPS), the IIS server name and the application name on IIS.

Using the Next button, we move to the next screen, where we select the directory with the stored images for the e-shop.

pic_107642

Picture: Selecting the directory with images for the e-shop

We continue again with the Next button. A dialog is displayed informing the user that the installation is ready.

pic_107643

Picture: Installation of the K2 Image server application ready

Clicking the Install button then starts the installation itself.

Finally, after a successful installation, the last dialog with information about the result is displayed.

pic_107644

Picture: Completing the installation

Installing the K2 Image server product on Linux (remote installation)

Installation

After the installation is started, the first dialog is displayed, informing the user that the installer for the K2 Image server product has been started; in addition, the number of the version that will be installed is displayed, see the picture Start of the K2 image server product installation.

pic_107636

Picture: Start of the K2 Image server product installation

After pressing the Next button, we proceed to the second dialog, which contains the license agreement. The license terms must be accepted here.

With the Next button, we get to the third dialog, which is used to select the platform for the K2 Image server installation. This product can be installed on the Microsoft Windows and Linux operating systems. For an installation on the Linux operating system, this option must be checked.

pic_107645

Picture: Selecting the operating system for the K2 Image server installation

In the next installer window, the connection to the SFTP protocol for data transfer in the Linux environment must be set up. These are essentially the settings for transferring files to the Linux server. This is done using the SFTP protocol. The K2 installer connects to this protocol using the data entered here.

pic_107647

Picture: SFTP connection settings in the Linux environment

Description of fields:

SFTP address

Address of the target server for the remote installation of the K2 Image server product. The SFTP protocol must be available on this server.

User for connecting to SFTP

Name of the user for connecting to SFTP.

Path to the file with the user's private key for SFTP

User authorization is not based on an entered password but uses a private key. In this field, the path to this key (file) for authorization to SFTP must be entered. Because this login, and thus also the key, is also used by the product reinstallation, the private key should not be moved to another storage location.

The next dialog window is used to select the directory for the installer's temporary files. The K2 installer saves all files it uses for the given installation into this directory. We set this storage in the Place temporary files here field.

pic_107646

Picture: Selecting the directory for the installer's temporary files

We continue again with the Next button. A dialog is displayed informing the user that the installation is ready. Clicking the Install button then starts the installation itself.

Finally, after a successful installation, the last dialog with information about the result is displayed.

pic_107644

Picture: Completing the installation

Book Contents

Book Index

Extensibility with other installations

The K2 installer is designed so that it can be extended with any number of other installations. Each installation must meet the requirements of the installer so that functional management of this installation and its possible instances is ensured. The requirements are described in the following subchapter.

Installation package requirements

For an installation to be usable in the K2 installer, it must meet several conditions. This list is not a guide on how the conditions should be implemented. Their description is not the subject of this manual. These requirements can only be met by a qualified person with expertise in the given field.

Book Contents

Book Index

Computer verification

Checking whether computers meet the IS K2 system requirements – hardware, operating system, required components and settings. Applies to the K2 installer in a version higher than 3.2027.1.3205 and the K2 update service 1.0.31.

Book Contents

Book Index

What computer verification is for

Computer verification checks whether the computer meets the IS K2 system requirements for the role in which you want to use it (database server, application server, workstation, web server, etc.). The checks are based on the IS K2 System requirements document and on the requirements of the individual installers.

Typical use:

The verification does not change anything – it only reads information about the computer (registry, WMI, services, IIS and SQL Server configuration) and displays the result with recommendations on what to adjust.

Book Contents

Book Index

What is checked

The complete list of checks is in Appendix A.

Book Contents

Book Index

Where to find the verification

The verification is located in the K2 installer on the PC verification tab. The tab has two parts:

Book Contents

Book Index

Prerequisites

Book Contents

Book Index

Verifying this computer

If you do not select any role, only the common checks are performed (operating system, updates, time, disk space) and the warning "Computer roles are not set" is displayed.

Book Contents

Book Index

Computer roles

Roles

Description

Common checks

Always performed – applies to every computer with a K2 component.

Database server

MS SQL Server with K2 databases – version, edition, server and database settings, permissions.

BI server

SQL Server for K2 BI – DWH, Integration Services (SSISDB), Analysis Services Tabular.

K2 application server

K2 application server (AS3) x64 as a Windows service – for the Web K2, API, e-shop, notifications and scheduler.

Terminal server

RDS server with the full K2 client for multiple users.

Workstation

Workstation with the full K2 client, a local K2 installation or the Web K2.

Web server – Web K2

Web K2 (k2-web-layer on Node.js) behind IIS with ARR, URL Rewrite and WebSockets.

K2 API v2

K2 REST API (ASP.NET Core) on IIS.

Image server

K2 image server (ASP.NET Core) on IIS.

K2 API v1

K2 API v1 (.NET Framework, WCF) on IIS.

E-shop / company websites

K2 PHP e-shop on IIS (FastCGI).

One computer can have several roles (e.g. application server and web server). Each selected role is evaluated separately.

Book Contents

Book Index

SQL Server

SQL servers on the computer are found automatically – local SQL Server instances and SQL servers specified in the configuration of the installed K2 instances (K2.ini of the application server). The servers found are listed in the result summary in the SQL Server row.

Book Contents

Book Index

K2 version selection

The requirements differ depending on the IS K2 version. Therefore, before the verification, it is determined according to which version the computer is to be checked.

Book Contents

Book Index

Automatic selection

With the Automatically option, the newest version of the K2 products installed on the verified computer is used (based on the version designation that the installers write to the instances, e.g. "K2 bora.1"). For a remote computer, the decision is based on the products installed on it, not on the computer from which you run the verification.

Book Contents

Book Index

Manual selection – checking before an update

In the K2 version list, you can select a specific version. Typically, you select the target version to which the update will be made – the verification shows what needs to be prepared before the update starts. The option applies to this computer and to all remote computers, and the installer remembers it.

The version according to which the computer was checked, and why, is always shown in the result summary in the K2 version row, e.g. "K2 bora – according to installed products (K2 bora.1, K2 nara.4)" or "K2 nara – selected manually".

Book Contents

Book Index

Verifying remote computers

The customer's computers can be verified from one place. The verification is performed directly on the remote computer via the K2 update service and the result is displayed in the K2 installer.

Book Contents

Book Index

Prepare (Count stock)

Log in to the K2 installer. Without logging in, only this computer is verified and a warning with the Log in button is displayed on the tab.

In Remote management (Management of remote computers), have the computers you want to verify added.

For each computer, set what the computer is used for in the Computer roles column. Without roles, only the common checks are performed on the computer.

The K2 update service version 1.0.30 or higher must be running on the remote computers. Update an older service in Remote management.

Book Contents

Book Index

Run

Click Run verification. This computer and all computers from Remote management are verified at the same time. Each computer has its own card with the result; until the verification has run, the card shows "verification has not been run yet".

The requirements (including the selected K2 version) are sent to the remote computer by the K2 installer, so the check is always performed according to the installer's current requirements, even if an older version of the service is on the remote computer.

K2 version selection and automatic version detection based on the products on the remote computer are supported by update service 1.0.31 and higher. Service 1.0.30 also performs the verification and respects a manually selected version, but in Automatically mode it does not recognize the products on the remote computer and uses the requirements of the current K2 bora version. For accurate results, update the service to 1.0.31.

Book Contents

Book Index

Evaluating the result

Book Contents

Book Index

Computer summary

At the top of the computer card there is a summary: computer name, operating system, processor, memory, disks, SQL servers found, the K2 version according to which the check was performed, and the computer roles. On the right is the overall result and the number of checks by status.

Overall result

Meaning

Compliant

All checks are correct (possibly only information or items for manual verification).

Compliant with reservations

At least one check ended with a warning, none with an error. The computer can be used; we recommend resolving the warnings.

Non-compliant

At least one check ended with an error. The error must be removed before installation.

Book Contents

Book Index

Check statuses

Status

Brand

Meaning

Correct

? green

The requirement is met.

Warning

! orange

The requirement is met only partially or is below the recommended value (e.g. memory below the recommendation, product only in extended support, certificate expiring soon).

Error

? red

The requirement is not met – the component is missing, the version is too low, the service is not running, etc.

Verify manually

? grey

The check cannot be performed automatically – verify it according to the requirement text.

Information

i blue

Information only, not included in the result (e.g. the product is not in the lifecycle table).

Unverified

– light grey

The check was not performed because it does not apply (e.g. the product is not installed, the connection to SQL Server is missing).

Book Contents

Book Index

Results by role

Below the summary, the results are divided by role (Common checks, Database server, …). Each role shows its result and counts. Click a role to expand it. Roles that contain a problem are expanded automatically.

Each check contains:

Book Contents

Book Index

Display options

Option

Meaning

Show problems only

Hides checks in the Correct status – only errors, warnings and items for manual verification remain.

Show unselected roles too

Also displays roles that are not selected for the computer (marked "unselected role"). Useful when you are considering adding a role to the computer. The option also applies to the export.

Expand all / Collapse all

Expands or collapses all roles on all cards.

Book Contents

Book Index

Export and report

Book Contents

Book Index

Exporting one computer

The card of each computer has the following buttons:

Button

Result

Export HTML

HTML page with the complete result of the computer – suitable for the customer or consultant; it can be printed or saved to PDF. Default file name: K2_Overeni_pocitace_<computer>_<date>.html.

Export TXT

Text file – suitable for support or as an attachment to a request.

Copy to clipboard

The result in text form to the clipboard – can be pasted directly into an e-mail or request.

After saving, the installer asks whether you want to open the file.

Book Contents

Book Index

Complete report of all computers

The HTML report (all) button in the header saves the results of all verified computers into one HTML file. The button is available when there are computers in Remote management.

The report contains:

Only computers that already have a verification result are included in the report. If none has one, the installer warns that the verification must be run first. The default file name is K2_Protokol_overeni_pocitacu_<date>.html.

Tip: Open the report in a browser and select Print › Save as PDF. When printing, each computer starts on a new page.

Book Contents

Book Index

Troubleshooting

Message

Cause and solution

Verification of computers from remote management is available after logging in.

You are not logged in to the installer. Click Log in.

Failed to connect to the K2 update service on the computer …

The K2 update service is not running on the remote computer, the computer is unavailable or the service port is blocked by a firewall.

The K2 update service version … does not support computer verification …

The service is older than 1.0.30. Update it in Remote management.

Verification of the computer … failed: …

Error during verification on the remote computer. Details are in the update service log on the given computer.

Computer roles are not set – only common checks are displayed.

Select the roles (this computer) or set them in Remote management (remote computer).

SQL Server checks are in the Unverified status

Failed to log in to SQL Server. Review the "Connection to SQL Server" check – the verification runs under the user's account (remotely under the update service account), which must have access to SQL Server.

K2 version: … – no K2 products with a version designation found

There are no K2 products with a version designation on the computer. The requirements of the current version were used; for a different version, select it manually.