Details
-
Bug
-
Resolution: Fixed
-
Medium
-
dev-master, eZ Platform 2.3, eZ Platform 2.4, 2.5.8
-
None
Description
When running reindexing command with multiple processes, the value of console path is always `app/console` instead of `bin/console` and a General error is written to log instead of getting the exact error ẁish is `Could not open input file: app/console`:
Re-indexing started for search engine: eZ Platform Solr Search EnginePurging index... Re-Creating index for 19190 items across 384 iteration(s), using 2 parallel child processes: 1/384 [>---------------------------] 0%13:18:18 ERROR [app] Child indexer process returned: General error 2/384 [>---------------------------] 0%13:18:18 ERROR [app] Child indexer process returned: General error 3/384 [>---------------------------] 0%13:18:19 ERROR [app] Child indexer process returned: General error 4/384 [>---------------------------] 1%13:18:19 ERROR [app] Child indexer process returned: General error 5/384 [>---------------------------] 1%13:18:20 ERROR [app] Child indexer process returned: General error 6/384 [>---------------------------] 1%13:18:20 ERROR [app] Child indexer process returned: General error
Code exit : 1
Text code exist : "General error"
To test, install a clean eZ Platform 2.x via ez LaunchPad, and run the reindexing script with:
ez sfrun 'ezplatform:reindex --processes=2'
This is the line code causing the issue: https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php#L416
The idea is to Inject project dir into ezplatform:reindex cmd to find console path.