GMU Error during migrateOut generic entity
search cancel

GMU Error during migrateOut generic entity

book

Article ID: 107612

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Customer had APM[Precision Monitoring] solution kit installed in our environment but it was later uninstalled due to a JVM issue.  Although we have uninstalled it completely, it looks like there are still some remnants of the component.

Attempting to migrateout all entities from current environment with gmu fails.


Getting Error: ​Execution failed. Reason: Internal Server Error. Detail: Can not find generic entity manager for class: com.l7tech.external.assertions.latencymetrics.config.Glm MetricsGlobalConfig


GMU Command being used:
GatewayMigrationUtility.bat migrateOut -z xyz_source.properties --all --dest xyz_FullMigration.xml --defaultAction NewOrUpdate 

Environment

All supported versions of the CA API Gateway

Resolution

In this case there is a generic entity table entry that had a rogue element. 

To fix this error;

1) Do a mysqlbackup.
mysqldump --all-databases | gzip > /tmp/DB_backup.sql.gz

2) Run a mysql cleanup query, 
# mysql
# use ssg
# delete from generic_entity where name like 'com.l7tech.external.assertions.latencymetrics.config.GlmMetricsGlobalConfig';

This resolved this issue and the migrateOut command then completed successfully.