Upstash Redis AUTH failed while reconnecting using php8.1-redis

Moving from phpredis to predis has solved this issue. Install predis into a Laravel app with composer require predis/predis.

NOTE!:::

If you are going to use upstash for your cache driver as well (like I do), note that upstash doesn’t support database “1”, you must set your REDIS_CACHE_DB = "0" as the default is “1”. You will see SELECT failed: ERR Only 0th database is supported! Selected DB: 1 in your logs if this is set incorrectly.

2 Likes