Framework: SQS Class 'Aws\Sqs\SqsClient' not found When trying to use Redis queue, despite SQS not referenced anywhere

Created on 26 Jan 2016  路  4Comments  路  Source: laravel/framework

When I try to switch my queue driver from Sync to Redis I get this error.

I've tried including the SQS API with composer to get the error "Check your AWS Secret Access Key and signing method.

I've also tried commenting out the SQS array config in config/queue.php for Laravel to complain their is no config for the SQS driver.

This happens on my Centos 7 server, it does not affect Ubuntu 15.10 or Centos 5 (The .env and config/* files are exactly the same on all servers).

I'm using Laravel 5.1

Most helpful comment

Turns out it's the the documentation being bad.
When you set-up supervisor for queue monitoring it gives the example:

php /home/forge/app.com/artisan queue:work sqs --sleep=3 --tries=3 --daemon

This was causing Laravel to use sqs, I would of thought this option would of and could only be configured in the environment my bad.

All 4 comments

Turns out it's the the documentation being bad.
When you set-up supervisor for queue monitoring it gives the example:

php /home/forge/app.com/artisan queue:work sqs --sleep=3 --tries=3 --daemon

This was causing Laravel to use sqs, I would of thought this option would of and could only be configured in the environment my bad.

Just ran into the exact same issue, thanks for answering yourself!

Still encountered this after 3 years by following Laravel 5.7 documentation... Could it be specified in the documentation that the sqs option is for Amazon SQS, and if one wants to run the worker locally, he does not need the sqs option?

From the docs:

You should change the queue:work sqs portion of the command directive to reflect your desired queue connection.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments

lzp819739483 picture lzp819739483  路  3Comments

PhiloNL picture PhiloNL  路  3Comments

felixsanz picture felixsanz  路  3Comments

JamborJan picture JamborJan  路  3Comments