magento2: Upgrade from 2.4.3-p1 to 2.4.3-p2 throws error Magento\Framework\Indexer\IndexMutexInterface not found running compile
Preconditions (*)
- Magento 2.4.3-p1
- PHP 7.4.163.
- Composer version 2.2.12
- Development mode
Steps to reproduce (*)
- Followed all the steps from the Upgrade Commerce Guide (https://devdocs.magento.com/guides/v2.4/comp-mgr/cli/cli-upgrade.html) to upgrade from 2.4.3-p1 to 2.4.3-p2.
- Run bin/magento setup:upgrade for the second time to be sure3.
- Run the compile command php bin/magento setup:di:compile and fetch the error on step 1/9 of compile.
Expected result (*)
- Successfully upgrade to 2.4.3-p2 and run the compile to set it back to production mode.
Actual result (*)
- We fetch an error on step 1/9 after running the php bin/magento setup:di:compile command. The error we get is
Interface 'Magento\Framework\Indexer\IndexMutexInterface' not found. The entire error is:
Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 112.0 MiBInterface 'Magento\Framework\Indexer\IndexMutexInterface' not found#0 /vendor/composer/ClassLoader.php(571): include() #1 /vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Magento\\Indexer...') #3 [internal function]: spl_autoload_call('Magento\\Indexer...') #4 /setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Magento\\Indexer...') #5 /setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Magento\\Indexer...', '/...') #6 /setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract(Object(RecursiveIteratorIterator)) #7 /setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList('/...') #8 /setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation() #9 /setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process(Object(Closure), Object(Closure)) #10 /vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DiCompileCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /bin/magento(23): Symfony\Component\Console\Application->run() #16 {main}
- We can also not successfully complete the indexer:reindex command well. We fetch an error with the Category Products index. The error is Class Magento\Catalog\Model\Indexer\Category\Product\Interceptor does not exist
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17
Yes, i you compare with magento source code 2.4.4 or 2.4.3-p2, this file dont exist.
Check at https://github.com/magento/magento2/tree/2.4.3-p2/app/code/Magento/Indexer/Model
hi,
I have to delete file: /vendor/magento/module-indexer/Model/IndexMutex.php After, working…
same issue on my side