TDM Portal: Click on Environments Gives Error : Could not perform the action because of an internal server problem.
search cancel

TDM Portal: Click on Environments Gives Error : Could not perform the action because of an internal server problem.

book

Article ID: 206672

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

After upgrading TDM Portal from TDM 4.9 to TDM 4.9.1 aren't able to access any of our environments that have been created in Portal. When clicking on the Environments link, see an error pop up stating

"Could not preform the action because of an internal server problem. Refer to logs, for more information.

The Server replied: Server encountered an error processing the request. See server logs for more details"

Environment

Release : 4.9.1

Component : CA Test Data Manager

Cause

The most common cause for this error is:

  1. The OrientDB service has been shutdown or stopped
  2. A misconfiguration in the OrientDB database connection
  3. corruption with the OrientDB database.

To determine the root cause:

  1. Review the OrientDB log, which is located by default at %ProgramData%\CA\CA Test Data Manager Portal\orientDB\log\orientdbStartup.txt
  2. Review the TDM Portal logs, which are located by default at %ProgramData%\CA\CA Test Data Manager Portal\logs
    • TDMDataReservation.log
    • TDMFindReserve.log

Resolution

While troubleshoot the issue noticed that the OrientDB service fails to stay running, which could be the result of a misconfiguration or database corruption.

 

When using TDM Portal, the Data reservations for Find & Reserve are held in the OrientDB database, so looking in the orientdbStartup.txt, and the TDMDataReservation.log and TDMFindReserve.log, should help determine the cause of the problem. 

In this example see from the TDMFidReserve.log The FindReserveDataMigration is failing due to an internal server error: 500

2021-01-14 20:54:29.466 UTC [ERROR] [Thread-35                ] --- [U:][M:][P:]                  c.c.t.f.FindReserveDataMigration:  Failed to perform find reserve data migration
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 

 

Looking at the TDMDataReservation.log, see the connection to the ReservationDB, on port 2424 is being refused by the OrientDB.

2021-01-14 20:47:14.711 UTC [ERROR] [https-openssl-nio-8443-exec-2] --- [U:Administrator][M:GET][P:/api/ca/v1/environments]              c.c.t.c.e.h.GlobalExceptionConvertor:  HTTP Error - INTERNAL SERVER ERROR: Exception: Error in creating or accessing the database
java.net.ConnectException: Connection refused: connect

...

Wrapped by: com.orientechnologies.common.io.OIOException: Error on connecting to :2424/ReservationDB

 

Looking at the orientdbStartup.txt, noticed that the database listener shows to running on a different port than 2424. Instead the OrientDB application is listening on port 2480, while TDM Portal is attempting to make the connection of port 2424. This is a clear indication that someone has made modifications to the OrientDB configuration, causing the connection to the database to fail.

 

The OrientDB configuration is controlled by the C:\Program Files\CA\CA Test Data Manager Portal\orientdb|config|orientdb-server-config.xml (default location). In this xml file look for the <listeners> tag to see how the ports are configured. By default, the listener port for binary connections should be set to port 2424, while the http connections use port 2480. In this example, both listener ports were set up to listen on port 2480, and causing the database connection to fail.

 

Additional Information

As a best practice, Broadcom always recommends backing up the TDM Portal installation directory before running your upgrade. The main reason for this is to keep a working backup of the TDM Portal configuration files, as well as a copy of the OrientDB configuration files and OrientDB database.

NOTE: When troubleshooting this type of issue in the environment, might find that the OrientDB service is running, but the orientdbStartup.txt shows the login attempt is failing. Looking through the orientdb-server-config.xml file, under the <users> tag there will be the OrientDB application stores the password as an encrypted value. This is also true if looking in the TDM Portal's application.properties file. However, the two encryption methods are different, so it cannot recover one by finding the encrypted value in the other file. Therefore, it's important to make note of the OrientDB username and password that was set up at the time the application was installed. If the configuration is ever changed, and the encrypted password value is not correct, it will not be able to recover the OrientDB password.  The only option will be to uninstall TDM Portal, which also uninstalls the OrientDB database, and do a fresh installation.

For more information on upgrading TDM see: