Answer the question
In order to leave comments, you need to log in
RabbitMQ. ACCESS_REFUSED. What am I missing in configuring queues in Laravel?
What is installed:
laravel v5.5
vyuldashev/laravel-queue-rabbitmq also 5.5
Rabbimq-server is installed on a separate machine.
When executed php artisan queue:work
, an error is returned:
ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
'rabbitmq' => [
'driver' => 'rabbitmq',
'queue' => env('RABBITMQ_QUEUE', 'default'),
'connection' => PhpAmqpLib\Connection\AMQPLazyConnection::class,
'hosts' => [
[
'host' => env('RABBITMQ_HOST', '168.119.***.***'),
'port' => env('RABBITMQ_PORT', 5672),
'user' => env('RABBITMQ_USER', 'myusername'),
'password' => env('RABBITMQ_PASSWORD', '*************'),
'vhost' => env('RABBITMQ_VHOST', '/'),
],
],
'options' => [
'ssl_options' => [
'cafile' => env('RABBITMQ_SSL_CAFILE', null),
'local_cert' => env('RABBITMQ_SSL_LOCALCERT', null),
'local_key' => env('RABBITMQ_SSL_LOCALKEY', null),
'verify_peer' => env('RABBITMQ_SSL_VERIFY_PEER', true),
'passphrase' => env('RABBITMQ_SSL_PASSPHRASE', null),
],
],
/*
* Set to "horizon" if you wish to use Laravel Horizon.
*/
'worker' => env('RABBITMQ_WORKER', 'default'),
],
Answer the question
In order to leave comments, you need to log in
Solved with vyuldashev/laravel-queue-rabbitmq version 6.0 based on version 6.0 documentation
https://github.com/vyuldashev/laravel-queue-rabbit...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question