I’ve been trying to deploy a Laravel
application using Forge
for a while now, but I always get stuck on Predis
giving me the following error:
PredisConnectionConnectionException
Error while reading line from the server. [tcp://127.0.0.1:6379]
And everywhere I look the fix appears to be read_write_timeout
to -1
or 0
in config/database.php
, however this doesn’t fix the issue for me. I’ve cleared all caches (manually and via Artisan) but the error remains.
So basically whatever fix I try and apply, the error remains.
2
Answers
Can you check if Redis is installed on your server ?
If you have Kaspersky installed, disable
Network Attack Blocker
will fix it.I’ve tried both Predis and PhpRedis but still error:
read error on connection to 127.0.0.1:6379
orError while reading line from the server. [tcp://127.0.0.1:6379]
The only way is disable Network Attack Blocker (Kaspersky doesn’t even show any events in report, but it blocks redis somehow)