HCL Commerce Version 9.1.18.0 or later

Troubleshooting: NiFi Ingestion Error

Nifi becomes healthy in 3 minutes but is not ready for ingestion until 3 more minutes.

Problem

The NiFi container in version 9.1.18.0 reports as "healthy" in less than 3 minutes, significantly faster than previous versions, which could take approximately 7 minutes in a docker-compose environment. However, the NiFi service itself might not be fully operational even when the container is healthy.

For example, to start ingestion immediately after the NiFi container reports as healthy, use the below command::
curl --insecure -X POST "https://localhost:30801/connectors/auth.reindex/run?storeId=11&envType=auth

You may receive the following message: "An internal server error occurred during data ingest. The request was not processed since the Ingest service has not yet started. Retry your request later."

Solution

To prevent this error, wait a few minutes after the NiFi container reports as healthy before initiating ingestion.