Imaging Request Agent failed to submit a job
Description
This alert is triggered when the Imaging Request Agent could not clean up the imaging job of a dead-lettered request at least once in the last 30 minutes. A dead-lettered request is an imaging request that could not be processed, and the job may be left in progress.
Resolution Guidance
Impact When Active
- The affected imaging job can stay in progress and never complete. The documents of the job can keep waiting for their images.
- The dead-lettered imaging request is not retried.
How To Resolve
An Imaging Request Agent picked up an imaging job but did not finish it. The documents in the job keep the Has Images value Pending. Submitting them again does not help, because Imaging skips documents that are still Pending. The job cannot be canceled or stopped in Relativity. The alert stays active for 30 minutes after the failed clean-up and then clears by itself, but this does not mean that the job was fixed. To resolve it:
- Find the affected job and documents.
- Log into Relativity and go to the Errors tab. Look for entries that mention a message was deadlettered, and note the workspace and the time of the alert.
- In the workspace, open the Documents tab and filter Has Images by Pending. Note the Control Numbers of the affected documents.
- Fix the cause of the failure. Check that the Imaging Request Agent and the Imaging Manager are running and healthy, and resolve any problem shown on the Errors tab for the job.
- Submit the documents for imaging again. If they are processed, no further action is needed. If they are skipped and Has Images stays Pending, continue with step 4.
- Contact Relativity Support and provide the workspace name and ID, the Control Numbers of the affected documents, and the time the alert fired.
- Support clears the stuck job and resets the affected documents. After Support confirms, submit the documents for imaging again.
Do not delete the documents and upload them again to work around this. It loses their coding, history and relationships, and it does not clear the stuck job.
You can also try..
- Open the Imaging Errors & Warnings dashboard in Kibana and check the Agent Error Logs panel for errors of the Imaging Request Agent from around the time of the alert.
- Search the log of the Imaging Request Agent for "Failed to handle deadletter for message" to read why the clean-up could not be sent, or for "will no longer be retried" if a clean-up request reached its resubmission limit. The [Relativity] Imaging Logs saved search in Kibana Discover shows the warning and error logs of the imaging agents.
- If the failures continue, disable the Imaging Request Agent and then enable it again after the underlying error is fixed.
Alert Details
Every time the Imaging Request Agent receives a dead-lettered message, it counts it and records how it dealt with it: handled when the clean-up request for the imaging job was sent (or no clean-up was needed), and cleanup_failed when the job could not be cleaned up. The alert is active when one or more cleanup_failed were counted in the last 30 minutes.
The agent records cleanup_failed only after it has given up. If the clean-up request itself fails and is dead-lettered, the agent sends the clean-up request again, up to 10 times by default, and these dead letters are counted as handled. The agent also records cleanup_failed when it cannot create the error record, or cannot publish the clean-up request after its retries.
The alert clears by itself when the failed clean-up is older than the 30-minute window. It does not mean that the job was fixed, so check the imaging job even after the alert has cleared. The same counter is used by the alert "Imaging Request Agent dead letter rate is high", which counts every dead letter.
Alert Condition Details
| Name | Value | Description |
|---|---|---|
| Rule Type | Elastic Query | |
| Data View | metrics-* | |
| Filter Query | relsvr.imaging.deadletter_count : * AND labels.HandlerName : "Imaging Request Handler" AND labels.outcome : "cleanup_failed"
|
|
| Group | Sum of relsvr.imaging.deadletter_count | The rule adds up the counter values; it does not count documents |
| Threshold | >= 1 | A single failed clean-up is enough |
| Time Window | 30 minutes | The alert stays active for 30 minutes after a failed clean-up, so that an administrator has time to notice it |
| Frequency | 1 minute |
Alert Metric Details
Metric Name: relsvr.imaging.deadletter_count
Metric Description: A counter that the Imaging Request Agent increases by 1 for every dead-lettered message it receives. The outcome attribute says how the agent dealt with the message.
Metric Attributes:
| Attribute Name | Description |
|---|---|
| labels.HandlerName | The handler that received the dead-lettered message: Imaging Request Handler |
| labels.outcome | How the agent dealt with the message: handled or cleanup_failed |
| host.name | The host that runs the agent |