Hi there,

I intermittently run into this error with my CAS 4.1.9 overlay when 
deployed on two CAS servers with load balancer in the front.  Memcached are 
running on each CAS server.

cas.properties has entry like this:  

memcached.servers=devcas01.dev.medplus.com:11211,devcas02.dev.medplus.com:11211
memcached.protocol=BINARY
memcached.locatorType=CONSISTENT
memcached.failureMode=Cancel
memcached.hashAlgorithm=KETAMA_HASH


Basically, the request goes to one CAS server, user authenticated.  Then, 
the /serviceValidate  call lands on the other CAS server, but it cannot 
find the ticket.

Could there be a race condition?  Before the ticket is physically stored in 
memcache, the call for fetching has already arrived?

I know that memcached does NOT replicate. any ticket is stored in one 
single node, so there is no replication issue. 

Any comments?
Yan


2016-07-29 18:43:17,643 INFO 
[org.jasig.cas.CentralAuthenticationServiceImpl] - Granted ticket 
[ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com] for service 
[http://localhost:7080/hcp-server-web/login/cas] for user [tkoenig2]

2016-07-29 18:43:17,646 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit 
trail record BEGIN

=============================================================

WHO: tkoenig2

WHAT: ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com for 
http://localhost:7080/hcp-server-web/login/cas

ACTION: SERVICE_TICKET_CREATED

APPLICATION: CAS

WHEN: Fri Jul 29 18:43:17 UTC 2016

CLIENT IP ADDRESS: 172.18.58.129

SERVER IP ADDRESS: 172.18.38.109

=============================================================

 

 

 

172.18.58.129 - - [29/Jul/2016:18:43:17 +0000] "*GET 
/cas/serviceValidate*?ticket=ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com&service=http%3A%2F%2Flocalhost%3A7080%2Fhcp-server-web%2Flogin%2Fcas
 
HTTP/1.1" 200 271 "-" "Java/1.8.0_65"

 

 

2016-07-29 18:42:41,744 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - Reloading registered 
services.

2016-07-29 18:42:42,003 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 17 services.

2016-07-29 18:43:17,806 ERROR 
[org.jasig.cas.ticket.registry.MemCacheTicketRegistry] - *Failed fetching* 
[ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com, 
java.lang.RuntimeException: Exception waiting for value]

2016-07-29 18:43:17,806 INFO 
[org.jasig.cas.CentralAuthenticationServiceImpl] - Service ticket 
[ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com] does not exist.

2016-07-29 18:43:17,810 ERROR 
[org.jasig.cas.ticket.registry.MemCacheTicketRegistry] - Failed fetching 
[ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com, 
java.lang.RuntimeException: Exception waiting for value]

2016-07-29 18:43:17,818 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit 
trail record BEGIN

=============================================================

WHO: audit:unknown

WHAT: ST-1-fIfU1g2irBoeDBafgEs2-devcas01.dev.medplus.com

ACTION: SERVICE_TICKET_VALIDATE_FAILED

APPLICATION: CAS

WHEN: Fri Jul 29 18:43:17 UTC 2016

CLIENT IP ADDRESS: 172.18.58.129

SERVER IP ADDRESS: 172.18.38.110

-- 
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+unsubscr...@apereo.org.
To post to this group, send email to cas-user@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/57f03596-0f26-4967-a7fc-befc6331b56e%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to