Error on deployment :A Configuration Item with ID already exists

Follow

Daniel Robichau -

Issue

After a series of deployments it is possible that a correctly executed update deployment will result in the error:

A Configuration Item with ID [Infrastructure/path/to/container] already exists.

Environment

The problem outlined in this article and the attached script refer only to to the following versions of XL Deploy:

8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.0.8 and short term support version 8.1.0.

Cause

There is a bug in the above referenced versions of XL Deploy such that it is possible that an update deployment will fail to register a deployed CI on the environment on which it is deployed, but register it on the infrastructure container.

Resolution

To prevent the problem from occurring again you must upgrade XL Deploy to version 8.0.10 or 8.2.1.  After upgrading to fix the issue run the attached script - fix-deployeds.py in the manner described below.  

Additional Information

From the XL Deploy CLI run the attached script with the command:

bin/cli.sh -q -expose-proxies -username ... -password ... -f fix-deployeds.py
Same error message, other version?

Experiencing the same error in other versions then the ones mentioned above? That is possible! Only then this is not due the same bug as described in this article. Another root cause is causing this issue, so the solution provided in this article will not make any difference. Please contact support if you need any further help.

Tags

 XL Deploy, deployment, error, already exist

Have more questions? Submit a request