No node found for key validity

33 views
Skip to first unread message

Gary Su

unread,
Aug 18, 2015, 4:07:58 AM8/18/15
to memcached-session-manager

18-Aug-2015 15:34:02.493 WARNING [http-nio-8084-exec-7] de.javakaffee.web.msm.LockingStrategy.onBackupWithoutLoadedSession An error when trying to load/update validity info.

 java.lang.IllegalArgumentException: No node found for key validity:35C9A4AF10D1ECA080AA78138BDAB27C-n2SERVER_ID (nodeId: n2SERVER_ID, known nodeIds: [n2, n1])

at de.javakaffee.web.msm.SuffixBasedNodeLocator.getPrimary(SuffixBasedNodeLocator.java:100)

at net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:1205)

at net.spy.memcached.MemcachedConnection.enqueueOperation(MemcachedConnection.java:1185)

at net.spy.memcached.MemcachedClient.asyncGet(MemcachedClient.java:1044)

at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1229)

at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1256)

at de.javakaffee.web.msm.LockingStrategy.loadSessionValidityInfoForValidityKey(LockingStrategy.java:333)

at de.javakaffee.web.msm.LockingStrategy.onBackupWithoutLoadedSession(LockingStrategy.java:231)

at de.javakaffee.web.msm.LockingStrategyAuto.onBackupWithoutLoadedSession(LockingStrategyAuto.java:71)

at de.javakaffee.web.msm.MemcachedSessionService.backupSession(MemcachedSessionService.java:1012)

at de.javakaffee.web.msm.RequestTrackingHostValve.backupSession(RequestTrackingHostValve.java:230)

at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:159)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)

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)



<Context reloadable="false" crossContext="true" docBase="ngoappserver" path="/ngoappserver">

          <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"  

                   memcachedNodes="n1:10.10.103.249:11211,n2:10.10.137.200:11211"

                   sticky="false" 

                   sessionBackupAsync="false"

                   lockingMode="auto"

                   requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" 

                   transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"/>

       </Context>


Could anyone please tell me why this always happens?

Martin Grotzke

unread,
Aug 20, 2015, 6:20:05 PM8/20/15
to memcached-session-manager

Hi Gary,

is it right that "this always happens" and not only sometimes? Can you reproduce this in your development environment?

Does this appended SERVER_ID tell you anything, is it possible that the load balancer appends this?
To get more details here it would be interesting to know the cookies submitted by the browser and to see debug logs from msm (see https://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration#Configure_logging), or just check your load balancer configuration.

Cheers,
Martin

--

---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages