magento2: Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch.

Preconditions (*)

  1. Apache 2.4
  2. PHP 7.2
  3. MYSQL 8.0 from Mysql Apt Repo

Steps to reproduce (*)

  1. Clone and install Magento

Expected result (*)

  1. Magento installs

Actual result (*)

  1. Error:
[Progress: 377 / 686]
Module 'Magento_CatalogSearch':

In PatchApplier.php line 167:
                                                                                                                                                                                                                                                                              
  Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch. Original exception message: Temporary table for index catalogsearch_fulltext doesn't exist, which is inconsistent with state of sc  
  ope resolver                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                              

In IndexSwitcher.php line 61:
                                                                                                                      
  Temporary table for index catalogsearch_fulltext doesn't exist, which is inconsistent with state of scope resolver 

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (3 by maintainers)

Most upvoted comments

I have this issue in 2.4.2 After bin/magento sampledata:deploy, bin/magento setup:upgrade I get exception in cli: Unable to apply data patch Magento\CatalogSampleData\Setup\Patch\Data\InstallCatalogSampleData for module Magento_CatalogSampleData. Original exception message: Rolled back transaction has not been completed correctly.

Same issue on clean installation 2.4.5

Hi @TomashKhamlai. Thank you for your report. The issue has been fixed in magento/magento2#25357 by @akaplya in 2.3-develop branch Related commit(s):

The fix will be available with the upcoming 2.3.4 release.