wso2 DAS使用mysql + clustering APIM,无法显示带有此错误的STATS

时间:2016-10-11 09:18:51

标签: mysql wso2 wso2-am wso2-das

1.首先我使用h2数据库集群apim与das .APIM和DAS相互配合良好

2.当我改变mysql时,APIM也很好,但DAS没有。然后我就看不到统计数据了。

    [2016-10-11 17:11:13,335]  INFO {org.wso2.carbon.application.deployer.CappAxis2Deployer} -  Undeploying Faulty Carbon Application On : /home/dgp_aop/tomcat/apim-app/das/repository/deployment/server/carbonapps/API_Manager_Analytics_RDBMS.car
[2016-10-11 17:11:13,336]  INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Deploying Carbon Application : API_Manager_Analytics_RDBMS.car...
[2016-10-11 17:11:13,351] ERROR {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Carbon Application : APIM_STAT_CAPP_v1.0.3 already exists. Two applications can't have the same Id. Deployment aborted.
[2016-10-11 17:11:13,351] ERROR {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Error occurred while deploying Carbon Application
org.wso2.carbon.CarbonException: Carbon Application : APIM_STAT_CAPP_v1.0.3 already exists. Two applications can't have the same Id. Deployment aborted.
        at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:237)
        at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
        at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
        at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
        at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
        at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
        at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
        at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
        at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
        at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
        at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
        at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
[2016-10-11 17:11:13,352]  INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Reverting successfully deployed artifcats in this CApp : APIM_STAT_CAPP_v1.0.3    

1 个答案:

答案 0 :(得分:1)

根据[1],这应该归功于现有的cApp。当您将数据库更改为mysql时,首先必须删除DAS_HOME / repository / data文件夹以及DAS_HOME / tmp目录。

[1] WSO2 Application server CarbonAppUploader will not overwrite existing artifact