PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40 Stack trace: #0 /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(40): PDO->__construct() #1 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection() #3 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(49): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection() #4 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #5 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #7 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1064): call_user_func() #8 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(495): Illuminate\Database\Connection->getPdo() #9 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database\{closure}() #10 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(784): Illuminate\Database\Connection->runQueryCallback() #11 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(763): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #12 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(674): Illuminate\Database\Connection->handleQueryException() #13 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(490): Illuminate\Database\Connection->run() #14 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(454): Illuminate\Database\Connection->statement() #15 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #16 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3028): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #17 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1657): Illuminate\Database\Query\Builder->insertGetId() #18 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1188): Illuminate\Database\Eloquent\Builder->__call() #19 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1153): Illuminate\Database\Eloquent\Model->insertAndSetId() #20 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(994): Illuminate\Database\Eloquent\Model->performInsert() #21 /var/www/html/IDP/app/Http/Controllers/Email/EmailTransacionalController.php(29): Illuminate\Database\Eloquent\Model->save() #22 /var/www/html/IDP/app/Exceptions/Handler.php(63): App\Http\Controllers\Email\EmailTransacionalController->emailTecnico() #23 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): App\Exceptions\Handler->render() #24 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Foundation\Http\Kernel->renderException() #25 /var/www/html/IDP/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle() #26 {main} Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 Stack trace: #0 /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(44): Doctrine\DBAL\Driver\PDO\Exception::new() #1 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection() #3 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(49): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection() #4 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #5 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #7 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1064): call_user_func() #8 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(495): Illuminate\Database\Connection->getPdo() #9 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database\{closure}() #10 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(784): Illuminate\Database\Connection->runQueryCallback() #11 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(763): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #12 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(674): Illuminate\Database\Connection->handleQueryException() #13 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(490): Illuminate\Database\Connection->run() #14 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(454): Illuminate\Database\Connection->statement() #15 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #16 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3028): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #17 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1657): Illuminate\Database\Query\Builder->insertGetId() #18 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1188): Illuminate\Database\Eloquent\Builder->__call() #19 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1153): Illuminate\Database\Eloquent\Model->insertAndSetId() #20 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(994): Illuminate\Database\Eloquent\Model->performInsert() #21 /var/www/html/IDP/app/Http/Controllers/Email/EmailTransacionalController.php(29): Illuminate\Database\Eloquent\Model->save() #22 /var/www/html/IDP/app/Exceptions/Handler.php(63): App\Http\Controllers\Email\EmailTransacionalController->emailTecnico() #23 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): App\Exceptions\Handler->render() #24 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Foundation\Http\Kernel->renderException() #25 /var/www/html/IDP/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle() #26 {main} Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Connection refused (SQL: insert into `logenvioemail` (`subject`, `name`, `email`, `body`, `updated_at`, `created_at`) values (Erro, Jonas, jonas@imovelp.com.br, PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40 Stack trace: #0 /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(40): PDO->__construct() #1 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection() #3 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(49): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection() #4 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #5 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #7 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1064): call_user_func() #8 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(495): Illuminate\Database\Connection->getPdo() #9 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database\{closure}() #10 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(784): Illuminate\Database\Connection->runQueryCallback() #11 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(763): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #12 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(674): Illuminate\Database\Connection->handleQueryException() #13 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(490): Illuminate\Database\Connection->run() #14 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(454): Illuminate\Database\Connection->statement() #15 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #16 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3028): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #17 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1657): Illuminate\Database\Query\Builder->insertGetId() #18 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1188): Illuminate\Database\Eloquent\Builder->__call() #19 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1153): Illuminate\Database\Eloquent\Model->insertAndSetId() #20 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(994): Illuminate\Database\Eloquent\Model->performInsert() #21 /var/www/html/IDP/app/Http/Controllers/Email/EmailTransacionalController.php(29): Illuminate\Database\Eloquent\Model->save() #22 /var/www/html/IDP/app/Exceptions/Handler.php(63): App\Http\Controllers\Email\EmailTransacionalController->emailTecnico() #23 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(51): App\Exceptions\Handler->render() #24 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(172): Illuminate\Routing\Pipeline->handleException() #25 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\Pipeline\Pipeline->then() #27 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #28 /var/www/html/IDP/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle() #29 {main} Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 Stack trace: #0 /var/www/html/IDP/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(44): Doctrine\DBAL\Driver\PDO\Exception::new() #1 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection() #3 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(49): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection() #4 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #5 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #7 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1064): call_user_func() #8 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(495): Illuminate\Database\Connection->getPdo() #9 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database\{closure}() #10 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(784): Illuminate\Database\Connection->runQueryCallback() #11 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(763): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #12 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(674): Illuminate\Database\Connection->handleQueryException() #13 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(490): Illuminate\Database\Connection->run() #14 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(454): Illuminate\Database\Connection->statement() #15 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #16 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3028): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #17 /var/www/html/IDP/vendor/laravel/framewor, 2025-08-30 04:00:08, 2025-08-30 04:00:08)) in /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712 Stack trace: #0 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(784): Illuminate\Database\Connection->runQueryCallback() #1 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(763): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #2 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(674): Illuminate\Database\Connection->handleQueryException() #3 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(490): Illuminate\Database\Connection->run() #4 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Connection.php(454): Illuminate\Database\Connection->statement() #5 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #6 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3028): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #7 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1657): Illuminate\Database\Query\Builder->insertGetId() #8 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1188): Illuminate\Database\Eloquent\Builder->__call() #9 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1153): Illuminate\Database\Eloquent\Model->insertAndSetId() #10 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(994): Illuminate\Database\Eloquent\Model->performInsert() #11 /var/www/html/IDP/app/Http/Controllers/Email/EmailTransacionalController.php(29): Illuminate\Database\Eloquent\Model->save() #12 /var/www/html/IDP/app/Exceptions/Handler.php(63): App\Http\Controllers\Email\EmailTransacionalController->emailTecnico() #13 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): App\Exceptions\Handler->render() #14 /var/www/html/IDP/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Foundation\Http\Kernel->renderException() #15 /var/www/html/IDP/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle() #16 {main}