HCL Commerce Version 9.1.12.0

Troubleshooting: Errors when building default Catalog Asset Store 10501

When you index the default Catalog Asset Store 10501, it fails intermittently with a [FORBIDDEN/8/index write (api)] error.

Problem

The two default Catalog Asset Store (CAS) indexes are 12001 and 10501. The 10501 store ID builds the AuroraESite (1), AuroraB2BESite (2), Sapphire (12) and SapphirePlus (22) when you issue the reindexing command
POST http://hostname:30800/connectors/auth.reindex.cas/run?storeId=10501
In some cases the corresponding call to storeId=12001 succeeds, but the reindexing call to storeId=10501 fails with an error similar to the following:
"Update request (bulkId 366844ec-569d-4546-9d15-73761bed18a7 for 
bulk-store-auth.reindex.cas-DatabaseCASProductStage1c-10501--1-i-4e366057-00ea-439d-9f1c-89798793ad36) 
with _id 1--1 was sent to Elasticsearch but returned with Http status code 403: {type=cluster_block_exception, 
reason=index [auth.store] blocked by: [FORBIDDEN/8/index write (api)];}"

Solution

This error be resolved by deleting the store index and reindexing.
  1. Delete the existing store index:
    
    DELETE: http://hostname:30200/auth.store
  2. Reindex the CAS store.
    POST http://hostname:30800/connectors/auth.reindex.cas/run?storeId=10501
For more information on the CAS stores and how they are indexed, see Asset Store indexing API and schema.