client & session timeouts / Error retrieving key after upgrading to lucee 5

I get a timeout error 10-20 times a day. Is there anyway to increase the timeout for retrieving session keys? This never happened with lucee 4.5…

Lucee 5.2.5.20

java 1.8.0_121 (Oracle Corporation) 64bit

Apache Tomcat/8.5.11
couchbase cache 3.0.0.00048

admin settings
this.cache.connections[“cbsessionstore”] = { class: ‘ortus.extension.cache.couchbase.CouchbaseCache’ , storage: true , custom: { “connectTimeout”:“5000”, “queryTimeout”:“75000”, “bucketName”:“cbsessionstore”, “disconnectTimeout”:“25000”, “kvTimeout”:“2500”, “password”:“tfG4EntqKKn”, “hosts”:“cb1.domain.com:8091 cb2.domain.com:8091 cb3.domain.com:8091” } , default: ‘’ };

Message: Error retrieving value for key [LUCEE-STORAGE:CLIENT:46812362-6DC2-4F6A-8DA4-F8AC369EBA16:mydomain.COM] from Couchbase cache.
Additional Info: None
Stack Trace:
lucee.runtime.exp.NativeException: Error retrieving value for key [LUCEE-STORAGE:CLIENT:46812362-6DC2-4F6A-8DA4-F8AC369EBA16:mydomain.COM] from Couchbase cache.
at ortus.extension.cache.couchbase.CouchbaseCache.getValue(CouchbaseCache.java:531)
at lucee.runtime.type.scope.storage.IKHandlerCache.loadData(IKHandlerCache.java:27)
at lucee.runtime.type.scope.storage.IKStorageScopeSupport.getInstance(IKStorageScopeSupport.java:169)
at lucee.runtime.type.scope.ScopeContext.getClientScope(ScopeContext.java:275)
at lucee.runtime.type.scope.ScopeContext.getClientScopeEL(ScopeContext.java:316)
at lucee.runtime.PageContextImpl.clientScopeEL(PageContextImpl.java:1402)
at lucee.runtime.type.scope.UndefinedImpl.reinitialize(UndefinedImpl.java:598)
at lucee.runtime.PageContextImpl.setApplicationContext(PageContextImpl.java:3012)
at lucee.runtime.listener.ModernAppListener.initApplicationContext(ModernAppListener.java:439)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:114)
at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:103)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2405)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2395)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2363)
at lucee.runtime.engine.Request.exe(Request.java:44)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1091)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1039)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:478)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error retrieving value for key [LUCEE-STORAGE:CLIENT:46812362-6DC2-4F6A-8DA4-F8AC369EBA16:mydomain.COM] from Couchbase cache.
… 41 more
Caused by: java.lang.RuntimeException: Error retrieving key [LUCEE-STORAGE:CLIENT:46812362-6DC2-4F6A-8DA4-F8AC369EBA16:mydomain.COM] from Couchbase cache.
at ortus.extension.cache.couchbase.CouchbaseCache.getCacheEntry(CouchbaseCache.java:483)
at ortus.extension.cache.couchbase.CouchbaseCache.getValue(CouchbaseCache.java:522)
… 40 more
Caused by: java.lang.RuntimeException: java.util.concurrent.TimeoutException
at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:71)
at com.couchbase.client.java.CouchbaseBucket.get(CouchbaseBucket.java:144)
at com.couchbase.client.java.CouchbaseBucket.get(CouchbaseBucket.java:139)
at ortus.extension.cache.couchbase.CouchbaseCache.getCacheEntry(CouchbaseCache.java:473)
… 41 more
Caused by: java.util.concurrent.TimeoutException
… 45 more

What is your “Key/value Timeout” set to on the cache?

https://docs.ortussolutions.com/couchbase-cache/3.0.0/index.html#Configuration

It’s possible you had a longer timeout set in your Lucee 4 server. From the screenshot in the docs, I think it defaults to 2.5 seconds which may not be enough in all cases.