E
E
Ernest Faizullin2020-11-23 18:01:21
RabbitMQ
Ernest Faizullin, 2020-11-23 18:01:21

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.


my config:
'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'),

        ],


moreover, I can successfully log in with these credentials to the myusername management panel

- this user has all possible rights and has the administrator tag . Does it matter? what did i miss? Where to watch logs? There is nothing in the /var/log/ folder that looks like the word rabbit. The documentation says that all log files are in the / data / logs / folder, but I don’t even have such a folder, either locally or remotely. sudo php artisan queue:work doesn't help either



Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ernest Faizullin, 2020-11-29
@erniesto77

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 question

Ask a Question

731 491 924 answers to any question