Commands stuck in progress

A scan or a migration command in Cloudera Migration Assistant can stay in the IN_PROGRESS state when the agent that runs it stops, loses its connection, or finishes the work without reporting it. Cancel the command, check the agent, and restart the agent if needed.

Symptoms

On the Commands page, a command has been IN_PROGRESS for much longer than usual, or a scan or an execution step never finishes.

Cause

The agent that runs the command stopped, lost its connection, or finished the work without reporting it.

Solution

  1. On the Commands page, find the command.
  2. Click the Cancel icon on its row.
  3. Reload the page, and check whether the state changed to CANCELED.
  4. If the command is still in progress, check the agent on the Agent Overview page.
    If the agent is not ONLINE on the Instances tab, see Agent does not connect to master.
  5. Restart or wait for the agent:
    • For an agent on a Cloudera Base on premises cluster, restart the CMA Agent service in Cloudera Manager. Then cancel the command again.
    • For an agent that runs on the Anywhere Cloud cluster, wait until its pod is running again. For pods that restart, see Engine fails to deploy: out of memory.
  6. For an execution step, check the work on the target.
    If the work finished but the step did not report it, cancel the command, and click Run > Run Current Step, or create a new execution.
  7. If the command is still stuck, collect the diagnostic bundle and the agent log, and contact Cloudera Support.

    See Collecting diagnostics and logs.