The error message "laravel redis queue not working" can be caused by different issues, including wrongly configured Redis settings, network connectivity problems, and incompatible Laravel or Redis versions. One of the most common causes is setting Redis server incorrectly in the .env file of the Laravel project, leading to a connection failure between the Laravel application and the Redis server, and consequently preventing the queue from functioning.
Another possible cause of the error is that the Redis service might not be running, or its configuration might be incorrect. In case Redis is not configured to run as a service on the server, it may not start automatically after a server restart or shutdown. Furthermore, version conflicts between Laravel and Redis could also trigger this error.
To fix the "laravel redis queue not working" error, there are several solutions you can try. Firstly, ensure that your Redis server is properly configured and accessible from your Laravel application. The Redis configuration details must match those in the .env file of the Laravel project. Additionally, check the status of the Redis service by using the
systemctl command (for Linux users), to verify whether it is running correctly.
Once you have confirmed that the Redis server is working correctly, the next step is to confirm whether it is compatible with your Laravel application version. Refer to the Laravel documentation to determine the recommended Redis version that works with your Laravel version. If you are using an outdated Redis version, upgrade to a newer one.
You can clear Laravel's cache to refresh your Laravel application configuration by running the
php artisan cache:clear command. Finally, if the problem persists, you can restart either the Laravel application server or the Redis server to apply the changes.
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.