Hi I'm having trouble setting up my Rails project on my server because apache keeps complaining
DalliError: No server available
.
I installed memcached
on my ubuntu machine, but it still doesn't work. My rails project also has config.cache_store = :dalli_store, 'localhost:11211', { :namespace => "production" }
in environments/production.rb. How would I debug this?
My log shows before each request:
localhost:11211 failed (count: 6)
DalliError: No server available
telnet to 11211:
root@s2:/usr/local/www/production/current/log# telnet localhost 11211
Trying 127.0.1.1...
telnet: Unable to connect to remote host: Connection refused
I had the same problem. First I installed memcached as a gem
gem install memcached
and got the error "DalliError: No server available"Then I installed memcached by doing
sudo apt-get install memcached
. It works fine now.