Hi Mark,
In my cas.properties file I specify the server names and memcache
details below. I admit I tried various combinations for these entries so
I am not quite certain if it's right anymore.
## memcached configuration
memcached.servers=casserver1.ucmerced.edu:11211,casserver2.ucmerced.edu:11211
memcached.protocol=BINARY
memcached.locatorType=CONSISTENT
memcached.failureMode=Redistribute
memcached.hashAlgorithm=FNV1_64_HASH
expiration.policy.tgt.validity_period=${tgt.maxTimeToLiveInSeconds}
expiration.policy.st.validity_period=${st.timeToKillInSeconds}
Here is my ticketRegistry.xml entry:
<bean id="ticketRegistry"
class="org.jasig.cas.ticket.registry.MemCacheTicketRegistry">
<constructor-arg index="0" ref="memcachedClient" />
<constructor-arg index="1"
value="${expiration.policy.tgt.validity_period}" />
<constructor-arg index="2"
value="${expiration.policy.st.validity_period}" />
</bean>
<bean id="memcachedClient"
class="net.spy.memcached.spring.MemcachedClientFactoryBean"
p:servers="${memcached.servers}"
p:protocol="${memcached.protocol}"
p:locatorType="${memcached.locatorType}"
p:failureMode="${memcached.failureMode}"
p:transcoder-ref="kryoTranscoder">
<property name="hashAlg">
<util:constant
static-field="net.spy.memcached.DefaultHashAlgorithm.${memcached.hashAlgorithm}"
/>
</property>
</bean>
<bean id="kryoTranscoder"
class="org.jasig.cas.ticket.registry.support.kryo.KryoTranscoder"
init-method="initialize">
<constructor-arg index="0" value="8192" />
</bean>
Thanks,
Laura
On 11/8/13 3:32 PM, St Laurent, Mark wrote:
>
> I just got through setting up a test environment configured almost
> exactly like this this morning. (On Windows, using Couchbase.) Have
> you tried pointing it at localhost instead of the server name? Can you
> post your TicketRegistry.xml?
>
> ----------------------------------
>
> Mark St. Laurent
>
> Web Systems Administrator
>
> Yavapai College
>
> (928) 717-7654
>
> http://www.yc.edu <http://www.yc.edu/>
>
> *From:*Laura McCord [mailto:[email protected]]
> *Sent:* Friday, November 08, 2013 2:20 PM
> *To:* [email protected]
> *Subject:* [cas-user] MemcacheTicketRegistry
>
> Hi,
>
> I need assistance with debugging the error message I am receiving.
>
> My setup is:
>
> * two cas nodes running 3.5.2
> * the two nodes are behind an F5 load balancer
> * I have memcached-1.2.8-repcached-2.2.1 setup on both servers.
> * I successfully tested the repcache/memcache successfully
> retrieving stored data between the two nodes (as noted here:
>
> http://www.howtoforge.com/how-to-install-repcached-memcached-replication-for-high-availability-over-2-nodes-on-ubuntu-11.04)
> .
>
> However, when putting it all together with CAS I am receiving this error:
>
> 2013-11-08 12:30:36,143 ERROR
> [org.jasig.cas.ticket.registry.MemCacheTicketRegistry] - <Failed
> adding
> TGT-1-pwNnOCd3OkeOhfIpWMjwPk3aU2Fnv9MeO2oHtDSfzBMXbLpSGS-mycas.ucmerced.edu>
> java.lang.RuntimeException: Timed out waiting for operation
> at
> net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:81)
> at
> org.jasig.cas.ticket.registry.MemCacheTicketRegistry.addTicket(MemCacheTicketRegistry.java:123)
> at
> org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody10(CentralAuthenticationServiceImpl.java:484)
> ...
> Caused by:
> net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out
> waiting for operation - failing node: casserver1.ucmerced.edu/<ip
> address>:11211
> at
> net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:93)
> at
> net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:79)
>
> I don't know what this means. My ports are opened and I check that my
> repcache/memcache is running.
>
> Any suggestions?
>
> Thanks
>
> --
> You are currently subscribed [email protected]
> <mailto:[email protected]> as:[email protected]
> <mailto:[email protected]>
> To unsubscribe, change settings or access archives,
> seehttp://www.ja-sig.org/wiki/display/JSG/cas-user
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user