Details
-
Bug
-
Resolution: Invalid
-
High
-
5.4.7
-
None
Description
If you have an external MySQL Server and tries to clear legacy cache with the ezcache script in PROD environment, it will fail.
php ezpublish/console --env=prod ezpublish:legacy:script bin/php/ezcache.php --clear-all --expiry=now --purge --siteaccess=ezdemo_site_admin
[RuntimeException]
Database error
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE [HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE [HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[PDOException]
SQLSTATE [HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
It seems that the ezcache is trying to connect to the localhost instead going to the external server as it should. This only happens in PROD.
This seems to be the same error described in EZP-23268.
Attachments
Issue Links
- relates to
-
EZP-23268 Composer install fails in a cluster environment if we have a database in a different host
- InputQ