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

Graphic installer fails after update if you don't have a local MySQL Server

    XMLWordPrintable

Details

    Description

      If you try to install eZ Publish after executing the update steps, the Graphic installer will fail since you don't have a local MySQL Server.

      Since you will execute the graphical installer and can give the Server address there, this shouldn't happen

      Steps to reproduce

      Update the uninstalled eZP 5.4.0 according to the instructions:

      The steps above should look somewhat like:

      composer update --no-dev --prefer-dist --no-scripts ezsystems/ezpublish-legacy-installer
      
      composer remove --no-update --dev behat/mink-selenium-driver
      composer require --no-update symfony/symfony:~2.7.0 sensio/distribution-bundle:~3.0
      
      composer update --no-dev --prefer-dist
      

      Execute the Graphic installer. You will get a fatal error and the installer won't proceed and you will see the error below from the log file:

      Unable to find source-code formatter for language: log. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      [2016-10-10 13:41:21] request.CRITICAL:
      
      Uncaught PHP Exception RuntimeException: "Database error" at
      eZ/Publish/Core/Persistence/Legacy/Content/Gateway/ExceptionConversion.php line 316
      
      {"exception": "[object] (RuntimeException(code: 0):
      Database error at eZ/Publish/Core/Persistence/Legacy/Content/Gateway/ExceptionConversion.php:316,
      
      Doctrine\\DBAL\\Exception\\ConnectionException(code: 0):
      An exception occured in driver: SQLSTATE[HY000] [2002]
      No such file or directory at doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103,
      
      Doctrine\\DBAL\\Driver\\PDOException(code: 2002): SQLSTATE[HY000] [2002]
      No such file or directory at /ez_inst/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:47,
      
      PDOException(code: 2002):
      SQLSTATE[HY000] [2002] No such file or directory at doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43)"}

      Attachments

        Activity

          People

            Unassigned Unassigned
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: