Skip to content

Setup

Overview

This page explains the setup and start-up steps of Operations Tools.

Limitations

Operation Steps

1⃣ When you upgrade from ver.1.0.0

Note

If you are doing a new setup rather than an upgrade, go to "2. Placing the executable files".

In ver.1.0.0, an index was added to the Syslogs table to improve the performance of this software. In ver.1.1.0 the displayed data is held in an intermediate table, which improves the performance and makes the index unnecessary. This section therefore explains how to remove the index added in ver.1.0.0.

Warning

We recommend that you take a backup of the database before you start. If you run CodeDefiner when upgrading the version of Pleasanter after the work below, be sure to set DisableIndexChangeDetection in Set Parameter: Rds.json to true (the default value). If it is false, the Syslogs table is recreated (Migrate) and, when there are many records, the processing of CodeDefiner can take a long time.

Connect to the database as a user with dbowner permission (refer to Set Parameter: Rds.json) and remove the indexes.

  1. Remove the indexes from the Syslogs table.

    drop index idx_eot_Method on SysLogs;
    drop index idx_eot_CreatedTime on SysLogs;
    
  2. Commit.

    commit;
    
  1. Remove the indexes from the Syslogs table.

    drop index idx_eot_Method;
    drop index idx_eot_CreatedTime;
    
  2. Commit.

    commit;
    

2⃣ Placing the executable files

  1. Confirm that "ExtendedLibraries" and "wwwroot" are present in the "OperationsTools_x.x.x.zip" you downloaded from the Releases page of Operations Tools.
  2. Stop the Pleasanter service.
  3. In the environment where Pleasanter runs, move to the directory below.

    C:\web\pleasanter\Implem.Pleasanter
    
    /web/pleasanter/Implem.Pleasanter
    
    C:\home\site\wwwroot
    
  4. Place "ExtendedLibraries" and "wwwroot" from "OperationsTools_x.x.x.zip" with the GUI or with a command. In a Windows environment the result is as follows.

    C:\web\pleasanter\Implem.Pleasanter\
     ├ App_Data\
     └ ExtendedLibraries\ * placed
      └ OperationsTools\
     ├ Libraries\
     ├ runtimes\
     ├ Views\
     └ wwwroot\
      ├ bundles\
      ├ content\
      ├ images\
      ├ operations-tools\ * placed
      ├ scripts\
      └ styles\
    

    Note

    For a Linux or Azure environment, do the work with reference to the supplementary sections below.

  5. Open the General.json in the directory below with any editor. There is a file with the same name among the Pleasanter parameter settings files. Take care not to confuse them.

    C:\web\pleasanter\Implem.Pleasanter\ExtendedLibraries\OperationsTools\App_Data\Parameters\General.json
    
    /web/pleasanter/Implem.Pleasanter/ExtendedLibraries/OperationsTools/App_Data/Parameters/General.json
    
    C:\home\site\wwwroot\ExtendedLibraries\OperationsTools\App_Data\Parameters\General.json
    
  6. Specify the login IDs of the users who can use Operations Tools in Login.Users, in array format.

    General.json: before the change
    1
    2
    3
    4
    5
    6
    7
    8
    9
    {
       "SetupPassword": "operations-tools",
        "Login": {
            "Users": [ "Administrator" ]
        },
        "PageSize": 50,
        "SQLCommandTimeout": 240,
        "DefaultParametersDir": "DefaultParameters"
    }
    
    General.json: after the change
    1
    2
    3
    4
    5
    6
    7
    8
    9
    {
       "SetupPassword": "operations-tools",
        "Login": {
            "Users": [ "Administrator", "AdminUser1", "AdminUser2" ]
        },
        "PageSize": 50,
        "SQLCommandTimeout": 240,
        "DefaultParametersDir": "DefaultParameters"
    }
    
  7. Place the parameter JSON files from before the change, for the version of Pleasanter you use, under the DefaultParameters folder.

    Example of where to place them
    C:\web\pleasanter\Implem.Pleasanter\ExtendedLibraries\OperationsTools\App_Data\
     └ DefaultParameters\
      ├ Api.json * placed
      ├ Authentication.json * placed
      ├ ...
    

    Note

    By placing them under the DefaultParameters folder, you can compare the differences on the parameter list screen described later.

    If you do not have the parameter JSON files from before the change to hand, download them from the releases page on GitHub.
    https://github.com/Implem/Implem.Pleasanter/releases

  8. Start the Pleasanter service.

    Note

    When you upgrade Operations Tools, stop the Pleasanter service, delete "ExtendedLibraries" and "wwwroot/operations-tools", and then follow steps 1 to 8 above.

About the parameter General.json

These are the parameters for the common settings. Each parameter is explained below.

Parameter Name Value Description
SetupPassword operations-tools Specifies the password entered at setup.
Login.Users [ "Administrator" ] Specifies the login IDs of the users who can use Operations Tools, in array format.
PageSize 50 Specifies the default value for paging.
SQLCommandTimeout 240 Specifies the timeout of SQL commands, in seconds.
DefaultParametersDir DefaultParameters Specifies the directory where the parameters from before the change are placed. (For the parameter list screen)

About the parameter BackgroundService.json

These are the parameters for the processing that synchronises the intermediate table used to display the data, in the background. Each parameter is explained below.

Parameter Name Value Description
IntermediateTableSynchronize.Enable true Specifies whether the background processing is enabled or disabled, with true or false.
IntermediateTableSynchronize.RunTime [ "00:00", "12:00" ] Specifies the times at which the background processing runs, in array format.

Supplement: for a Linux environment

For a Linux environment, use the steps below as a reference. (They assume that you work from a local Windows environment.)

  1. Stop the Pleasanter service with the command below.

    sudo systemctl stop pleasanter
    
  2. Compress the executable files "ExtendedLibraries" and "wwwroot" into zip files.

  3. Upload them in binary mode to "/web/pleasanter/Implem.Pleasanter" with a tool such as WinSCP.
  4. Move to the directory with the command below.

    cd /web/pleasanter/Implem.Pleasanter
    
  5. Extract the zip file "ExtendedLibraries.zip" with the command below.

    sudo unzip -q -d /web/pleasanter/Implem.Pleasanter ExtendedLibraries.zip
    
  6. Extract the zip file "wwwroot.zip" with the command below.

    sudo unzip -q -d /web/pleasanter/Implem.Pleasanter wwwroot.zip
    
  7. Change the owner under the directory "ExtendedLibraries".

    sudo chown -R <the user that starts Pleasanter> /web/pleasanter/Implem.Pleasanter/ExtendedLibraries
    
  8. Change the owner under the directory "wwwroot/operations-tools".

    sudo chown -R <the user that starts Pleasanter> /web/pleasanter/Implem.Pleasanter/wwwroot/operations-tools
    
  9. Start the Pleasanter service with the command below.

    sudo systemctl start pleasanter
    

Supplement: for an Azure environment

For an Azure environment, use the steps below as a reference.

  1. Stop the App Service.
  2. Compress the executable files "ExtendedLibraries" and "wwwroot" into zip files.
  3. Open Kudu on Azure and move to "C:\home\site\wwwroot>".
  4. Upload the zip file "ExtendedLibraries.zip" by dragging and dropping it.

    Uploading ExtendedLibraries.zip in Kudu on Azure by drag and drop

  5. Upload the zip file "wwwroot.zip" by dragging and dropping it.

    Uploading wwwroot.zip in Kudu on Azure by drag and drop

  6. Start the App Service to start Pleasanter.

3⃣ Running the setup

  1. Access the URL below.

    http://{the path of Pleasanter}/operations-tools/admin
    

    The Operations Tools management page, where the setup password is entered

  2. Enter the password and click the setup button.

    Note

    The password is the value of SetupPassword set in General.json (the initial value is "operations-tools").

  3. The message "Setup is in progress. Please wait a moment." is displayed.

    The message "Setup is in progress. Please wait a moment."

  4. When the message "Setup is complete." is displayed, the setup is complete.

    The message "Setup is complete."

    Note

    The operation above creates the set of tables for Operations Tools (the tables with the prefix "_eot").

    Note

    The data displayed on some screens is created in the intermediate table at the moment you run the setup, and is synchronised in the background at the times specified in IntermediateTableSynchronize.RunTime in the Operations Tools parameter BackgroundService.json. When you want to see the most recent data, press the "Refresh the displayed data" button to synchronise the data manually.

Troubleshooting

Q1. When I access the administration page, the message "The license file is not set correctly, or the license file is invalid." is displayed as follows.

The error message saying the license file is not set correctly or is invalid

A1. Confirm that a valid license file is placed in Pleasanter itself.


Q2. On some screens, results such as the detail information are not displayed.

A2. Depending on the volume of data in the target environment, the setup processing can be interrupted by a timeout, in which case the results on some screens are not displayed. In that case, try the following steps.

  1. Adjust the value of "SQLCommandTimeout" in the Operations Tools parameter file General.json.

    General.json
    1
    2
    3
    4
    5
    6
    7
    8
    9
    {
       "SetupPassword": "operations-tools",
        "Login": {
            "Users": [ "Administrator", "AdminUser1", "AdminUser2" ]
        },
        "PageSize": 50,
        "SQLCommandTimeout": 240,  <-- adjust the value
        "DefaultParametersDir": "DefaultParameters"
    }
    
  2. Restart Pleasanter.

  3. Click the "Refresh the displayed data" button on the administration page of Operations Tools.
  4. Check the log in the [_eot_JobHistory] table and check the content of Status, ErrMessage and ErrStackTrace.
    (It has succeeded if Status is 'Success' and ErrMessage and ErrStackTrace are blank.)