I get this error :
Connection to Redis failed after 2 failures
I have 2 redis instances , configured following this post
system – redis port 6379
fpc – redis port 6381
I have no issue when backend cache is running only,
but when Lesti is active I get this error in frontend.
While trying to refresh the cache from magento admin panel, I get the same error, and in error log i have
AH01797: client denied by server configuration: /var/www/vhosts/domain.com/httpdocs/magento_folder/app/etc/local.xml
What do you think ?
local.xml and fpc.xml are configured like this :
local.xml :
<cache>
<backend>Cm_Cache_Backend_Redis</backend>
<backend_options>
<server>127.0.0.1</server> <!-- or absolute path to unix socket for better performance -->
<port>6379</port>
<persistent></persistent>
<database>0</database>
<password></password>
<force_standalone>1</force_standalone> <!-- 0 for phpredis, 1 for standalone PHP -->
<connect_retries>1</connect_retries> <!-- Reduces errors due to random connection failures -->
<read_timeout>10</read_timeout> <!-- Set read timeout duration; phpredis does not currently support setting read timeouts -->
<automatic_cleaning_factor>0</automatic_cleaning_factor> <!-- Disabled by default -->
<compress_data>1</compress_data> <!-- 0-9 for compression level, recommended: 0 or 1 -->
<compress_tags>1</compress_tags> <!-- 0-9 for compression level, recommended: 0 or 1 -->
<compress_threshold>20480</compress_threshold> <!-- Strings below this size will not be compressed -->
<compression_lib>gzip</compression_lib> <!-- Supports gzip, lzf and snappy -->
<use_lua>0</use_lua>
<!--persistent>1</persistent--> <!-- persistence value, 0: not in use, > 0 used as persistence ID -->
</backend_options>
</cache>
fpc.xml :
<lifetime>86400</lifetime>
<backend>Cm_Cache_Backend_Redis</backend>
<backend_options>
<server>127.0.0.1</server>
<port>6381</port>
<persistent>cache-fpc</persistent>
<database>1</database>
<password></password>
<force_standalone>1</force_standalone>
<connect_retries>1</connect_retries>
<lifetimelimit>86400</lifetimelimit>
<read_timeout>10</read_timeout>
<compress_data>1</compress_data>
<compress_tags>1</compress_tags>
<compress_data>gzip</compress_data>
</backend_options>