[Dev] [APPFAC] .NET support
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 : kas...@wso2.com mobile : +94 77 794 4260 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET support
Hi Kasun, Can you please check whether the repo is already available or not. If it's not there then it might be a deployment issue in the artifacts. Thanks ! On Wed, Oct 1, 2014 at 9:29 PM, Kasun De Silva 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 : kas...@wso2.com > mobile : +94 77 794 4260 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET support
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 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 : kas...@wso2.com > mobile : +94 77 794 4260 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Dimuthu Leelarathne Architect & Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET support
Hi Manula, The repo is already there, I have checked and that is not the issue. Thanks, kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET support
Hi Dimuthu, Thanks for the response, I was worried about repoProvider.createRepository() method, but of course the isAlreadySubscribed give a wrong result. I will check it and fix it, then the problem will solve. Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Thu, Oct 2, 2014 at 9:38 AM, Kasun De Silva wrote: > Hi Manula, > > The repo is already there, I have checked and that is not the issue. > > Thanks, > kasun > > *Kasun de Silva* > Software Engineer | *WSO2 Inc.*; http://wso2.com > lean.enterprise.middleware > > email : kas...@wso2.com > mobile : +94 77 794 4260 > > > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET support
Hi, Created a jira and attached the fix. Please find the link below. https://wso2.org/jira/browse/APPFAC-2532 Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Thu, Oct 2, 2014 at 9:48 AM, Kasun De Silva wrote: > Hi Dimuthu, > > Thanks for the response, I was worried about > repoProvider.createRepository() method, but of course the isAlreadySubscribed > give a wrong result. I will check it and fix it, then the problem will > solve. > > Thanks, > Kasun > > *Kasun de Silva* > Software Engineer | *WSO2 Inc.*; http://wso2.com > lean.enterprise.middleware > > email : kas...@wso2.com > mobile : +94 77 794 4260 > > > On Thu, Oct 2, 2014 at 9:38 AM, Kasun De Silva wrote: > >> Hi Manula, >> >> The repo is already there, I have checked and that is not the issue. >> >> Thanks, >> kasun >> >> *Kasun de Silva* >> Software Engineer | *WSO2 Inc.*; http://wso2.com >> lean.enterprise.middleware >> >> email : kas...@wso2.com >> mobile : +94 77 794 4260 >> >> >> >> > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APPFAC] .NET Support IIS hot deployment
Hi All, I'm working on .NET support in AF, currently .NET web app creates and builds successfully. MSBuild gives the deployment artifact as a ZIP file. When deploying the app windows cartridge get spawned in ec2 and cartridge agent clones the deployment artifact to the IIS instance. But it still stays as a zip file. It copies to the "wwwroot" directory but It does not get deployed inside IIS. does anyone knows why is this happening and how the hot deployment works in IIS? Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET Support IIS hot deployment
Hi Kasun, Following link [1] might be helpful to you. [1] http://stackoverflow.com/questions/12780720/how-to-deploy-package-zip-into-specific-site-under-iis-using-msdeploy On Fri, Oct 3, 2014 at 9:56 AM, Kasun De Silva wrote: > Hi All, > > I'm working on .NET support in AF, currently .NET web app creates and > builds successfully. MSBuild gives the deployment artifact as a ZIP file. > When deploying the app windows cartridge get spawned in ec2 and cartridge > agent clones the deployment artifact to the IIS instance. But it still > stays as a zip file. It copies to the "wwwroot" directory but It does not > get deployed inside IIS. does anyone knows why is this happening and how > the hot deployment works in IIS? > > Thanks, > Kasun > > *Kasun de Silva* > Software Engineer | *WSO2 Inc.*; http://wso2.com > lean.enterprise.middleware > > email : kas...@wso2.com > mobile : +94 77 794 4260 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] .NET Support IIS hot deployment
Thanks Manula Regards *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Fri, Oct 3, 2014 at 10:16 AM, Manula Chathurika Thantriwatte < manu...@wso2.com> wrote: > Hi Kasun, > > Following link [1] might be helpful to you. > > [1] > http://stackoverflow.com/questions/12780720/how-to-deploy-package-zip-into-specific-site-under-iis-using-msdeploy > > On Fri, Oct 3, 2014 at 9:56 AM, Kasun De Silva wrote: > >> Hi All, >> >> I'm working on .NET support in AF, currently .NET web app creates and >> builds successfully. MSBuild gives the deployment artifact as a ZIP file. >> When deploying the app windows cartridge get spawned in ec2 and cartridge >> agent clones the deployment artifact to the IIS instance. But it still >> stays as a zip file. It copies to the "wwwroot" directory but It does not >> get deployed inside IIS. does anyone knows why is this happening and how >> the hot deployment works in IIS? >> >> Thanks, >> Kasun >> >> *Kasun de Silva* >> Software Engineer | *WSO2 Inc.*; http://wso2.com >> lean.enterprise.middleware >> >> email : kas...@wso2.com >> mobile : +94 77 794 4260 >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Regards, > Manula Chathurika Thantriwatte > Software Engineer > WSO2 Inc. : http://wso2.com > lean . enterprise . middleware > > email : manu...@wso2.com / man...@apache.org > phone : +94 772492511 > blog : http://manulachathurika.blogspot.com/ > > > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev