Request Callback
×

Request Callback

Leave your details below and one of our representatives will be back to you shorty

Error: Contact form not found.

An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused (500 Internal Server Error)

Symfony Exception

An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused

Exceptions 3

Doctrine\DBAL\Exception\ ConnectionException

  1.             case 1370:
  2.             case 1429:
  3.             case 2002:
  4.             case 2005:
  5.             case 2054:
  6.                 return new ConnectionException($exception$query);
  7.             case 2006:
  8.                 return new ConnectionLost($exception$query);
  9.             case 1048:
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  $this->exceptionConverter->convert($driverException$query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
  1.     }
  2.     /** @internal */
  3.     final public function convertException(Driver\Exception $e): DriverException
  4.     {
  5.         return $this->handleDriverException($enull);
  6.     }
  7.     /**
  8.      * @param array<int, mixed>|array<string, mixed>                               $params
  9.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
  1.         }
  2.         try {
  3.             $this->_conn $this->_driver->connect($this->params);
  4.         } catch (Driver\Exception $e) {
  5.             throw $this->convertException($e);
  6.         }
  7.         if ($this->autoCommit === false) {
  8.             $this->beginTransaction();
  9.         }
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         return $this->_conn;
  7.     }
  8.     /** @return resource|object */
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function beginTransaction()
  5.     {
  6.         $connection $this->getWrappedConnection();
  7.         ++$this->transactionNestingLevel;
  8.         $logger $this->_config->getSQLLogger();
  1.         // Now we need a commit order to maintain referential integrity
  2.         $commitOrder $this->getCommitOrder();
  3.         $conn $this->em->getConnection();
  4.         $conn->beginTransaction();
  5.         try {
  6.             // Collection deletions (deletions of complete collections)
  7.             foreach ($this->collectionDeletions as $collectionToDelete) {
  8.                 // Deferred explicit tracked collections can be removed only when owning relation was persisted
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
  1.     public function flush($entity null)
  2.     {
  3.         $this->initializer010ab && ($this->initializer010ab->__invoke($valueHoldera79c3$this'flush', array('entity' => $entity), $this->initializer010ab) || 1) && $this->valueHoldera79c3 $valueHoldera79c3;
  4.         return $this->valueHoldera79c3->flush($entity);
  5.     }
  6.     public function find($className$id$lockMode null$lockVersion null)
  7.     {
  8.         $this->initializer010ab && ($this->initializer010ab->__invoke($valueHoldera79c3$this'find', array('className' => $className'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer010ab) || 1) && $this->valueHoldera79c3 $valueHoldera79c3;
EntityManager_9a5be93->flush() in /home/demo/public_html/src/Service/System/MonologDBHandler.php (line 186)
  1.             $logEntry->setUserId(($this->user==null ? -$this->user));
  2.             $logEntry->setEnv($this->env);
  3.             $logEntry->setAction(substr($_SERVER['REQUEST_URI']??''0999));
  4.             $logEntry->setIp($ipAddress);
  5.             $this->em->persist($logEntry);
  6.             $this->em->flush();
  7.         }
  8.     }
  9.     private function initialize(){
  10.         $this->initialized true;
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function critical($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::CRITICAL, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the ALERT level.
  10.      *
  1.     {
  2.         if (null !== $this->logger) {
  3.             if (null !== $logLevel) {
  4.                 $this->logger->log($logLevel$message, ['exception' => $exception]);
  5.             } elseif (!$exception instanceof HttpExceptionInterface || $exception->getStatusCode() >= 500) {
  6.                 $this->logger->critical($message, ['exception' => $exception]);
  7.             } else {
  8.                 $this->logger->error($message, ['exception' => $exception]);
  9.             }
  10.         }
  11.     }
  1.             break;
  2.         }
  3.         $e FlattenException::createFromThrowable($throwable);
  4.         $this->logException($throwablesprintf('Uncaught PHP Exception %s: "%s" at %s line %s'$e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()), $logLevel);
  5.     }
  6.     public function onKernelException(ExceptionEvent $event)
  7.     {
  8.         if (null === $this->controller) {
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /home/demo/public_html/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 607)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(ConnectionException))

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000] [2002] Connection refused

  1.         } else {
  2.             $code     $exception->getCode();
  3.             $sqlState null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState$code$exception);
  6.     }
  7. }
  1.                 $params['user'] ?? '',
  2.                 $params['password'] ?? '',
  3.                 $driverOptions,
  4.             );
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.         return new Connection($pdo);
  9.     }
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.         array $params
  2.     ) {
  3.         $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->logger,
  7.         );
  8.     }
  9.     /**
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.     }
  2.     public function connect(array $params): Connection
  3.     {
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->debugDataHolder,
  7.             $this->stopwatch,
  8.             $this->connectionName
  9.         );
  10.     }
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         return $this->_conn;
  7.     }
  8.     /** @return resource|object */
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function beginTransaction()
  5.     {
  6.         $connection $this->getWrappedConnection();
  7.         ++$this->transactionNestingLevel;
  8.         $logger $this->_config->getSQLLogger();
  1.         // Now we need a commit order to maintain referential integrity
  2.         $commitOrder $this->getCommitOrder();
  3.         $conn $this->em->getConnection();
  4.         $conn->beginTransaction();
  5.         try {
  6.             // Collection deletions (deletions of complete collections)
  7.             foreach ($this->collectionDeletions as $collectionToDelete) {
  8.                 // Deferred explicit tracked collections can be removed only when owning relation was persisted
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
  1.     public function flush($entity null)
  2.     {
  3.         $this->initializer010ab && ($this->initializer010ab->__invoke($valueHoldera79c3$this'flush', array('entity' => $entity), $this->initializer010ab) || 1) && $this->valueHoldera79c3 $valueHoldera79c3;
  4.         return $this->valueHoldera79c3->flush($entity);
  5.     }
  6.     public function find($className$id$lockMode null$lockVersion null)
  7.     {
  8.         $this->initializer010ab && ($this->initializer010ab->__invoke($valueHoldera79c3$this'find', array('className' => $className'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer010ab) || 1) && $this->valueHoldera79c3 $valueHoldera79c3;
EntityManager_9a5be93->flush() in /home/demo/public_html/src/Service/System/MonologDBHandler.php (line 186)
  1.             $logEntry->setUserId(($this->user==null ? -$this->user));
  2.             $logEntry->setEnv($this->env);
  3.             $logEntry->setAction(substr($_SERVER['REQUEST_URI']??''0999));
  4.             $logEntry->setIp($ipAddress);
  5.             $this->em->persist($logEntry);
  6.             $this->em->flush();
  7.         }
  8.     }
  9.     private function initialize(){
  10.         $this->initialized true;
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function critical($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::CRITICAL, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the ALERT level.
  10.      *
  1.     {
  2.         if (null !== $this->logger) {
  3.             if (null !== $logLevel) {
  4.                 $this->logger->log($logLevel$message, ['exception' => $exception]);
  5.             } elseif (!$exception instanceof HttpExceptionInterface || $exception->getStatusCode() >= 500) {
  6.                 $this->logger->critical($message, ['exception' => $exception]);
  7.             } else {
  8.                 $this->logger->error($message, ['exception' => $exception]);
  9.             }
  10.         }
  11.     }
  1.             break;
  2.         }
  3.         $e FlattenException::createFromThrowable($throwable);
  4.         $this->logException($throwablesprintf('Uncaught PHP Exception %s: "%s" at %s line %s'$e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()), $logLevel);
  5.     }
  6.     public function onKernelException(ExceptionEvent $event)
  7.     {
  8.         if (null === $this->controller) {
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /home/demo/public_html/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 607)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(ConnectionException))

PDOException

SQLSTATE[HY000] [2002] Connection refused

  1.         $safeParams $params;
  2.         unset($safeParams['password'], $safeParams['url']);
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($safeParams),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  1.         $safeParams $params;
  2.         unset($safeParams['password'], $safeParams['url']);
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($safeParams),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.         array $params
  2.     ) {
  3.         $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->logger,
  7.         );
  8.     }
  9.     /**
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.     }
  2.     public function connect(array $params): Connection
  3.     {
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->debugDataHolder,
  7.             $this->stopwatch,
  8.             $this->connectionName
  9.         );
  10.     }
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         return $this->_conn;
  7.     }
  8.     /** @return resource|object */
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function beginTransaction()
  5.     {
  6.         $connection $this->getWrappedConnection();
  7.         ++$this->transactionNestingLevel;
  8.         $logger $this->_config->getSQLLogger();
  1.         // Now we need a commit order to maintain referential integrity
  2.         $commitOrder $this->getCommitOrder();
  3.         $conn $this->em->getConnection();
  4.         $conn->beginTransaction();
  5.         try {
  6.             // Collection deletions (deletions of complete collections)
  7.             foreach ($this->collectionDeletions as $collectionToDelete) {
  8.                 // Deferred explicit tracked collections can be removed only when owning relation was persisted
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
  1.     public function flush($entity null)
  2.     {
  3.         $this->initializer010ab && ($this->initializer010ab->__invoke($valueHoldera79c3$this'flush', array('entity' => $entity), $this->initializer010ab) || 1) && $this->valueHoldera79c3 $valueHoldera79c3;
  4.         return $this->valueHoldera79c3->flush($entity);
  5.     }
  6.     public function find($className$id$lockMode null$lockVersion null)
  7.     {
  8.         $this->initializer010ab && ($this->initializer010ab->__invoke($valueHoldera79c3$this'find', array('className' => $className'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer010ab) || 1) && $this->valueHoldera79c3 $valueHoldera79c3;
EntityManager_9a5be93->flush() in /home/demo/public_html/src/Service/System/MonologDBHandler.php (line 186)
  1.             $logEntry->setUserId(($this->user==null ? -$this->user));
  2.             $logEntry->setEnv($this->env);
  3.             $logEntry->setAction(substr($_SERVER['REQUEST_URI']??''0999));
  4.             $logEntry->setIp($ipAddress);
  5.             $this->em->persist($logEntry);
  6.             $this->em->flush();
  7.         }
  8.     }
  9.     private function initialize(){
  10.         $this->initialized true;
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function critical($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::CRITICAL, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the ALERT level.
  10.      *
  1.     {
  2.         if (null !== $this->logger) {
  3.             if (null !== $logLevel) {
  4.                 $this->logger->log($logLevel$message, ['exception' => $exception]);
  5.             } elseif (!$exception instanceof HttpExceptionInterface || $exception->getStatusCode() >= 500) {
  6.                 $this->logger->critical($message, ['exception' => $exception]);
  7.             } else {
  8.                 $this->logger->error($message, ['exception' => $exception]);
  9.             }
  10.         }
  11.     }
  1.             break;
  2.         }
  3.         $e FlattenException::createFromThrowable($throwable);
  4.         $this->logException($throwablesprintf('Uncaught PHP Exception %s: "%s" at %s line %s'$e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()), $logLevel);
  5.     }
  6.     public function onKernelException(ExceptionEvent $event)
  7.     {
  8.         if (null === $this->controller) {
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /home/demo/public_html/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 607)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(ConnectionException))

Stack Traces 3

[3/3] ConnectionException
Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused

  at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101
  at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(object(Exception), null)
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1935)
  at Doctrine\DBAL\Connection->handleDriverException(object(Exception), null)
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1884)
  at Doctrine\DBAL\Connection->convertException(object(Exception))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:377)
  at Doctrine\DBAL\Connection->connect()
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1652)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1347)
  at Doctrine\DBAL\Connection->beginTransaction()
     (/home/demo/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:415)
  at Doctrine\ORM\UnitOfWork->commit(null)
     (/home/demo/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:403)
  at Doctrine\ORM\EntityManager->flush(null)
     (/home/demo/public_html/var/cache/dev/ContainerWOUvRuq/EntityManager_9a5be93.php:136)
  at ContainerWOUvRuq\EntityManager_9a5be93->flush()
     (/home/demo/public_html/src/Service/System/MonologDBHandler.php:186)
  at App\Service\System\MonologDBHandler->write(array('message' => 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', 'context' => array('exception' => object(ConnectionException)), 'level' => 500, 'level_name' => 'CRITICAL', 'channel' => 'request', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-11-21T09:16:58.161681+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 {"exception":"[object] (Doctrine\\\\DBAL\\\\Exception\\\\ConnectionException(code: 2002): An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\\n[previous exception] [object] (Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\\n[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []'))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', 'context' => array('exception' => object(ConnectionException)), 'level' => 500, 'level_name' => 'CRITICAL', 'channel' => 'request', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-11-21T09:16:58.161681+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 {"exception":"[object] (Doctrine\\\\DBAL\\\\Exception\\\\ConnectionException(code: 2002): An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\\n[previous exception] [object] (Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\\n[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []'))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord(500, 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', array('exception' => object(ConnectionException)))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Logger.php:663)
  at Monolog\Logger->critical('Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', array('exception' => object(ConnectionException)))
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:164)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logException(object(ConnectionException), 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', null)
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:78)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/demo/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/demo/public_html/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(ConnectionException), object(Request), 1)
     (/home/demo/public_html/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(ConnectionException), object(Request))
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:131)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(ConnectionException))
     (/home/demo/public_html/vendor/symfony/error-handler/ErrorHandler.php:607)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(ConnectionException))                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [2002] Connection refused

  at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28
  at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:40)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Logging/Driver.php:34)
  at Doctrine\DBAL\Logging\Driver->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('driver' => 'pdo_mysql', 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'demo_user', 'password' => '(-ab77~FTJMc', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'demo_backoffice', 'serverVersion' => '5.7', 'charset' => 'utf8mb4'))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:375)
  at Doctrine\DBAL\Connection->connect()
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1652)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1347)
  at Doctrine\DBAL\Connection->beginTransaction()
     (/home/demo/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:415)
  at Doctrine\ORM\UnitOfWork->commit(null)
     (/home/demo/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:403)
  at Doctrine\ORM\EntityManager->flush(null)
     (/home/demo/public_html/var/cache/dev/ContainerWOUvRuq/EntityManager_9a5be93.php:136)
  at ContainerWOUvRuq\EntityManager_9a5be93->flush()
     (/home/demo/public_html/src/Service/System/MonologDBHandler.php:186)
  at App\Service\System\MonologDBHandler->write(array('message' => 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', 'context' => array('exception' => object(ConnectionException)), 'level' => 500, 'level_name' => 'CRITICAL', 'channel' => 'request', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-11-21T09:16:58.161681+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 {"exception":"[object] (Doctrine\\\\DBAL\\\\Exception\\\\ConnectionException(code: 2002): An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\\n[previous exception] [object] (Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\\n[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []'))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', 'context' => array('exception' => object(ConnectionException)), 'level' => 500, 'level_name' => 'CRITICAL', 'channel' => 'request', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-11-21T09:16:58.161681+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 {"exception":"[object] (Doctrine\\\\DBAL\\\\Exception\\\\ConnectionException(code: 2002): An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\\n[previous exception] [object] (Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\\n[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []'))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord(500, 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', array('exception' => object(ConnectionException)))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Logger.php:663)
  at Monolog\Logger->critical('Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', array('exception' => object(ConnectionException)))
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:164)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logException(object(ConnectionException), 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', null)
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:78)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/demo/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/demo/public_html/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(ConnectionException), object(Request), 1)
     (/home/demo/public_html/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(ConnectionException), object(Request))
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:131)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(ConnectionException))
     (/home/demo/public_html/vendor/symfony/error-handler/ErrorHandler.php:607)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(ConnectionException))                
[1/3] PDOException
PDOException:
SQLSTATE[HY000] [2002] Connection refused

  at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33
  at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=demo_backoffice;charset=utf8mb4;', 'demo_user', object(SensitiveParameterValue), array())
     (/home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Logging/Driver.php:34)
  at Doctrine\DBAL\Logging\Driver->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (/home/demo/public_html/vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('driver' => 'pdo_mysql', 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'demo_user', 'password' => '(-ab77~FTJMc', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'demo_backoffice', 'serverVersion' => '5.7', 'charset' => 'utf8mb4'))
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:375)
  at Doctrine\DBAL\Connection->connect()
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1652)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (/home/demo/public_html/vendor/doctrine/dbal/src/Connection.php:1347)
  at Doctrine\DBAL\Connection->beginTransaction()
     (/home/demo/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:415)
  at Doctrine\ORM\UnitOfWork->commit(null)
     (/home/demo/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:403)
  at Doctrine\ORM\EntityManager->flush(null)
     (/home/demo/public_html/var/cache/dev/ContainerWOUvRuq/EntityManager_9a5be93.php:136)
  at ContainerWOUvRuq\EntityManager_9a5be93->flush()
     (/home/demo/public_html/src/Service/System/MonologDBHandler.php:186)
  at App\Service\System\MonologDBHandler->write(array('message' => 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', 'context' => array('exception' => object(ConnectionException)), 'level' => 500, 'level_name' => 'CRITICAL', 'channel' => 'request', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-11-21T09:16:58.161681+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 {"exception":"[object] (Doctrine\\\\DBAL\\\\Exception\\\\ConnectionException(code: 2002): An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\\n[previous exception] [object] (Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\\n[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []'))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', 'context' => array('exception' => object(ConnectionException)), 'level' => 500, 'level_name' => 'CRITICAL', 'channel' => 'request', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-11-21T09:16:58.161681+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 {"exception":"[object] (Doctrine\\\\DBAL\\\\Exception\\\\ConnectionException(code: 2002): An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\\n[previous exception] [object] (Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\\n[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []'))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord(500, 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', array('exception' => object(ConnectionException)))
     (/home/demo/public_html/vendor/monolog/monolog/src/Monolog/Logger.php:663)
  at Monolog\Logger->critical('Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', array('exception' => object(ConnectionException)))
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:164)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logException(object(ConnectionException), 'Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /home/demo/public_html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101', null)
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:78)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/demo/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/demo/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/demo/public_html/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(ConnectionException), object(Request), 1)
     (/home/demo/public_html/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(ConnectionException), object(Request))
     (/home/demo/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:131)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(ConnectionException))
     (/home/demo/public_html/vendor/symfony/error-handler/ErrorHandler.php:607)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(ConnectionException))                
empty message

empty message

empty message

empty message

empty message