redis instance added but "Not Ready"

redis instance added but "Not Ready"

by Brian Y -
Number of replies: 2
Running the latest version of Moodle on a Linux container with PHP 7.5 and Apache. I've added a Redis instance to the install but it is showing as "Not Ready" Looking at the docs, I don't see this explained but what does "Not Ready" mean and how do I make it ready?

The redis database is managed so I need to connect via ttl

Server: tls://redis.database.host.com:5432

When saving, is indicates it can connect.

With debugging on I see the following, not sure if it is related:

Warning
: Redis::connect() expects parameter 2 to be int, string given in /var/www/html/cache/stores/redis/lib.php on line 185


Average of ratings: -
In reply to Brian Y

Re: redis instance added but "Not Ready"

by Developer CK -

Hi Brian,

this may be because of this server url :

tls://redis.database.host.com:5432

can you try by putting just redis.database.host.com:5432


In reply to Developer CK

Re: redis instance added but "Not Ready"

by Brian Y -
When I omit the protocol, the connection defaults to insecure which prevents it from being successful. 

I found MDL-66546 which outlines the issue and is being tracked.