【问题标题】:wso2 DAS use mysql + clustering APIM,can not show STATS with this errorwso2 DAS 使用 mysql + clustering APIM,无法显示此错误的 STATS
【发布时间】:2016-10-12 13:37:05
【问题描述】:

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    

【问题讨论】:

  • 您在查看统计数据时还有什么问题吗?你说then i can watch stats。此外,该 cApp 已成功部署。
  • 对不起,我的错。我吃我的“不”。我的统计数据仍然不起作用。

标签: mysql wso2 wso2-am wso2-das


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-17
    • 1970-01-01
    相关资源
    最近更新 更多