CAS Couchbase Concurrent Timeout

38 views
Skip to first unread message

John Stevens II

unread,
Jul 14, 2016, 7:54:40 AM7/14/16
to CAS Community
Has anyone encountered this issue or know how to avoid it? Is there a way to increase the timeout?

Looks like the couchbase connections timeout to my service registry and production is impacted because CAS thinks there are no authorized services.

I have couchbase settings configured for 3 nodes.

2016-07-08 21:45:29,197 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2016-07-08 21:45:29,260 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from org.jasig.cas.services.CouchbaseServiceRegistryDao@67cee3c7.>
2016-07-08 21:46:29,197 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2016-07-08 21:46:29,218 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from org.jasig.cas.services.CouchbaseServiceRegistryDao@67cee3c7.>
2016-07-08 21:47:29,197 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2016-07-08 21:47:29,425 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from org.jasig.cas.services.CouchbaseServiceRegistryDao@67cee3c7.>
2016-07-08 21:48:29,196 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2016-07-08 21:48:31,766 ERROR [org.jasig.cas.services.CouchbaseServiceRegistryDao] - <java.util.concurrent.TimeoutException
java.lang.RuntimeException: java.util.concurrent.TimeoutException
        at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:75)
        at com.couchbase.client.java.view.DefaultViewRow.document(DefaultViewRow.java:53)
        at com.couchbase.client.java.view.DefaultViewRow.document(DefaultViewRow.java:48)
        at org.jasig.cas.services.CouchbaseServiceRegistryDao.load_aroundBody4(CouchbaseServiceRegistryDao.java:117)
        at org.jasig.cas.services.CouchbaseServiceRegistryDao$AjcClosure5.run(CouchbaseServiceRegistryDao.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
        at org.jasig.cas.services.CouchbaseServiceRegistryDao.load(CouchbaseServiceRegistryDao.java:108)
        at org.jasig.cas.services.DefaultServicesManagerImpl.load_aroundBody16(DefaultServicesManagerImpl.java:180)
        at org.jasig.cas.services.DefaultServicesManagerImpl$AjcClosure17.run(DefaultServicesManagerImpl.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
        at org.jasig.cas.services.DefaultServicesManagerImpl.load(DefaultServicesManagerImpl.java:176)
        at org.jasig.cas.services.DefaultServicesManagerImpl.reload_aroundBody14(DefaultServicesManagerImpl.java:170)
        at org.jasig.cas.services.DefaultServicesManagerImpl$AjcClosure15.run(DefaultServicesManagerImpl.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
        at org.jasig.cas.services.DefaultServicesManagerImpl.reload(DefaultServicesManagerImpl.java:168)
        at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
        at com.sun.proxy.$Proxy154.reload(Unknown Source)
        at org.jasig.cas.services.DefaultServicesManagerImpl$ServiceRegistryReloaderJob.execute_aroundBody0(DefaultServicesManagerImpl.java:248)
        at org.jasig.cas.services.DefaultServicesManagerImpl$ServiceRegistryReloaderJob$AjcClosure1.run(DefaultServicesManagerImpl.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
        at org.jasig.cas.services.DefaultServicesManagerImpl$ServiceRegistryReloaderJob.execute(DefaultServicesManagerImpl.java:246)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.util.concurrent.TimeoutException
        ... 35 more
>
2016-07-08 21:48:31,766 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services from org.jasig.cas.services.CouchbaseServiceRegistryDao@67cee3c7.>
2016-07-08 21:49:29,196 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2016-07-08 21:49:31,709 ERROR [org.jasig.cas.services.CouchbaseServiceRegistryDao] - <java.util.concurrent.TimeoutException
java.lang.RuntimeException: java.util.concurrent.TimeoutException



Misagh Moayyed

unread,
Jul 14, 2016, 8:34:26 AM7/14/16
to CAS Community
Default is 10 seconds. To increase, set “svcreg.couchbase.timeout” in your properties to a larger value.

-- 
Misagh
--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/19e3d8c6-6a3a-4c54-a4bc-ee32cf4895d5%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

John Stevens II

unread,
Jul 14, 2016, 8:54:24 AM7/14/16
to CAS Community, mmoa...@unicon.net
Thanks Misagh!
Reply all
Reply to author
Forward
0 new messages