On 1/4/11 6:13 AM, Shabam wrote: > I have installed a Magento in a Web Cluster(include two web server) > and Magento work fine in any independent server. > > In order to improve performance and shared session between multiple > Web servers, I config Magento save session to memcache server. But > now, I found can’t login into magento admin panel(input username and > password, then click OK button, it will return admin login page and > display no error message) and can’t add item to cart(tell us cart is > empty). > > Can someone help me diagnose or tell me how to go about > troubleshooting this problem? I've posted it on the Magento forums > but no one is responding.
I'm sorry, I don't know anything about Magento session handling with memcached, but I may have a general idea for you. If you can, run memcached from the command line in another terminal with -vvv. Then try your login. This should show you what, if anything, is done with memcached when you try to log in. If I had to guess though, I think the problem you're running into is likely somewhere else... possibly getting the connection going. Regards, Matt > [r...@localhost etc]# cat local.xml > <?xml version="1.0"?> > <config> > <global> > <install> > <date><![CDATA[Fri, 17 Dec 2010 09:34:20 +0000]]></date> > </install> > <crypt> > <key><![CDATA[helloisme]]></key> > </crypt> > <disable_local_modules>false</disable_local_modules> > <session_save><![CDATA[memcache]]></session_save> <!-- db / memcache / > empty=files --> > <session_save_path><![CDATA[tcp://192.168.1.68:11211? > persistent=1&weight;=2&timeout;=10&retry;_interval=10]]></ > session_save_path> > <session_cache_limiter><![CDATA[must-revalidate,public]]></ > session_cache_limiter> > <cache> > <backend>memcached</backend><!-- apc / memcached / empty=file --> > <memcached><!-- memcached cache backend related config --> > <servers><!-- any number of server nodes can be included --> > <server> > <host><![CDATA[192.168.1.68]]></host> > <port><![CDATA[11211]]></port> > <persistent><![CDATA[1]]></persistent> > </server> > </servers> > <compression><![CDATA[0]]></compression> > <cache_dir><![CDATA[]]></cache_dir> > <hashed_directory_level><![CDATA[]]></hashed_directory_level> > <hashed_directory_umask><![CDATA[]]></hashed_directory_umask> > <file_name_prefix><![CDATA[]]></file_name_prefix> > </memcached> > </cache> > <resources> > <db> > <table_prefix><![CDATA[]]></table_prefix> > </db> > <default_setup> > <connection> > <host><![CDATA[192.168.1.239]]></host> > <username><![CDATA[magento]]></username> > <password><![CDATA[asdf000!]]></password> > <dbname><![CDATA[magento]]></dbname> > <active>1</active> > </connection> > </default_setup> > </resources> > <session_save><![CDATA[files]]></session_save> > </global> > <admin> > <routers> > <adminhtml> > <args> > <frontName><![CDATA[admin]]></frontName> > </args> > </adminhtml> > </routers> > </admin> > </config>
