elasticsuite icon indicating copy to clipboard operation
elasticsuite copied to clipboard

A problem with adding a product to a category

Open mnowakCode opened this issue 2 years ago • 17 comments

After migration to Magento 2.4.4 and upgrading Elasticsuite to version 2.10.11, we saw a problem with adding products to categories. This problem shows only in the production environment and not always. When we try to add any product to a category sometimes the rest products are gone, but the product is showing. After refreshing the page, the products are displayed again.

Preconditions

Magento Version: Comerce, 2.4.4 ElasticSuite Version: 2.10.11 Environment: Production mode Third-party modules: We have a few, but maybe important is firebear/configurableproducts

Steps to reproduce

  1. Choose a category that has some products
  2. Add a product to the category (try several times)

Expected result

  1. The product is showing in the category

Actual result

Before adding a product: before

After adding a product :

after

mnowakCode avatar Oct 28 '22 09:10 mnowakCode

Hello @mnowakCode,

How are products displayed on the frontend side after you have caught this bug, in other words, when you see only the last added product in the Admin panel?

BR, Vadym

vahonc avatar Oct 28 '22 10:10 vahonc

Hello @vahonc,

When products are gone, I don't save this category, because think I lose the data. So I refresh the page and I try to one more time add the product in the right way.

Best, Marcin

mnowakCode avatar Oct 28 '22 10:10 mnowakCode

Have you checked if there are no any errors in the Console of your browser when you have this bug? Also please checked Magento logs Maybe it's a cache issue of your browser or maybe you have some cache extension or configuration on your prod env.

BR, Vadym

vahonc avatar Oct 28 '22 12:10 vahonc

I checked everything. Logs in the web console, Magento logs, and I nothing found.

Best, Marcin

mnowakCode avatar Oct 28 '22 12:10 mnowakCode

hello @vahonc, Today I got an idea, that can be cron and indexer fault. Because we have set all indexes on "Update be schedule". Cron does indexer every minute so maybe when categories are indexing and at the same time we're adding a product, shows a fault, and data are gone. What do you think about this idea?

Best, Marcin

mnowakCode avatar Nov 02 '22 13:11 mnowakCode

Hi @mnowakCode

I'll try to look at this problem more deeply and try to reproduce on my test environment.

BR, Vadym

vahonc avatar Nov 03 '22 14:11 vahonc

@vahonc @mnowakCode

I can confirm this issue on Magento 2.4.4-p2 with Smile Elastic latest version available 2.10.12.1: when trying to add a product in Admin Panel to the category, it deletes all existing products in the category.

Thanks, Eugen

EugenOrosan avatar Nov 03 '22 14:11 EugenOrosan

@mnowakCode,

For this moment I was not able to reproduce your issue. Are you using a store with multi-websites?

For me, it's strange that after you refresh the page and try to add products one more time and it fixes your issue. So yes, it could be linked to the Indexer issue. You need to check the indices settings. Have you tried to check the status of the indexer when you fetch this bug?

Also, provide an output of this command: $ curl http://localhost:9200/_cat/indices?v

BR, Vadym

vahonc avatar Nov 08 '22 11:11 vahonc

@vahonc Yes, I use a store with multi-websites. I changed the indexers responsible for category indexing and I think this solved this issue, but I'll let you know.

Best, Marcin

mnowakCode avatar Nov 14 '22 07:11 mnowakCode

any update about this @mnowakCode ?

romainruaud avatar Nov 30 '22 16:11 romainruaud

@romainruaud, I'm sorry for the late response, but we had black weeks on our webshop, so I can't test my idea. I'll let you know after my testing on the production environment.

mnowakCode avatar Dec 07 '22 07:12 mnowakCode

@romainruaud in this week we changed the indexers' settings, but it doesn't help with our problem. If you have any idea how to repair this, please let me know.

mnowakCode avatar Jan 27 '23 10:01 mnowakCode

@vahonc if you need help with the investigation, let me know.

Best, Marcin

mnowakCode avatar Jan 31 '23 08:01 mnowakCode

@vahonc, @romainruaud I still have the same problem. Do you have any information from other developers about it?

mnowakCode avatar Sep 19 '23 11:09 mnowakCode

Hello @mnowakCode,

Nope, we don't get any reports from our customers. It could be an issue linked to some specific configuration of your environment.

Have you any details (new scenario, screens, errors) that can help us understand where is problem?

BR, Vadym

vahonc avatar Sep 19 '23 11:09 vahonc

Hello @vahonc,

I'll describe the problem from the start. I have the problem only in the production environment (Magento 2.4.4). My webshop has 5 stores. When I add any product to a category sometimes (not always) the rest of the products from the categories are gone. I don't get any information in the web console and Magento logs. I don't save, and refresh the page. After that products are back, but without the product that I want to add. We can schedule the meeting when I can show you the error on live.

Best regards, Marcin

mnowakCode avatar Sep 19 '23 12:09 mnowakCode

@mnowakCode,

Maybe I will try to have a look at this issue again but can't guarantee that it will quickly. If you are interested in dedicated (paid) support through professional services, please send an email to [email protected].

BR, Vadym

vahonc avatar Sep 19 '23 12:09 vahonc