# Memcached connection failures \[2.1\]

**URL:** <https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574>\
**Category:** Rails\
**Created:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574 "2008-07-31T05:06:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aramis\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Aramis\_K](https://www.ruby-forum.com/u/Aramis_K)\
**Post date:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574/1 "2008-07-31T05:06:28Z")

</div>

A production app is generally working well with memcached and Rails  
2.1, but we’re seeing this error about 10 times a day:

### 

No connection to server  
[RAILS\_ROOT]/vendor/rails/activesupport/lib/active\_support/vendor/  
memcache-client-1.5.0/memcache.rb:663:in `request\_setup’

### 

From the logs, it looks for all the world as though memcached hadn’t  
been running, but it certainly was. There’s nothing in the memcached  
log about this.

Can anyone advise?

---

<div class="post-metadata">

**Author:** ![Aramis\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Aramis\_K](https://www.ruby-forum.com/u/Aramis_K)\
**Post date:** [August 25, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574/2 "2008-08-25T19:33:03Z")

</div>

Anyone get a solution for this? Im seeing the same thing with a rails  
2.1 deploy. Tried with memcache-client gem installed locally and part  
of active support and both get this connection problem intermittently.

---

<div class="post-metadata">

**Author:** ![Aramis\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Aramis\_K](https://www.ruby-forum.com/u/Aramis_K)\
**Post date:** [August 25, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574/3 "2008-08-25T22:00:11Z")

</div>

On Wed, Jul 30, 2008 at 8:05 AM, Aramis K.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> From the logs, it looks for all the world as though memcached hadn’t  
> been running, but it certainly was. There’s nothing in the memcached  
> log about this.
> 
> Can anyone advise?

Consider switching to [GitHub - basecamp/libmemcached\_store: ActiveSupport::Cache wrapper for libmemcached](http://github.com/37signals/libmemcached_store)😉

jeremy
