On Mon, Apr 3, 2017 at 7:19 PM <re...@gmx-topmail.de> wrote: > Hi, > i was able to reproduce the error. > Fist i wait till the unloading (log shows: Cleaned up tenant <tenant name>) > Then i fire two request at the same time. The first request starts the > deployment: > Creating tenant AxisConfiguration for tenant: <tenant name> > User Store Configuration Deployer initiated. > > The second request runs into the error: > The service cannot be found for the endpoint reference (EPR) > local://axis2services/MyAPI/1.0/somePath > {org.apache.axis2.engine.AxisEngine} > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) local://axis2services/MyAPI/1.0/somePath > >
This does not look like an endpoint of a tenant. This belongs to super-tenant. The first request is answered fine. The second contains the stacktrace of > the exception. > > That's quite unfortunate. May be there's a bug when using the local transport. You could try with http/s if you like. It seems that WSO2 1.8 does not have the tenant loading policy options, so > i think i have to wait till we switch to WSO2 2.1. > > I see. In that case, you can pass the tenant idle time via the system property, -Dtenant.idle.time=30. Eager loading is not available in olddr versions. Thanks anyway > regAW > *Gesendet:* Montag, 03. April 2017 um 10:35 Uhr > *Von:* "KasunG Gajasinghe" <kas...@wso2.com> > *An:* re...@gmx-topmail.de > *Cc:* "Omindu Rathnaweera" <omi...@wso2.com>, DEV <dev@wso2.org> > > *Betreff:* Re: [Dev] API Calls fail while UserStoreConfigurationDeployer > is running > > Tenants get unloaded after 30mins of inactivity. In that case, tenants get > unloaded and re-loaded. > > You can configure that through carbon.xml. You can either increase the > tenant idle time of the default tenant lazy loading policy, or you can > switch to tenant eager loading. See Tenant/LoadingPolicy under carbon.xml. > > The subsequent requests wait until the tenant gets loaded, and they also > should get served fine. Are you able to correlate the API call failing and > the userstore deploying? > One way to do that is by comparing the time of the userstore deployment > log vs. the http access logs around the same time. > > > On Mon, Apr 3, 2017 at 1:24 PM, <re...@gmx-topmail.de> wrote: > > Hi, > i've tested to change the DeploymentUpdateInterval in a test > environment to 86400, so one day. But the line > "User Store Configuration Deployer initiated." still appears more than > once a day. I think the unloading may be the problem, like Omindu said. > What happens if the tenant was unloaded and the first request starts the > redeployment and during that a second request comes in? Could that lead to > this error? > How long is the idle time before unloading and can it be configured? > It's kind of hard to test cause the redeployment takes less than a second. > > Regards, > regAW > *Gesendet:* Dienstag, 28. März 2017 um 21:13 Uhr > *Von:* "Omindu Rathnaweera" <omi...@wso2.com> > *An:* "KasunG Gajasinghe" <kas...@wso2.com> > *Cc:* re...@gmx-topmail.de, DEV <dev@wso2.org> > *Betreff:* Re: [Dev] API Calls fail while UserStoreConfigurationDeployer > is running > @KasunG The deployers can run during tenant loading, correct? Say the > tenant got unloaded after the idle time, the next request to that tenant's > resource will re deploy the tenant's user stores, services etc. In that > case, will changing deployment update interval be effective ? > > Regards, > Omindu > > On Tue, Mar 28, 2017 at 4:06 PM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > > > You can reduce the deployment update interval via carbon.xml. By default, > it is 15mins. Search for DeploymentUpdateInterval. You can increase this. > > That being said, the deployers won't be called unless you modify > userstore. > > On Mon, Mar 27, 2017 at 2:32 PM, <re...@gmx-topmail.de> wrote: > > Hi, > i have a problem with my WSO2-am. The UserStoreConfigurationDeployer is > running up to 20 times per day. During that time alle request to the api > return a 500 http error. The backend is not called. > I created a question on stackoverflow ( > http://stackoverflow.com/questions/42859483/the-service-cannot-be-found-for-the-endpoint-reference-while-user-store-configur > ) but no answers so far. > Can someone have a look at this or at least can confirm that it will not > happen under 2.1? > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > > > > -- > *Kasun Gajasinghe* > Associate Technical Lead, WSO2 Inc. > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > phone: +1 650-745-4499, 77 678 0813 > > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > > > > -- > Omindu Rathnaweera > Senior Software Engineer, WSO2 Inc. > Mobile: +94 771 197 211 > > > > -- > *Kasun Gajasinghe* > Associate Technical Lead, WSO2 Inc. > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > phone: +1 650-745-4499, 77 678 0813 > > -- *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org phone: +1 650-745-4499, 77 678 0813
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev