Hi Kasun, This fails because the "restService.isAlreadySubscribed" is failed. Check line number 72 of StratosDeployer.java. I would debut the isAlreadySubscribed method and see why is it giving wrong result.
thanks, dimuthu On Wed, Oct 1, 2014 at 9:29 PM, Kasun De Silva <[email protected]> wrote: > Hi All, > > I'm working .NET App type support in AF. Currently I have setup AF and a > seperate build server with MSbuild in EC2. When I create a .NET app it > automatically builds and deployable artifact is uploaded to the s2 repo. > > But when I hit deploy again it gives me following exception, > > TID: [0] [AS] [2014-10-01 21:17:35,651] INFO > {org.wso2.carbon.appfactory.deployers.StratosDeployer} - generated repo > URL: Development/dotnet/4/dotnetapp003bbbdotcom > {org.wso2.carbon.appfactory.deployers.StratosDeployer} > TID: [0] [AS] [2014-10-01 21:17:35,665] ERROR > {org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider} > - Repository is not created for Development/dotnet/4/dotnetapp003bbbdotcom > due to remote server error > {org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider} > TID: [0] [AS] [2014-10-01 21:17:35,666] ERROR > {org.wso2.carbon.appfactory.deployers.AbstractDeployer} - Error when > calling deployLatestSuccessArtifact Unable to create repository > {org.wso2.carbon.appfactory.deployers.AbstractDeployer} > org.wso2.carbon.appfactory.common.AppFactoryException: Unable to create > repository > at > org.wso2.carbon.appfactory.deployers.StratosDeployer.createSubscription(StratosDeployer.java:100) > at > org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.addToGitRepo(AbstractStratosDeployer.java:127) > at > org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.deploy(AbstractStratosDeployer.java:60) > at > org.wso2.carbon.appfactory.deployers.AbstractDeployer.deployLatestSuccessArtifact(AbstractDeployer.java:108) > at > org.wso2.carbon.appfactory.jenkins.deploy.JenkinsArtifactDeployer.deployLatestSuccessArtifact(JenkinsArtifactDeployer.java:101) > at > org.wso2.carbon.appfactory.jenkins.artifact.storage.AppfactoryArtifactStoragePlugin.doDynamic(AppfactoryArtifactStoragePlugin.java:95) > > > > In my understanding this happens because there is already a repo in s2 > git. so the generated url getting messed up since > org.wso2.carbon.appfactory.deployers.StratosDeployer.createSubscription(StratosDeployer.java:100) > does not check whether the repo is already there or not. > > what could be the solution for this ? > > Thanks, > Kasun > > *Kasun de Silva* > Software Engineer | *WSO2 Inc.*; http://wso2.com > lean.enterprise.middleware > > email : [email protected] > mobile : +94 77 794 4260 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Dimuthu Leelarathne Architect & Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: [email protected] Mobile : 0773661935 Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
