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

Not able to run the setup wizard twice, causes PDO error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • None
    • 5.4-dev
    • Install
    • None
    • mariadb, nginx, php-fpm

    Description

      With current dev-master, it is not possible to run the setupwizard twice on the same vhost.

      How to reproduce

      1. run composer --no-interaction create-project --prefer-dist ezsystems/ezpublish-community ezp dev-master
      2. Run setupwizard
      3. Access frontpage
      4. Remove all files in docroot, and goto #1
      

      when you reach step #2 the second time, nginx will return "503 Service Unavailable"
      nginx log reveals:

      014/10/29 13:55:22 [error] 1225#0: *30 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
      Stack trace:
      #0 /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct('mysql:host=loca...', 'root', NULL, Array)
      #1 /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(45): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'root', NULL, Array)
      #2 /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(359): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'root', NULL, Array)
      #3 /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(428): Doctrine\DBAL\Connection->connect()
      #4 /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(388): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
      #5 /var/www/vendor/doctrine/dbal/lib/Doctrin" while reading response header from upstream, client: 10.127.40.40, server: %host%, request: "GET /ezsetup HTTP/1.1", upstream: "fastcgi://172.17.0.40:9000", host: "foo.bar.local:8080"
      
      

      Workaround:
      Remove is_logged_in and eZSESSID cookies before starting the setupwizard the second time

      Attachments

        Activity

          People

            Unassigned Unassigned
            vidar.langseid@ibexa.co Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: