Inventory troubleshooting
See the following information to troubleshoot Inventory service issues.
Inventory not reachable after upgrade
When upgrading from Agile Service Manager Version 1.1.17 (which introduced the inventory service) to either version 1.1.18 or 1.1.19, the Resource Manager displays an error message: Inventory service is not reachable
The inventory log displays the following
entry:
org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation
Migration checksum mismatch for migration version 1.0
- Workaround
-
- Open the $ASM_HOME/etc/nasm-inventory.yml file.
- Change the FLYWAY_VALIDATE_MIGRATE parameter to
false
. - Restart Agile Service Manager using the
asm_stop.sh
andasm_start.sh
commands.
Note: This error does not occur when upgrading to Agile Service Manager Version 1.1.20, because the
Flyway validation parameter for v1.1.20 is set to 'false' by default.
Repopulating Inventory
If data in the PostgreSQL database is out of sync with
data in the Cassandra database, rebroadcast the data. This triggers the rebroadcast of all known
resources on Kafka, and the Inventory service will then store those resources in PostgreSQL.
- UI workaround
- To resynchronize data using the UI, run the Rebroadcast administration routine from the Topology configuration page, as described in the Running data administration routines topic.
- Manual workaround
- To resynchronize data manually, call the
rebroadcast
API of the topology service, specifying a tenantId:https://master_fqdn/1.0/topology/swagger#!/Crawlers/rebroadcastTopology