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

Improved error message when upgrading eZP LS to eZ Publish 5 with wrong DB settings

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 5.3
    • Database related, Upgrading
    • None

    Description

      I am currently trying to perform an upgrade of an eZ Publish 4 project to eZ Publish 5. The eZ4 project is up to date with the current Legacy master branch from github. These are the steps I performed, following the installation instructions at Github:

      $ git clone https://github.com/ezsystems/ezpublish-community.git cms
      $ cp -R /path/to/old/ez cms/ezpublish_legacy
      $ rm -rf cms/ezpublish/legacy/vendor
      $ cd cms
      $ php -dmemory_limit=-1 ../bin/composer.phar install --prefer-dist
      

      This got me the following error:

      [PDOException]
      SQLSTATE[HY000] [2002] No such file or directory
      

      The same occurs when executing

      php ezpublish/console ezpublish:configure --env=prod <package> <admin_siteaccess>
      

      After some heavy debugging, I became aware that the settings from app/config/ezpublish_setup.yml are being used, and thought it would be nice if the error message would hint me to this instead of giving me just a generic error message.

      You can find my proposal for this enhancement here: https://github.com/ezsystems/ezpublish-kernel/pull/709

      Attachments

        Activity

          People

            Unassigned Unassigned
            jgamez jgamez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: