Jump to content

Getting Warning: MemcachePool::set(): No servers added.


dhurley

Recommended Posts

I have a new server that I am working on. It was set up with Memcache. I was able to enable it through the backoffice performance settings and the install warning on that page went away. Now it is generating this error:

 

Warning: MemcachePool::set(): No servers added to memcache connection in */classes/cache/CacheMemcache.php on line 156

 

Not many Google results on this. Im stumped.

 

Any help would be appreciated, thanks!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
Hi,

 

I have seen this just after enabling cache "memcache" today.

 

I have troubles with CPU usage in 1.5.4.1, same after upgrading to 1.5.5. So I'm trying everything to solve this. Enabling memcache was one of my action :)

 

I keep you posted if I find something.

 

Hideo

Link to comment
Share on other sites

Hi,

 

I saw that when you add a server (the IP of your dedicated server), you have another error message:

[error] [client xx.xxx.xxx.xxx] PHP Notice:  MemcachePool::get(): Server xx.xxx.xxx.xxx (tcp 11211, udp 0) failed with: Connection refused (111)

 

But this might be fixed by authorising connexion on 11211 port of your server. I try to fix it and I post if this works.

 

Hideo

Link to comment
Share on other sites

Hi again,

 

The problem is due to the memcached configuration:

 

>> vi /etc/memcached.conf

Comment the line "-l 127.0.0.1" and add "-l xx.xxx.xxx.xx", where "xx.xxx.xxx.xx" is the IP of your server.

 

>> service memcached restart

>> service apache2 restart (not sure this one is needed)

 

I've seen this here: http://serverfault.com/questions/64007/failed-to-connect-to-memcache-host 

 

Hope this helps.

 

Hideo

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...