Details
-
Bug
-
Resolution: Duplicate
-
High
-
None
-
5.4-dev
-
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
Issue Links
- relates to
-
EZP-23174 PDOException on ezpublish setup
- Closed