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

kea_rajab's avatar

Scout And Meilisearch Returning Error

I have tried to implement the meilisearch setup and works find on link http://localhost:7700 but the results are the events of my job dispatcher which returns the users table of the user dispatching the job, and this is because i am using queue redis for the job dispatched... when i close the redis server, after this command

php artisan scout:import "App\Models\Bus"

I receive the following error

 Predis\Connection\ConnectionException

  No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379]

  at C:\xampp\htdocs\Tikety\vendor\predis\predis\src\Connection\AbstractConnection.php:155        
    151▕      */
    152▕     protected function onConnectionError($message, $code = null)
    153▕     {
    154▕         CommunicationException::handle(
  ➜ 155▕             new ConnectionException($this, static::createExceptionMessage($message), $code)
    156▕         );
    157▕     }
    158▕
    159▕     /**

  1   C:\xampp\htdocs\Tikety\vendor\predis\predis\src\Connection\StreamConnection.php:128
      Predis\Connection\AbstractConnection::onConnectionError("No connection could be made because the target machine actively refused it.")

  2   C:\xampp\htdocs\Tikety\vendor\predis\predis\src\Connection\StreamConnection.php:178
      Predis\Connection\StreamConnection::createStreamSocket(Object(Predis\Connection\Parameters), "tcp://127.0.0.1:6379")

I have tried to change the env QUEUE_CONNECTION=redis to QUEUE_CONNECTION=database but no success... i want to import the data from the database so that the meilisearch can index those records... please help Thanks in advance

0 likes
0 replies

Please or to participate in this conversation.