Mautic Community Forums

Error while running console command

Hi Guys,



I’m new here and trying to setup my first serious installation of Mautic. But i’m running into some errors and don’t know how to trace and fix the issues. Can anyone help me out? The error from the log file shows this code.

Code:
[2017-03-13 15:42:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:messages:send` [] [] [2017-03-13 15:45:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:segments:update` [] [] [2017-03-13 15:50:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:rebuild` [] [] [2017-03-13 15:50:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:trigger` [] [] [2017-03-13 15:57:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:messages:send` [] [] [2017-03-13 16:00:12] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:segments:update` [] [] [2017-03-13 16:05:01] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:rebuild` [] [] [2017-03-13 16:05:01] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:trigger` [] []

Kind regards,

Roald Joosen

Hi Guys,

I’m new here and trying to setup my first serious installation of Mautic. But i’m running into some errors and don’t know how to trace and fix the issues. Can anyone help me out? The error from the log file shows this code.

[2017-03-13 15:42:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:messages:send` [] []
[2017-03-13 15:45:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:segments:update` [] []
[2017-03-13 15:50:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:rebuild` [] []
[2017-03-13 15:50:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:trigger` [] []
[2017-03-13 15:57:02] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:messages:send` [] []
[2017-03-13 16:00:12] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:segments:update` [] []
[2017-03-13 16:05:01] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:rebuild` [] []
[2017-03-13 16:05:01] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:trigger` [] []

Kind regards,

Roald Joosen

So the issue is fixed… Simple mistake:

I didn’t use the full path /paas/c0000/www/app/console but used /www/app/console

Where exactly were you not using the full path RobotJoosen? I’m running into the same problem, but just after an upgrade to the latest (2.10.0). I wasn’t running into this problem before and I haven’t changed any file paths.

Im having the same issue and I am running with full paths, I am running a local dev env under MAMP pro on Mac.

[2017-09-13 12:44:30] mautic.NOTICE: DoctrineDBALExceptionConnectionException: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory (uncaught exception) at /Applications/MAMP/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command mautic:campaigns:trigger [] []

command Im running from the command line: php /Applications/MAMP/htdocs/mautic/app/console mautic:campaigns:trigger
php: version PHP 7.0.22