Error: “String Index Out of range: -1 error” displayed on Management Station Status page of TIBCO LogLogic LMI

Error: “String Index Out of range: -1 error” displayed on Management Station Status page of TIBCO LogLogic LMI

book

Article ID: KB0077328

calendar_today

Updated On:

Products Versions
TIBCO LogLogic Log Management Intelligence all versions up to 4.5.0

Description

The LMI appliance may display Error: “String Index Out of range: -1 error” prior to version 4.5.1 as a result of a known issue that causes the appliance list in the Management Station Status to become slightly altered and prohibits the list from being rendered on the web interface. This is usually seen when a Management Station is also one part of a High Availability cluster.

 

Issue/Introduction

This article explains the possible cause for Error: “String Index Out of range: -1 error” displayed on the LMI Management Station Status page.

Resolution

The problem can be fixed by making appropriate changes directly in the database by appending the proper text to the list of appliances in the logappconfig.mstsAppliances table:

 
1. SSH to the appliance and log in as ”toor”.
2. Run these commands:
$ mysql
> select * from logappconfig.mstsAppliances;

You should see a table that looks similar to this:

+----+-----------+-----------------------------+------+
| ID | IPAddr    | Name                        | Type |
+----+-----------+-----------------------------+------+
|  1 | 10.5.1.9  | LX 1000 at 10.5.1.9         | LX   |
|  2 | 127.0.0.1 | LX 1010                     | LX   |
+----+-----------+-----------------------------+------+

Notice the second line doesn't have the "at [ip address]" line. This is the problem. The line needs to be updated with "at 127.0.0.1" at the end of it.
 
3. To append the proper text to the column, type:

> update logappconfig.mstsAppliances set Name = "LX 1010 at 127.0.0.1" where ID=2;

Note: Be sure to select the proper model of you appliance (check the contents of /etc/platform to confirm).  Example:  ST 3000, ST 3010, LX 2010, etc.
Note: Be sure to include a space between the letters and numbers in the appliance model.  Example:  ST 3000 rather than ST3000.
 
4. Repeat Step 2 to ensure the changes were applied properly. 
5. Perform these steps on both appliances in the HA cluster.