WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Issue with redis Exception: READONLY – Unable to write to a read-only replica

thirmo

New member

0

0%

Status

Offline

Posts

45

Likes

0

Rep

0

Bits

230

5

Months of Service

0%
Hi,

I recently moved to a new server and encountered the following Apache error. My server is running Ubuntu 20.04 with the latest version of Plesk deployed. I am unsure of the exact issue based on the error log, and I would appreciate any assistance in resolving the problem.

Here is my XenForo Redis configuration:

```bash
#redis cache
$config['cache']['sessions'] = true;
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = [
'server' => '127.0.0.1',
'port' => 6379,
];
```

Below are the Redis settings on the Plesk Docker container.

And here is the error log for XenForo:

```
2023-05-24 16:22:48 Error XXX.XXX.XXX.XXX AH01071: Got error 'PHP message: PHP Fatal error: Uncaught RedisException: READONLY You can't write against a read only replica. in /var/www/vhosts/MYDOMAIN.com/httpdocs/src/addons/SV/RedisCache/Credis/Client.php:1280\nStack trace: ...
```

I received this error multiple times with the same message. If anyone can provide assistance in interpreting and resolving this issue, it would be greatly appreciated.
 

249

6,622

6,642

Top