<div dir="ltr">Hi,<div>I seem to have a problem with memcached.</div><div>Using shibboleth-identity-provider-3.2.1.</div><div><br></div><div>This IdP where I tried memcached works otherwise - I am using it together with SP to </div><div>provide SSO for test apps.</div><div>Here's what I did (following instructions at <a href="https://wiki.shibboleth.net/confluence/display/IDP30/StorageConfiguration#StorageConfiguration-MemcachedStorageService">https://wiki.shibboleth.net/confluence/display/IDP30/StorageConfiguration#StorageConfiguration-MemcachedStorageService</a>)</div><div><br></div><div>1) Added a bean in global.xml, specifying own hosts's ip address<br></div><div>2) Modified storage service conf in idp.properties:</div><div>idp.consent.StorageService = shibboleth.MemcachedStorageService<br></div><div>idp.replayCache.StorageService = shibboleth.MemcachedStorageService<br></div><div>idp.artifact.StorageService = shibboleth.MemcachedStorageService<br></div><div><br></div><div>I have put all logging on DEBUG, but nothing memcached related came out in idp logs. On Tomcat logs I see these:</div><div><br></div><div><div>2016-09-20 12:59:20.350 INFO net.spy.memcached.MemcachedConnection:  Reconnecting {QA sa=/<a href="http://10.0.221.53:11211">10.0.221.53:11211</a>, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}</div><div>2016-09-20 12:59:20.367 INFO net.spy.memcached.MemcachedConnection:  Reconnecting due to failure to connect to {QA sa=/<a href="http://10.0.221.53:11211">10.0.221.53:11211</a>, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}</div><div>java.net.ConnectException: Connection refused</div><div>        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)</div><div>        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)</div><div>        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:677)</div><div>        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:436)</div><div>        at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:1445)</div><div>2016-09-20 12:59:20.368 WARN net.spy.memcached.MemcachedConnection:  Closing, and reopening {QA sa=/<a href="http://10.0.221.53:11211">10.0.221.53:11211</a>, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 8.</div></div><div><br></div><div><br></div><div>It appears that nobody is listening to port 11211 (e.g. by using netstat -tulpn).</div><div>I am expecting that memcached client on local host (as I attempted to configure it)</div><div>would be used for storage, but it seems like some memcached initialization failed.</div><div><br></div><div>Any ideas how to debug further this issue?</div><div><br></div><div>I am aiming for IdP HA setup, and it appears that user sessions survive in the cluster - in case<br></div><div>that I kill active IdP. (sessions are stored in browser, and memcached configuration fails on all IdPs).</div><div>Not really sure what could go wrong in the cluster if memcached (or something else)</div><div>is not used sharing server storage.</div><div><br></div><div>-Vedran<br></div><div><br></div><div><br></div></div>