Hi, It happens some time if name of artifact is different in api.xml file and artifact.xml.
Can you verify that if the names are same in both files? Thanks! On Wed, 19 Dec 2018 at 14:53, Bernard Paris <[email protected]> wrote: > Hi devs, > > > I'm back with this question because I have the same problem both on my > EI_6.4.0 dev platform and on the QA server. > > What can explain that some API artifacts are not undeployed when their > car's container has been removed ou replaced ? > After undeploy I need to restart the server to make new deployment > successfully proceeded. > > See my logs: > > *1° Start the server and when started deploy the car for the "first" time > : deployment is ok* > > [2018-12-19 14:24:09,361] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} - > Deploying Carbon Application : ESB-Etnic-HOPS-synapse-capp_1.0.0.car... > [2018-12-19 14:24:09,387] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Local > entry : prep-envoyerPE-habilitation-XSLT was added to the Synapse > configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:24:09,388] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.LocalEntryDeployer} - LocalEntry named > 'prep-envoyerPE-habilitation-XSLT' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545225849363ESB-Etnic-HOPS-synapse-capp_1.0.0.car/prep-envoyerPE-habilitation-XSLT_1.0.0/prep-envoyerPE-habilitation-XSLT-1.0.0.xml > [2018-12-19 14:24:09,389] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Local > entry : transform-listeCoursFromEPCtoEtnic-XSLT was added to the Synapse > configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:24:09,389] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.LocalEntryDeployer} - LocalEntry named > 'transform-listeCoursFromEPCtoEtnic-XSLT' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545225849363ESB-Etnic-HOPS-synapse-capp_1.0.0.car/transform-listeCoursFromEPCtoEtnic-XSLT_1.0.0/transform-listeCoursFromEPCtoEtnic-XSLT-1.0.0.xml > [2018-12-19 14:24:09,424] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - > Sequence : envoyerPE-phase1-SEQ was added to the Synapse configuration > successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:24:09,425] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.SequenceDeployer} - Sequence named > 'envoyerPE-phase1-SEQ' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545225849363ESB-Etnic-HOPS-synapse-capp_1.0.0.car/envoyerPE-phase1-SEQ_1.0.0/envoyerPE-phase1-SEQ-1.0.0.xml > [2018-12-19 14:24:09,428] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.rest.API} - Initializing API: > hops-lirePE-habilitation-API > [2018-12-19 14:24:09,429] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - API : > hops-lirePE-habilitation-API was added to the Synapse configuration > successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:24:09,429] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.APIDeployer} - API named > 'hops-lirePE-habilitation-API' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545225849363ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > [2018-12-19 14:24:09,431] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.rest.API} - Initializing API: > test-phase1-envoyerPE > [2018-12-19 14:24:09,448] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - API : > test-phase1-envoyerPE was added to the Synapse configuration successfully - > [ Deployed From Artifact Container: ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:24:09,448] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.APIDeployer} - API named > 'test-phase1-envoyerPE' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545225849363ESB-Etnic-HOPS-synapse-capp_1.0.0.car/test-phase1-envoyerPE_1.0.0/test-phase1-envoyerPE-1.0.0.xml > [2018-12-19 14:24:09,495] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.rest.API} - Initializing API: > hops-envoyerPE-habilitation-API > [2018-12-19 14:24:09,507] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - API : > hops-envoyerPE-habilitation-API was added to the Synapse configuration > successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:24:09,507] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.APIDeployer} - API named > 'hops-envoyerPE-habilitation-API' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545225849363ESB-Etnic-HOPS-synapse-capp_1.0.0.car/envoyerPE-habilitation-API_1.0.0/envoyerPE-habilitation-API-1.0.0.xml > [2018-12-19 14:24:09,508] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} - > Successfully Deployed Carbon Application : > ESB-Etnic-HOPS-synapse-capp_1.0.0 {super-tenant} > > > *2) remove .car from carbonapps : * > watch that neither hops-envoyerPE-habilitation-API nor > hops-lirePE-habilitation-API are being undeployed : > > [2018-12-19 14:27:09,544] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} - > Undeploying Carbon Application : ESB-Etnic-HOPS-synapse-capp_1.0.0... > [2018-12-19 14:27:09,643] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - API : > test-phase1-envoyerPE was removed from the Synapse configuration > successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:27:09,644] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.APIDeployer} - API named > 'test-phase1-envoyerPE' has been undeployed > [2018-12-19 14:27:09,645] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - > Sequence : envoyerPE-phase1-SEQ was removed from the Synapse > configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:27:09,647] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.SequenceDeployer} - Sequence named > 'envoyerPE-phase1-SEQ' has been undeployed > [2018-12-19 14:27:09,648] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Local > entry : prep-envoyerPE-habilitation-XSLT was removed from the Synapse > configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:27:09,648] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.LocalEntryDeployer} - LocalEntry named > 'prep-envoyerPE-habilitation-XSLT' has been undeployed > [2018-12-19 14:27:09,648] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Local > entry : transform-listeCoursFromEPCtoEtnic-XSLT was removed from the > Synapse configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:27:09,648] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.LocalEntryDeployer} - LocalEntry named > 'transform-listeCoursFromEPCtoEtnic-XSLT' has been undeployed > [2018-12-19 14:27:09,652] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} - > Successfully Undeployed Carbon Application : > ESB-Etnic-HOPS-synapse-capp_1.0.0 {super-tenant} > > > At this level the application logically disappear form the carbon > Applications List in the web admin console but I still can see both APIs > in the APIs list. It is not possible to delete it via the web interface > (delete button produce absolutely no effects and gives no errors) > > > > *3) re-deploying the car file :* > > > [2018-12-19 14:39:04,223] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} - > Deploying Carbon Application : ESB-Etnic-HOPS-synapse-capp_1.0.0.car... > [2018-12-19 14:39:04,249] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Local > entry : prep-envoyerPE-habilitation-XSLT was added to the Synapse > configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:39:04,250] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.LocalEntryDeployer} - LocalEntry named > 'prep-envoyerPE-habilitation-XSLT' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/prep-envoyerPE-habilitation-XSLT_1.0.0/prep-envoyerPE-habilitation-XSLT-1.0.0.xml > [2018-12-19 14:39:04,250] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Local > entry : transform-listeCoursFromEPCtoEtnic-XSLT was added to the Synapse > configuration successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:39:04,250] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.LocalEntryDeployer} - LocalEntry named > 'transform-listeCoursFromEPCtoEtnic-XSLT' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/transform-listeCoursFromEPCtoEtnic-XSLT_1.0.0/transform-listeCoursFromEPCtoEtnic-XSLT-1.0.0.xml > [2018-12-19 14:39:04,267] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - > Sequence : envoyerPE-phase1-SEQ was added to the Synapse configuration > successfully - [ Deployed From Artifact Container: > ESB-Etnic-HOPS-synapse-capp ] > [2018-12-19 14:39:04,267] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.SequenceDeployer} - Sequence named > 'envoyerPE-phase1-SEQ' has been deployed from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/envoyerPE-phase1-SEQ_1.0.0/envoyerPE-phase1-SEQ-1.0.0.xml > [2018-12-19 14:39:04,272] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.rest.API} - Initializing API: > hops-lirePE-habilitation-API > [2018-12-19 14:39:04,272] [-1234] [] [CarbonDeploymentSchedulerThread-1] > ERROR {org.apache.synapse.config.SynapseConfiguration} - Duplicate > resource definition by the name: hops-lirePE-habilitation-API > [2018-12-19 14:39:04,274] [-1234] [] [CarbonDeploymentSchedulerThread-1] > ERROR {org.wso2.carbon.rest.api.ApiDeployer} - API deployment from the > file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > : Failed. > org.apache.synapse.SynapseException: Duplicate resource definition by the > name: hops-lirePE-habilitation-API > at > org.apache.synapse.config.SynapseConfiguration.handleException(SynapseConfiguration.java:1668) > blah blah … > > [2018-12-19 14:39:04,281] [-1234] [] [CarbonDeploymentSchedulerThread-1] > ERROR {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} - > Deployment of the Synapse Artifact from file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > : Failed! > org.apache.synapse.deployers.SynapseArtifactDeploymentException: API > deployment from the file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > : Failed. > at > org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:480) > Caused by: org.apache.synapse.SynapseException: Duplicate resource > definition by the name: hops-lirePE-habilitation-API > at > org.apache.synapse.config.SynapseConfiguration.handleException(SynapseConfiguration.java:1668) > at > org.apache.synapse.config.SynapseConfiguration.addAPI(SynapseConfiguration.java:433) > at > org.apache.synapse.config.SynapseConfiguration.addAPI(SynapseConfiguration.java:414) > at > org.apache.synapse.deployers.APIDeployer.deploySynapseArtifact(APIDeployer.java:59) > ... 23 more > [2018-12-19 14:39:04,283] [-1234] [] [CarbonDeploymentSchedulerThread-1] > INFO {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} - The > file has been backed up into : NO_BACKUP_ON_WORKER.INFO > [2018-12-19 14:39:04,284] [-1234] [] [CarbonDeploymentSchedulerThread-1] > ERROR {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} - > Deployment of synapse artifact failed. Error reading > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > : API deployment from the file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > : Failed. > org.apache.axis2.deployment.DeploymentException: API deployment from the > file : > /opt/wso2/wso2ei-6.4.0/wso2/tmp/carbonapps/-1234/1545226744223ESB-Etnic-HOPS-synapse-capp_1.0.0.car/lirePE-habilitation-API_1.0.0/lirePE-habilitation-API-1.0.0.xml > : Failed. > > etc…. > > > > > Strange, I don't have this problems with other cars. > > Thanks for you help > Bernard > > > > Le 22 nov. 2018 à 09:59, Bernard Paris <[email protected]> a > écrit : > > Hi, > > using EI_6.4.0 out of the box (i.e. using H2 DBs, just have one file > WSO2CARBON_DB.h2.db) on my own dev workstation I have a problem with just > an API artifact which is never more clearly undeployed along with its car > container file. > As a consequence I get the error > SynapseException: Duplicate resource definition by the name: xyz-API > when I try to update the car. By the way, I cannot delete this API > using the admin carbon console. > > So now after undeploying the car I have to restart the Ei server. Then > after that restart I can deploy my new car version and the API artifact. > Note that this problem is just for one artifact, the other artifacts in > same car are well undeployed/redeployed with their car container. > > I tried to remove all cars then restart the server, then deploy all cars > one by one. The problem comes back when I re-deploy a new car version > containing the API artifact. > > How can resolve this ? > > Thanks Bernard > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Thanks & Kind regards, *Waqas Ali Razzaq*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
