Open Tomasito665 opened 1 year ago
Hi @Tomasito665. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.Issue: Clear Description
label to the issue by yourself.Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.@magento give me 2.4-develop instance
Hi @Tomasito665. Thank you for your request. I'm working on Magento instance for you.
Hi @Tomasito665, here is your Magento Instance: https://e095d94e9dfca546500fc7a300209aa2.instances.magento-community.engineering Admin access: https://e095d94e9dfca546500fc7a300209aa2.instances.magento-community.engineering/admin_5943 Login: 3b662afd Password: c205e87eb57f
@magento give me 2.4-develop instance
I tried reproducing the issue with this instance. However, reproducing the bug with the steps described in the description of this issue requires access to the machine, which the machines spun up with m2-assistant do not provide. It should, however, be possible to reproduce the bug locally or in any other environment as long as you have SSH access. I reproduced the bug on my local machine with versions 2.4.4 and 2.4.5 of Magento.
Hi @Tomasito665. Thank you for your request. I'm working on Magento instance for you.
Hi @Tomasito665, here is your Magento Instance: https://e095d94e9dfca546500fc7a300209aa2.instances.magento-community.engineering Admin access: https://e095d94e9dfca546500fc7a300209aa2.instances.magento-community.engineering/admin_12f0 Login: 752a361f Password: 35a014e9e2c6
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hello @Tomasito665,
Thanks for the report and collaboration!
We have tried to reproduce the issue in Magento 2.4-develop instance and the issue is reproducible for us by exact mentioned steps.
Please refer to the screenshots for reference:
Hence confirming the issue.
Thanks
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-7685 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@Tomasito665: out of curiosity, have you already tried the indexer config setting use_application_lock
? See the documentation describing it.
Basically:
Maybe this helps in your case?
Unluckily, at least in 2.4.4-p1, using use_application_lock
as described here does not seem to solve the issue:
@magento I am working on this
Hello! Any update on this? I have this issue on my 2.4.6-p2.
Issue on 2.4.5-p4 cloud
Any idea how to use_application_lock
set this on .magento.env.yaml file?
Hi @alexandrosk. I suggest you to try this Adobe Quality Patch https://docs.mktossl.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-1-33/acsd-51431-indexer-status-is-working.html?lang=en. I tested it on my staging environment and it seems to work, I will deploy it to production next week.
@davideleonelli99 how it did?
here
we are also facing same issue in Magento ver. 2.4.6-p3
Same issue here, need to run indexer:reindex
every 10-15 minutes to get the indexes updated.
Hello @santerref,
Have you tried the use_application_lock
approach mentioned here https://github.com/magento/magento2/issues/36724#issuecomment-1397652690? This might resolve your issue.
You can go through with the below devdocs URL for the same:
Thanks
Hello @santerref,
Have you tried the
use_application_lock
approach mentioned here #36724 (comment)? This might resolve your issue.You can go through with the below devdocs URL for the same:
Thanks
Yes, we already use this setting and the issue is still there.
Hello @santerref,
We have tried to reproduce the issue in the latest development branch and the issue is reproducible for us with the mentioned steps. But using the use_application_lock
approach is solving the issue.
Please try to reproduce the issue in the latest development branch and let us know if the issue is reproducible for you.
Thanks
hello @engcom-Hotel
how to set the use_application_lock
on Adobe Cloud? I cannot see that on the list deploy variables here https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/configure/env/stage/variables-deploy.html?lang=en
Hi something like that ?
variables:
env:
CONFIG__DEFAULT__INDEXER__USE_APPLICATION_LOCK: true
@engcom-Hotel please provide a documentation in https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/configure/env/stage/variables-deploy.html?lang=en how to set the use_application_lock
in the env.php
via .magento.env.yaml
or give another way of adding this setting.
I got the same issue in version 2.4.6-p3
Hello @hannes011,
Please follow the below devdocs to configure use_application_lock
:
@engcom-Hotel sorry, I was not clear enough - I am using Magento Cloud and the env.php
is not part of the repository so it can not be adjusted. There is no way of changing the env.php
for that flag on Cloud mentioned in your documentation link since we cannot adjust the env.php! (I can adjust it but there is no documentation available which guarantees that it won't be overridden by any deployment mechanism of Magento Cloud).
That's why I'm asking for a Magento Cloud conform way (e.g. via the .magento.env.yaml
) to change that file env.php
Somebody on Slack recently asked the same question and after a while he came back with this reply he got from Cloud support:
I just got an answer from support and they told me to set it like that : env:CONFIGDEFAULTINDEXER__USE_APPLICATION_LOCK So i guess it is something that can also be set in core_config_data
Maybe that works? If it doesn't, I would strongly suggest you ask Cloud support this same question. The thread here is about Magento Open Source and few people here know how Magento Cloud works...
I tried use_application_lock but It didn't work.
Any other solution?
Hello @javier-miguel-phpro,
By following the below documentation:
This issue can be resolved. Can you please let us know your Magento version, the above fix will work starting from Magento version 2.4.3?
Thanks
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hi @engcom-Hotel!
I am working in 2.4.5-p7 and I have that setting already on env.php but still I have the issue.
Any suggestion?
Regards!
Hello @javier-miguel-phpro,
We have tried to reproduce the issue in the latest development branch ie 2.4-develop but the issue is not reproducible for us. We recommend you upgrade to the latest stable version of Magento and let us know if you are still able to reproduce the issue.
Thanks
Preconditions and environment
Description
For "on-schedule" indexes, the indexer_update_all_views cron job runs every minute to work through the backlog of changed entities and update their corresponding indexes accordingly. In Adobe Commerce cloud environments, the system sometimes terminates this cron job when running low on memory. If this happens during an index update, the index gets indefinitely stuck into the "working" status. In those cases, getting the index unstuck requires manual action. The following diagram provides an overview.
Magento version
Steps to reproduce
Idea
The easiest way to reproduce this issue is to make the update for a particular index artificially slow by adding a sleep. Then, we can manually run the job and kill it from another terminal while it's running to freeze it forever. We can do this with any indexer. In the steps below, we use the product price indexer.
Steps
indexer_update_all_views
cron job in isolation.catalog_product_price
indexer mode toschedule
.Indexer\Product\Price::execute
artificially slow by addingsleep(300);
.bin/magento indexer:status catalog_product_price
— it should show "x in backlog".n98-magerun2 sys:cron:run indexer_update_all_views
to run the cron job and remember its PID.kill $PID
.sleep(300);
and re-run steps 5 and 6 to simulate a non-slow, successful index update.Expected result
The indexer updates the product price index successfully to include the new price.
Actual result
The product price indexer gets frozen, which keeps it from processing any further price changes.
Additional information
Logs from "how to reproduce" steps 7 and 8.
Release note
No response
Triage and priority