1

I'm trying to enable bulk endpoints to upload multiple products at once (The CSV uploader seems to be completely broken, so I'm going this route instead).

When I try to enable bulk endpoints (php bin/magento queue:consumers:start async.operations.all), I get a message saying "Unknown connection name amqp".

This seems to be related to RabbitMQ, which I can't install because I'm on a cloudways server.

Is there any way around this error, or am I going to have to write some custom functionality to upload my products?

Magento 2.3.1 CE

1

master. I faced the same issue, and the solution I've found was to disable the async.operations.all to be queued. You have to add this to your app/etc/env.php file (last array). Magento reference here.

...
'cron_consumers_runner' => [
    'cron_run' => false,
    'max_messages' => 20000,
    'consumers' => ['async.operations.all']
],
...

In my case, the issue was related to the crontabs, which was getting in conflict with the flock.

What I did was: put all the consumers out of cronjob execution. Note empty array at the consumers:

...
'cron_consumers_runner' => [
    'cron_run' => false,
    'max_messages' => 20000,
    'consumers' => []
],
...

And then, set one cron for each consumer:

* * * * * flock -n /tmp/magento-cron.lock bin/magento cron:run > /dev/null 2>&1;
* * * * * flock -n /tmp/consumer-cron.lock bin/magento queue:consumers:start inventoryQtyCounter > /dev/null 2>&1;

Of course, you got to add a crontab for each consumer queue you want to execute, see the list of consumers queue here.

But I believe, for your case, the first option should work.

  • Thanks for responding. When I added that to my list (I had seen that documentation earlier), I get the same error message. Is there anything else that has to be run afterwards? Thanks – web master Oct 2 at 20:41
  • Please add this to your env.php file: ... 'cron_consumers_runner' => [ 'cron_run' => false, 'max_messages' => 20000, 'consumers' => ['async.operations.all'] ], ... And do not execute the bin/magento queue:consumers:start async.operations.all The actions will be done without RabbitMQ. – Willian Levinski Keller Oct 3 at 8:30
  • When I try that, the response message is: "message": "Unknown connection name amqp" – web master Oct 3 at 12:36
  • Put the consumers' array empty: 'consumers' => []. It might be necessary to execute the others' queues manually. But do not execute the async.operations.all. Let the async process to be done via database. – Willian Levinski Keller Oct 7 at 9:26
  • I remove the async.operations.all from the array, and my code is now ``` 'cron_consumers_runner' => [ 'cron_run' => false, 'max_messages' => 1000, 'consumers' => [ ] ] ``` But I still get the message "message": "Unknown connection name amqp", – web master Oct 7 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.