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

clusterize fails due missing zetacomponents if we don't do a composer install in ezpublish_legacy folder

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Invalid
    • Affects Version/s: 5.3.3, 5.4-dev
    • Fix Version/s: QA tracked issues
    • Component/s: Legacy > Clustering
    • Labels:
      None
    • Environment:

      Operating System: Debian 7
      PHP Version: PHP 5.4.4-14+deb7u8
      Database and version: Mysql 5.5.35
      Cluster environment with 3 machines. Two with eZ Publish and one with the database

      Description

      Hi,
      Following the steps to install a cluster using latest master, i have the following error when executing the 'clusterize' command:

      PHP Fatal error:  Class 'ezcBaseOptions' not found in /var/www/ezpublish5/ezpublish_legacy/kernel/private/options/ezpextensionoptions.php on line 58
      PHP Stack trace:
      PHP   1. {main}() /var/www/ezpublish5/ezpublish_legacy/bin/php/clusterize.php:0
      PHP   2. eZScript->initialize() /var/www/ezpublish5/ezpublish_legacy/bin/php/clusterize.php:130
      PHP   3. eZExtension::activateExtensions() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezscript.php:265
      PHP   4. eZExtension::activeExtensions() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezextension.php:207
      PHP   5. eZExpiryHandler::instance() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezextension.php:114
      PHP   6. eZExpiryHandler->eZExpiryHandler() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:140
      PHP   7. eZClusterFileHandler::instance() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:26
      PHP   8. ezpAutoloader::autoload() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:0
      PHP   9. require() /var/www/ezpublish5/ezpublish_legacy/autoload.php:126
       
      Fatal error: eZ Publish did not finish its request
      The execution of eZ Publish was abruptly ended, the debug output is present below.
      

      After this error, only if i execute "php ../composer.phar install" in ezpublish_legacy folder, where the zetacomponents are installed, the clusterize works.

      Having zetacomponents on vendors folder, does this mean that clusterize is blind to vendors/zetacomponents existence?

      Steps to reproduce

      – Fetch latest ezpublish-platform from git
      $ git clone git@github.com:ezsystems/ezpublish-platform.git ezpublish5
      $ cd ezpublish5
      – execute the composer install
      $ curl -sS https://getcomposer.org/installer | php
      $ php composer.phar install --prefer-dist
      (i have had some issues described in EZP-23268, that were workaround-ed)
      – Replaced ezpublish_legacy for the ee version
      $ rm -rf ezpublish_legacy
      $ git clone git@github.com:ezsystems/ezpublish-legacy-ee.git ezpublish_legacy
      – Installed eZ publish
      – Followed the cluster instruction from here
      – When reaching the clusterize instruction:
      $ php bin/php/clusterize.php -s ezdemo_site

      After the last step, the error occurred.

        Activity

        Paulo Nunes (Inactive) created issue -
        Paulo Nunes (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Paulo Nunes (Inactive) made changes -
        Description Hi,
        Following the steps to install a cluster using latest master, i have the following error when executing the 'clusterize' command:
        {noformat}
        PHP Fatal error: Class 'ezcBaseOptions' not found in /var/www/ezpublish5/ezpublish_legacy/kernel/private/options/ezpextensionoptions.php on line 58
        PHP Stack trace:
        PHP 1. {main}() /var/www/ezpublish5/ezpublish_legacy/bin/php/clusterize.php:0
        PHP 2. eZScript->initialize() /var/www/ezpublish5/ezpublish_legacy/bin/php/clusterize.php:130
        PHP 3. eZExtension::activateExtensions() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezscript.php:265
        PHP 4. eZExtension::activeExtensions() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezextension.php:207
        PHP 5. eZExpiryHandler::instance() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezextension.php:114
        PHP 6. eZExpiryHandler->eZExpiryHandler() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:140
        PHP 7. eZClusterFileHandler::instance() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:26
        PHP 8. ezpAutoloader::autoload() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:0
        PHP 9. require() /var/www/ezpublish5/ezpublish_legacy/autoload.php:126

        Fatal error: eZ Publish did not finish its request
        The execution of eZ Publish was abruptly ended, the debug output is present below.
        {noformat}

        After this error, only if i execute "php ../composer.phar install" in ezpublish_legacy folder, where the zetacomponents are installed, the clusterize works.

        Having zetacomponents on vendors folder, does this mean that clusterize is blind to vendors/zetacomponents existence?

        h5. Steps to reproduce
        -- Fetch latest ezpublish-platform from git
        $ git clone git@github.com:ezsystems/ezpublish-platform.git ezpublish5
        $ cd ezpublish5
        -- execute the composer install
        $ curl -sS https://getcomposer.org/installer | php
        $ php composer.phar install --prefer-dist
        (i have had some issues described in EZP-23268, that were workaround-ed)
        -- Replaced ezpublish_legacy for the ee version
        $ rm -rf ezpublish_legacy
        $ git clone git@github.com:ezsystems/ezpublish-legacy-ee.git ezpublish_legacy
        -- Installed eZ publish
        -- Followed the cluster instruction from [here|https://doc.ez.no/eZ-Publish/Technical-manual/5.x/Features/Clustering/Setting-it-up-for-an-eZDFSFileHandler]
        -- When reacing the clusterize instruction:
        $ php bin/php/clusterize.php -s ezdemo_site

        After the last step, the error occurred.

        Hi,
        Following the steps to install a cluster using latest master, i have the following error when executing the 'clusterize' command:
        {noformat}
        PHP Fatal error: Class 'ezcBaseOptions' not found in /var/www/ezpublish5/ezpublish_legacy/kernel/private/options/ezpextensionoptions.php on line 58
        PHP Stack trace:
        PHP 1. {main}() /var/www/ezpublish5/ezpublish_legacy/bin/php/clusterize.php:0
        PHP 2. eZScript->initialize() /var/www/ezpublish5/ezpublish_legacy/bin/php/clusterize.php:130
        PHP 3. eZExtension::activateExtensions() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezscript.php:265
        PHP 4. eZExtension::activeExtensions() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezextension.php:207
        PHP 5. eZExpiryHandler::instance() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezextension.php:114
        PHP 6. eZExpiryHandler->eZExpiryHandler() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:140
        PHP 7. eZClusterFileHandler::instance() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:26
        PHP 8. ezpAutoloader::autoload() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezexpiryhandler.php:0
        PHP 9. require() /var/www/ezpublish5/ezpublish_legacy/autoload.php:126

        Fatal error: eZ Publish did not finish its request
        The execution of eZ Publish was abruptly ended, the debug output is present below.
        {noformat}

        After this error, only if i execute "php ../composer.phar install" in ezpublish_legacy folder, where the zetacomponents are installed, the clusterize works.

        Having zetacomponents on vendors folder, does this mean that clusterize is blind to vendors/zetacomponents existence?

        h5. Steps to reproduce
        -- Fetch latest ezpublish-platform from git
        $ git clone git@github.com:ezsystems/ezpublish-platform.git ezpublish5
        $ cd ezpublish5
        -- execute the composer install
        $ curl -sS https://getcomposer.org/installer | php
        $ php composer.phar install --prefer-dist
        (i have had some issues described in EZP-23268, that were workaround-ed)
        -- Replaced ezpublish_legacy for the ee version
        $ rm -rf ezpublish_legacy
        $ git clone git@github.com:ezsystems/ezpublish-legacy-ee.git ezpublish_legacy
        -- Installed eZ publish
        -- Followed the cluster instruction from [here|https://doc.ez.no/eZ-Publish/Technical-manual/5.x/Features/Clustering/Setting-it-up-for-an-eZDFSFileHandler]
        -- When reaching the clusterize instruction:
        $ php bin/php/clusterize.php -s ezdemo_site

        After the last step, the error occurred.

        Paulo Nunes (Inactive) made changes -
        Affects Version/s 5.3.3 [ 13484 ]
        Paulo Nunes (Inactive) made changes -
        Status Confirmed [ 10037 ] Closed [ 6 ]
        Resolution Invalid [ 6 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 64216 ] EZ* Development Workflow [ 85298 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 85298 ] EZEE Development Workflow [ 124102 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Paulo Nunes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: