Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31329

Error when running ezplatform:reindex cmd with multiple processes inside engine container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: dev-master, eZ Platform 2.3, eZ Platform 2.4, 2.5.8
    • Fix Version/s: 2.5.9, 3.0.0-beta6
    • Component/s: Console, Install, Search
    • Labels:
      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ahmedbhs123@gmail.com Ahmed EBEN HASSINE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: