Closed pics124 closed 4 years ago
Hi @pics124. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
Please, add a comment to assign the issue: @magento I am working on this
Hi @swathishs. 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.
@magento give me 2.3.5-p1 instance
Hi @swathishs. Thank you for your request. I'm working on Magento 2.3.5-p1 instance for you
Hi @swathishs, here is your Magento instance.
Admin access: https://i-28966-2-3-5-p1.instances.magento-community.engineering/admin_edf1
Login: 74fbe3e0
Password: 9b84f4fa71ab
Instance will be terminated in up to 3 hours.
Hi @swathishs
Please reply. Is the issue resolved?
@magento give me 2.3.5-p1 instance
Hi @swathishs. Thank you for your request. I'm working on Magento 2.3.5-p1 instance for you
@pics124 @swathishs are there any updates on this issue? I am experiencing the same.
I can verify this issue on 2.3.5-p2 with ElasticSearch 7. Many products show correctly, but it's also missing quite a few products. In my case some configurable products. The products are visible when I visit the url directly, but they do not appear in the category pages or search results. All indexes were up-to-date and cache was cleared.
Switching back to MySQL solved the issue directly.
Same problem over here with configurable products that are missing with Elastic Search 7 like @barryvdh
We have the same issue here. They will come back as soon as you run bin/magento indexer:reindex manually, but after a few minutes there are products missing again. We have the exact same versions as @barryvdh
@mattias can you reproduce this on your local development environment?
@erfanimani We're trying hard to reproduce this. Locally nothing breaks, I'm using the exact same version of elasticsearch as I do on the production server. They're using position as sorting, and I've tried changing up positions locally to see if something would break but without success. Saving products randomly doesn't help either. Really not sure at all what's causing this.
I've also tried switching to production mode locally to see if it is specific to that but still nothing breaks.
One example of the issue is that the pagination will say 1-8 of 25, even though it's set to show 12 on each page. Basically skipping these missing products at the end. Moving to page two it'll say 13-24 of 25. And so on. Missing products can be on any page, doesn't have to be on page 1. The pagination will know this and tell exactly which range it is showing as shown in the example here.
The direct product link always works when this happens, but search and catalog will not show this product.
Same issue here, my 2 biggest grouped products with a 1200 configurations will not show in Elasticearch. All other grouped products with less configurations show fine. Same solution, going back to MySQL where all the products can be seen again but I would prefer to stay with Elasticsearch. @barryvdh
I had the same problem, found a solution here: https://magento.stackexchange.com/questions/322516/magento-2-x-elasticsearch-category-products-not-showing
This is still happening in my case. single store with 33k products however tho only way to show all products is to do bulk update and assign all products to website or re-save product. on issuing a reset on reindex, all products dissapear then when reindex finished not all of them are back again - newly created products do not show
Hi @engcom-Oscar. 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 @pics124
Thank you for your report.
Unfortunately, I was not able to reproduce this issue on the latest 2.4-develop
code, as MySQL is deprecated from it, and products with filterable attributes work well with Elasticsearch.
Probably issue was already fixed, or we missed some steps or preconditions.
If you have some more details how to reproduce this issue on latest 2.4 Magento, feel free to update the description and reopen it.
@arek-neptuneweb unfortunately that solution does not work at all - at least not in 2.3.5-p1 and not only that, i have tried out ES 5.X 6.X and 7.X and all of them gave the exact same result. as @barryvdh has mentioned in his comments the exact same thing is happening to us. a massive reindex after doing a bulk update to assign products to website removes them again.
Hello I am afraid that this issue is still ongoing. why has it been closed?
@barryvdh - quick question --- do you happen to use Amasty Elastic search module by any chance ?
Ehm yes probably that is also enabled.
Did you try disabling amasty search extension, reset the indexes, change them to Magento elastic search, delete the indices from elastic search then reindex? Everything might be working after @barryvdh but we lose the search from Amasty.
@alucardatem @barryvdh Just a FYI incase, I was experiencing basically the same issue. Our catalog_category_product and catalogrule_rule indexers were consequently always in the REINDEX REQUIRED state. In the end they were actually 2 separate causes, the first was due to Amasty Automatic Categories and second was due to Amasty Layered Navigation.
We had upgraded to 2.3.5-p2 and migrated servers consecutively and so it was a painful process trying to get to the bottom of it, turns out it was just due to third party modules.
I have the amasty layered nav also and the amasty advanced search with elastic search installed. However server spec wise 8gb ram with 4 cores and total no of products is around 30k mark. However the strange part is the fact that a bulk update to products setting them all to website or even creating a new product from admin they show instantly, but the moment the indexers run, it is all gone. What are your server specs @tkashro ?
@alucardatem 26GB RAM and 26 VCPU, we have only around 10k mark for products. Are your indexers running successfully? our seemed to be in a constant loop - and the indices being created in elasticsearch were rapidly going up, we had something like magento_production_product1v281
@tkashro yes, same here
@tkashro:
I was experiencing basically the same issue. Our catalog_category_product and catalogrule_rule indexers were consequently always in the REINDEX REQUIRED state. In the end they were actually 2 separate causes, the first was due to Amasty Automatic Categories and second was due to Amasty Layered Navigation.
This is actually a core issue in Magento from my findings, see https://github.com/magento/magento2/pull/29196, Magento is currently refactoring the PR, but we had success with applying this patch: https://github.com/magento/magento2/pull/29196/commits/f0c645307e031f9c6b8beb31f18c801dc62c02e3 to get this resolved
@hostep do you think that this is in relation to the fact that products are falling off when performing a reindex however this is the cats just for newly added products? I mean... On 2.3.5 on switching to mysql search engine and reindexing, all products are showing, even the new ones, after changing to elastic search 6.8/7.5/7.6/7.9 or to Amasty elastic search and reindexing only a part of the products show on category pages, however the products are accessible by URL and they are all in stock, enabled, catalog, search and there are no bad attributes in there. The moment i do a bulk update and adding products to the only existing site/store/storeview we have after that is running products line up and show. However, the moment that the reindex starts running the products that started showing dissapear in a instant
@tkashro:
I was experiencing basically the same issue. Our catalog_category_product and catalogrule_rule indexers were consequently always in the REINDEX REQUIRED state. In the end they were actually 2 separate causes, the first was due to Amasty Automatic Categories and second was due to Amasty Layered Navigation.
This is actually a core issue in Magento from my findings, see #29196, Magento is currently refactoring the PR, but we had success with applying this patch: f0c6453 to get this resolved
Wow, that seems spot on. Weirdly I could no longer and still can't reproduce the issue on our install after making the changes that I made, nevertheless that seems to be the problem.
@alucardatem, it doesn't sound related no. However if you have problems with indexers which are constantly being reindexed for no good reason (which can then cause your issue every few minutes I'm guessing), then that patch could already make it so that it doesn't happen every few minutes but only when actual reindexing is needed.
Your problem is probably something completely different then what I was talking about, this was just commenting on @tkashro's remark.
@hostep do you happen to have a composer version of the patch ?
Sure: PR-29196-Indexer.txt
@hostep @pics124
I saw the same for some our clients, but in our case it were large bundles that would go missing.
Turned out in our case this was the culprit:
[2020-10-14T13:04:22,816][DEBUG][o.e.a.b.TransportShardBulkAction] [di-u1v-] [magento2-prod_product_3_v4418][0] failed to execute bulk item (index) index {[magento2-prod_product_3_v4418][document][13421], source[n/a, actual length: [106.5kb], max length: $
java.lang.IllegalArgumentException: DocValuesField "name.sort_name" is too large, must be <= 32766
That explains why only large products go missing: child product names are imploded in that field, so if there are too many child products the 32766 field size limit will be hit.
Place in the code that causes this: https://github.com/magento/magento2/blob/fa6d291646b1ca0ebc0ebd3798ec8aaae634d486/app/code/Magento/Elasticsearch/Model/Adapter/BatchDataMapper/ProductDataMapper.php#L298
I drafted a quick patch that caps the sortable field on 32766 characters, you can apply it to magento/module-elasticsearch
in your composer.json
. Have not yet found any side effects.
Patch: fix-for-too-long-sortable-attributes.txt
@engcom-Oscar I replicated this on 2.4.0 btw, so it's a real issue. To replicate, make sure you have a product with a lot of (in my case a few thousand) child products (e.g. a bundle or a configurable)
Interesting, I had the issue with a lot of configurables (eg few hundred simples) so might be the same issue.
@thlassche maybe open a new issue with the tests (not sure if they bother looking at closed requests?)
Does the productId value matter? Otherwise a hash might also be a good option, or the configurable sku + a hash of the options?
@barryvdh I think the value is used for sorting, so a hash will not do the trick (did not check it in depth though), figured that if that was the case it was a fair tradeoff to just cut the string and accept that product name sorting for the very large products was not exactly right.
See also the commit that introduced this: https://github.com/magento/magento2/commit/edbd6b5668307a1a4343f8772ed5869985c4fe1e#diff-90b7adeaeb5217406c3f59114584fbf4d5159bc81cab99a794baaada0f1e8259R167
I'll open a fresh issue about it indeed.
This could be possibly related to this thread Stack Overflow
I had a similar issue and I found it was an attribute creating problems.
I have an opposite issue where grouped products without any children aren't shown in catalog lists, but they are counted in the pagination
Why the heck is this closed, it's definately a real issue a lot of people are clearly struggling with, and some basic developer just closes it?
@magento give me 2.3.5-p1 instance
Hi @georgebabarus. Thank you for your request. I'm working on Magento instance for you.
Hi @georgebabarus, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
@magento give me 2.3.5-p1 instance
Hi @georgebabarus. Thank you for your request. I'm working on Magento instance for you.
Hi @georgebabarus, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
@magento give me 2.3.5-p1 instance
Hi @georgebabarus. Thank you for your request. I'm working on Magento instance for you.
Hi @georgebabarus, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
Preconditions (*)
1.Magento Version:2.3.5-p1
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.