My website used to work fine until I got this error one day.
Error : Warning: session_write_close(): Error communicating with Redis server in /home/admin/domains/.... on line 70
Fatal error: Uncaught RedisException: READONLY You can't write against a read only replica. in /home/admin/domains/xxx.php:70 Stack trace: #0
I fixed the issue by promoting Redis to master using "replicaof no one", but after some time, it automatically switches back to role:slave permanently. How can I make Redis stay as the master permanently?
thank you
Error : Warning: session_write_close(): Error communicating with Redis server in /home/admin/domains/.... on line 70
Fatal error: Uncaught RedisException: READONLY You can't write against a read only replica. in /home/admin/domains/xxx.php:70 Stack trace: #0
I fixed the issue by promoting Redis to master using "replicaof no one", but after some time, it automatically switches back to role:slave permanently. How can I make Redis stay as the master permanently?
thank you