Unable to Untag the process for particular environment.

Document ID : KB000009233
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

While in the ROC -> Environments and Tags, trying to un-assign a tagged process from an environment generates the following error:

Server Error Unexpected error on server [Cannot un-assign process. It's being used in Templates and Releases that didn't finish yet.]. Please refer to server logs with timestamp [<timestamp>].

 

Or, while in ASAP -> Environments -> Assigned Processes, trying to un-assign a tagged process from an environment produces the following error: 

Can not un-assign this process.
Cannot un-assign process. It's being used in Templates and Releases that didn't finish yet. 

Environment:
Release Automation 6.x
Cause:

The tagged process is being used in a deployment/release. 

Resolution:

Follow these steps to identify where the tagged process is being used. 

  1. Login to the ROC (Release Operations Center) UI.
  2. Go to Releases -> Deployments
  3. Select the appropriate application and environment.
  4. If there are two many deployments listed here and you cannot find a Running or Pending deployment then use the Filters to only show: Running or Pending.

 

If a deployment is actively running then you will need to either let it finish or stop it before you can un-assign that tag. If the deployment is Pending and you cannot stop/remove the deployment then you can use this procedure to stop and delete the job. 

 

  1. From the Deployments page, open the details for the deployment that is Pending.
  2. In the URL there is a number after "/main/deployments/". Take note of that number. 
  3. Navigate to JMX (http://<NAC hostname>:20203).
  4. Login with username/password nolio/nolio.
  5. Scroll down to the section "Domain: releasecenter".
  6. Select "releasecenter:type=Info".
  7. In the field to the right of "removeRelease", enter the ID of the pending deployment.
  8. Click the "Invoke" button on the same row (for "removeRelease").