how to configure Consumer_run for async.operations.all?Changing config/connection type for consumershow to set cron.sh for magento using sshMagento 2: how to use a configuration field for the crontab expression?How to configure Email in Magento2.0.7?How to run crontab for Magento upgradeHow to configure Magento 1.9 Cron Job to run on a Windows Server 2016?How can I setup cron job in Wamp Windows?How can I set cron for some specific php fileHow to execute cron jobs automatically every week in magento 2 custom module?Magento 1.9 cron jobs runs every 5mint but its configured for every 1 minuteHow to automatically run custom module CRON only?
Realistic Necromancy?
Unexpected email from Yorkshire Bank
Any examples of headwear for races with animal ears?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
If a warlock with the Repelling Blast invocation casts Eldritch Blast and hits, must the targets always be pushed back?
French for 'It must be my imagination'?
How can I place the product on a social media post better?
The Defining Moment
How did Captain America manage to do this?
Fizzy, soft, pop and still drinks
Phrase for the opposite of "foolproof"
Which big number is bigger?
Controversial area of mathematics
How to stop co-workers from teasing me because I know Russian?
How to get a plain text file version of a CP/M .BAS (M-BASIC) program?
What are the potential pitfalls when using metals as a currency?
Are Boeing 737-800’s grounded?
Meaning of Bloch representation
What happened to Captain America in Endgame?
Examples of subgroups where it's nontrivial to show closure under multiplication?
Do I have an "anti-research" personality?
Why does processed meat contain preservatives, while canned fish needs not?
Is there any limitation with Arduino Nano serial communication distance?
Why was Germany not as successful as other Europeans in establishing overseas colonies?
how to configure Consumer_run for async.operations.all?
Changing config/connection type for consumershow to set cron.sh for magento using sshMagento 2: how to use a configuration field for the crontab expression?How to configure Email in Magento2.0.7?How to run crontab for Magento upgradeHow to configure Magento 1.9 Cron Job to run on a Windows Server 2016?How can I setup cron job in Wamp Windows?How can I set cron for some specific php fileHow to execute cron jobs automatically every week in magento 2 custom module?Magento 1.9 cron jobs runs every 5mint but its configured for every 1 minuteHow to automatically run custom module CRON only?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have enabled my custom modules for certain functionality, successfully deployed but magento2 admin portal prompts me "something went wrong" when I click my newly installed module.(the module is not working)
I headed to system.log and I found this, which are responsible to the error
> main.INFO: Consumer "async.operations.all" skipped as required
> connection "amqp" is not configured. Unknown connection name amqp []
> []
Update
I check (https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html)
And I m required to add external MQ, thus I followed the guide by adding line below to my magentoroot/app/etc/env.php
> 'cron_consumers_runner' => array(
> 'cron_run' => false,
> 'max_messages' => 20000,
> 'consumers' => array(
> 'async.operations.all',
> )
> ),
I believe i need to somehow include this 'async.operations.all' as consumers.It displayed in my bin/magento consumer:list,yet it still not working ,what did I miss here?
tried re-upgrade ,compile & deploy with sudo chmod -777 on var/www/html and clearing cache.
Update
On magentoroot/vendor/magento/module-webapi-async/etc/queue_consumer.xml
> <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights
> reserved. * See COPYING.txt for license details. */
> --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
> <consumer name="async.operations.all" queue="async.operations.all" connection="cron_consumers_runner"
> consumerInstance="MagentoAsynchronousOperationsModelMassConsumer"/>
> </config>
& queue_topology.xml
> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
> <exchange name="magento" type="topic" connection="cron_consumers_runner">
> <binding id="async.operations.all" topic="async.#" destinationType="queue" destination="async.operations.all"/>
> </exchange> </config>
With both updated on connection with 'db' or 'cron_consumers_runner'.I do compile and clear cache, headed to the admin portal.S till the same (Attention, Something went wrong, module not working).
I head back to system.log, now there is no error anymore.
configuration crontab magento-cron system.log
New contributor
add a comment |
I have enabled my custom modules for certain functionality, successfully deployed but magento2 admin portal prompts me "something went wrong" when I click my newly installed module.(the module is not working)
I headed to system.log and I found this, which are responsible to the error
> main.INFO: Consumer "async.operations.all" skipped as required
> connection "amqp" is not configured. Unknown connection name amqp []
> []
Update
I check (https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html)
And I m required to add external MQ, thus I followed the guide by adding line below to my magentoroot/app/etc/env.php
> 'cron_consumers_runner' => array(
> 'cron_run' => false,
> 'max_messages' => 20000,
> 'consumers' => array(
> 'async.operations.all',
> )
> ),
I believe i need to somehow include this 'async.operations.all' as consumers.It displayed in my bin/magento consumer:list,yet it still not working ,what did I miss here?
tried re-upgrade ,compile & deploy with sudo chmod -777 on var/www/html and clearing cache.
Update
On magentoroot/vendor/magento/module-webapi-async/etc/queue_consumer.xml
> <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights
> reserved. * See COPYING.txt for license details. */
> --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
> <consumer name="async.operations.all" queue="async.operations.all" connection="cron_consumers_runner"
> consumerInstance="MagentoAsynchronousOperationsModelMassConsumer"/>
> </config>
& queue_topology.xml
> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
> <exchange name="magento" type="topic" connection="cron_consumers_runner">
> <binding id="async.operations.all" topic="async.#" destinationType="queue" destination="async.operations.all"/>
> </exchange> </config>
With both updated on connection with 'db' or 'cron_consumers_runner'.I do compile and clear cache, headed to the admin portal.S till the same (Attention, Something went wrong, module not working).
I head back to system.log, now there is no error anymore.
configuration crontab magento-cron system.log
New contributor
add a comment |
I have enabled my custom modules for certain functionality, successfully deployed but magento2 admin portal prompts me "something went wrong" when I click my newly installed module.(the module is not working)
I headed to system.log and I found this, which are responsible to the error
> main.INFO: Consumer "async.operations.all" skipped as required
> connection "amqp" is not configured. Unknown connection name amqp []
> []
Update
I check (https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html)
And I m required to add external MQ, thus I followed the guide by adding line below to my magentoroot/app/etc/env.php
> 'cron_consumers_runner' => array(
> 'cron_run' => false,
> 'max_messages' => 20000,
> 'consumers' => array(
> 'async.operations.all',
> )
> ),
I believe i need to somehow include this 'async.operations.all' as consumers.It displayed in my bin/magento consumer:list,yet it still not working ,what did I miss here?
tried re-upgrade ,compile & deploy with sudo chmod -777 on var/www/html and clearing cache.
Update
On magentoroot/vendor/magento/module-webapi-async/etc/queue_consumer.xml
> <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights
> reserved. * See COPYING.txt for license details. */
> --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
> <consumer name="async.operations.all" queue="async.operations.all" connection="cron_consumers_runner"
> consumerInstance="MagentoAsynchronousOperationsModelMassConsumer"/>
> </config>
& queue_topology.xml
> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
> <exchange name="magento" type="topic" connection="cron_consumers_runner">
> <binding id="async.operations.all" topic="async.#" destinationType="queue" destination="async.operations.all"/>
> </exchange> </config>
With both updated on connection with 'db' or 'cron_consumers_runner'.I do compile and clear cache, headed to the admin portal.S till the same (Attention, Something went wrong, module not working).
I head back to system.log, now there is no error anymore.
configuration crontab magento-cron system.log
New contributor
I have enabled my custom modules for certain functionality, successfully deployed but magento2 admin portal prompts me "something went wrong" when I click my newly installed module.(the module is not working)
I headed to system.log and I found this, which are responsible to the error
> main.INFO: Consumer "async.operations.all" skipped as required
> connection "amqp" is not configured. Unknown connection name amqp []
> []
Update
I check (https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html)
And I m required to add external MQ, thus I followed the guide by adding line below to my magentoroot/app/etc/env.php
> 'cron_consumers_runner' => array(
> 'cron_run' => false,
> 'max_messages' => 20000,
> 'consumers' => array(
> 'async.operations.all',
> )
> ),
I believe i need to somehow include this 'async.operations.all' as consumers.It displayed in my bin/magento consumer:list,yet it still not working ,what did I miss here?
tried re-upgrade ,compile & deploy with sudo chmod -777 on var/www/html and clearing cache.
Update
On magentoroot/vendor/magento/module-webapi-async/etc/queue_consumer.xml
> <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights
> reserved. * See COPYING.txt for license details. */
> --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
> <consumer name="async.operations.all" queue="async.operations.all" connection="cron_consumers_runner"
> consumerInstance="MagentoAsynchronousOperationsModelMassConsumer"/>
> </config>
& queue_topology.xml
> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
> <exchange name="magento" type="topic" connection="cron_consumers_runner">
> <binding id="async.operations.all" topic="async.#" destinationType="queue" destination="async.operations.all"/>
> </exchange> </config>
With both updated on connection with 'db' or 'cron_consumers_runner'.I do compile and clear cache, headed to the admin portal.S till the same (Attention, Something went wrong, module not working).
I head back to system.log, now there is no error anymore.
configuration crontab magento-cron system.log
configuration crontab magento-cron system.log
New contributor
New contributor
edited Apr 24 at 14:26
Ed Tan
New contributor
asked Apr 24 at 4:45
Ed TanEd Tan
467
467
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Check app/etc/env.php
. You may be missing the connection configuration.
Add the following element to array in app/etc/env.php:
'queue' => [
'amqp' => [
'host' => 'localhost',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'virtualhost' => '/',
'ssl' => ''
]
]
This is just a sample code, you have to modify it according to your requirement.
UPDATE
There are two ways to configure Message Queues in Magento2.
One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection.
Second is using Database and cron, if you are using this setup you need configuration as mentioned at https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html
UPDATE 2
Check if the connection name in XML files and env.php are same.
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
updated ,check it out
– Ed Tan
Apr 24 at 10:19
|
show 6 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Ed Tan is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272164%2fhow-to-configure-consumer-run-for-async-operations-all%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check app/etc/env.php
. You may be missing the connection configuration.
Add the following element to array in app/etc/env.php:
'queue' => [
'amqp' => [
'host' => 'localhost',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'virtualhost' => '/',
'ssl' => ''
]
]
This is just a sample code, you have to modify it according to your requirement.
UPDATE
There are two ways to configure Message Queues in Magento2.
One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection.
Second is using Database and cron, if you are using this setup you need configuration as mentioned at https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html
UPDATE 2
Check if the connection name in XML files and env.php are same.
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
updated ,check it out
– Ed Tan
Apr 24 at 10:19
|
show 6 more comments
Check app/etc/env.php
. You may be missing the connection configuration.
Add the following element to array in app/etc/env.php:
'queue' => [
'amqp' => [
'host' => 'localhost',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'virtualhost' => '/',
'ssl' => ''
]
]
This is just a sample code, you have to modify it according to your requirement.
UPDATE
There are two ways to configure Message Queues in Magento2.
One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection.
Second is using Database and cron, if you are using this setup you need configuration as mentioned at https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html
UPDATE 2
Check if the connection name in XML files and env.php are same.
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
updated ,check it out
– Ed Tan
Apr 24 at 10:19
|
show 6 more comments
Check app/etc/env.php
. You may be missing the connection configuration.
Add the following element to array in app/etc/env.php:
'queue' => [
'amqp' => [
'host' => 'localhost',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'virtualhost' => '/',
'ssl' => ''
]
]
This is just a sample code, you have to modify it according to your requirement.
UPDATE
There are two ways to configure Message Queues in Magento2.
One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection.
Second is using Database and cron, if you are using this setup you need configuration as mentioned at https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html
UPDATE 2
Check if the connection name in XML files and env.php are same.
Check app/etc/env.php
. You may be missing the connection configuration.
Add the following element to array in app/etc/env.php:
'queue' => [
'amqp' => [
'host' => 'localhost',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'virtualhost' => '/',
'ssl' => ''
]
]
This is just a sample code, you have to modify it according to your requirement.
UPDATE
There are two ways to configure Message Queues in Magento2.
One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection.
Second is using Database and cron, if you are using this setup you need configuration as mentioned at https://devdocs.magento.com/guides/v2.3/config-guide/mq/manage-message-queues.html
UPDATE 2
Check if the connection name in XML files and env.php are same.
edited Apr 24 at 10:53
answered Apr 24 at 5:03
Anshu MishraAnshu Mishra
5,70652763
5,70652763
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
updated ,check it out
– Ed Tan
Apr 24 at 10:19
|
show 6 more comments
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
updated ,check it out
– Ed Tan
Apr 24 at 10:19
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
I m using CE version ,and what does this does?and do i need to include job name from my custom module's crontab.xml?
– Ed Tan
Apr 24 at 5:12
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
@EdTan There are two ways to configure Message Queues in Magento2. One is using RabbitMQ, if you are using RabbitMQ, then you need to connect to the RabbitMQ server. Above code is for that connection. Second is using Database and cron, if you are using this setup you need configuration as mentioned at devdocs.magento.com/guides/v2.3/config-guide/mq/…
– Anshu Mishra
Apr 24 at 5:40
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
would you help me with method 2?
– Ed Tan
Apr 24 at 8:48
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
@EdTan share your xml files.
– Anshu Mishra
Apr 24 at 9:59
updated ,check it out
– Ed Tan
Apr 24 at 10:19
updated ,check it out
– Ed Tan
Apr 24 at 10:19
|
show 6 more comments
Ed Tan is a new contributor. Be nice, and check out our Code of Conduct.
Ed Tan is a new contributor. Be nice, and check out our Code of Conduct.
Ed Tan is a new contributor. Be nice, and check out our Code of Conduct.
Ed Tan is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272164%2fhow-to-configure-consumer-run-for-async-operations-all%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown