Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rootes's avatar

Redis / Horizon Prod Problem

Hello, I am using Laravel Sail and in Local all is working perfectly all the queue and horizon. But I just deploy the project with Laravel Forge and I cannot find the reason why is not working. Everytime that I pass 'php artisan horizon' give me this error.

   RedisException 

  Connection timed out

  at vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:161
    157▕         if (version_compare(phpversion('redis'), '5.3.0', '>=') && ! is_null($context = Arr::get($config, 'context'))) {
    158▕             $parameters[] = $context;
    159▕         }
    160▕ 
  ➜ 161▕         $client->{($persistent ? 'pconnect' : 'connect')}(...$parameters);
    162▕     }
    163▕ 
    164▕     /**
    165▕      * Create a new redis cluster instance.

      +25 vendor frames 
  26  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

I been trying to change the Horizon Production configuration but still the same. I try to use predis instead of phpredis and give me similar issue. I did create new redis quere 'default' in case but still nothing.

Thanks for your time.

0 likes
1 reply

Please or to participate in this conversation.