Open Bhashinee opened 1 month ago
Hi folks, I experience a very similar behavior, in my case I cannot assure that changes are not taken from the deployment, but after a JBDC connection problem with a database during deployment, I removed the faulty application, fixed the db connection problem, and then try to redeploy the CAPP.
The CAPP does not deploy with the following errors in log file:
[2024-11-19 17:43:46,084] INFO {CappDeployer} - Undeploying Faulty Carbon Application On : /home/wso2carbon/wso2mi-4.2.0/repository/deployment/server/carbonapps/test-CompositeExporter_1.0.0-SNAPSHOT.car
[2024-11-19 17:43:46,201] ERROR {SynapseConfiguration} - Duplicate swagger definition by the name: api_test
[2024-11-19 17:43:46,201] ERROR {CappDeployer} - Error while deploying carbon application /home/wso2carbon/wso2mi-4.2.0/repository/deployment/server/carbonapps/test-CompositeExporter_1.0.0-SNAPSHOT.car org.apache.synapse.SynapseException: Duplicate swagger definition by the name: api_test
The only way we've found so far to get rid of the error once it is present is to restart the server, which is very annoying when we encounter the problem in a production environment.
I'm using MI 4.2.0-99 I would greatly appreciate any help.
Regards
Description
Environment: Windows
Noticed that MI failed to recover from certain faulty Capps. For an example, CApp deployment failure like below has happened.
Then we fixed the issue and redeployed. Still the same CApp (that was failing before) was deploying and failing. We were getting the same error. MI did not cover with the modified until a restart is done. It kept giving above error. Does MI keep failed CApps in a cache and try to do deployments? Why MI did not pick up the CApp that was updated?
Steps to Reproduce
No response
Affected Version(s)
MI 4.2.0
Related issue(s) (optional)
Transferred from https://github.com/wso2-enterprise/wso2-mi-internal/issues/658