Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'Redis server error: socket error on read socket' error in mediawiki

I am receiving error as

Redis server error: socket error on read socket Error received as 'JobQueueError from line xxx of JobQueueRedis.php: Redis server error: socket error on read socket'

I tried by changing persistent connection option to true.

$wgObjectCaches['redis'] = [
  'class'       => 'RedisBagOStuff',
  'servers'     => [ $redisserver ],
  'persistent'  => true
];
like image 726
Vrushali Avatar asked Feb 27 '26 18:02

Vrushali


1 Answers

In our case the following errors would occur because our AWS ElasticeCache Redis Cluster was using 100% of available memory :

"RedisException","message":"socket error on read socket","code":0 "RedisClusterException","message":"Error processing response from Redis node!"

Increasing the number of nodes and or allowing more memory on the instance seemed to solve the problem. But it seems our cached values take a lot of memory and need to expire faster.

enter image description here

like image 193
wlarcheveque Avatar answered Mar 01 '26 12:03

wlarcheveque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!