http://pre.ofertador.reluzca.es/

Exceptions

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.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1884)
  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
in vendor/doctrine/dbal/src/Connection.php -> convertException (line 377)
  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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
in vendor/doctrine/dbal/src/Connection.php -> getDatabasePlatformVersion (line 408)
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
in vendor/doctrine/dbal/src/Connection.php -> detectDatabasePlatform (line 316)
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.         }
  9.         return $this->platform;
  10.     }
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.         // Create & assign an appropriate ID generator instance
  2.         switch ($class->generatorType) {
  3.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  4.                 $sequenceName null;
  5.                 $fieldName    $class->identifier $class->getSingleIdentifierFieldName() : null;
  6.                 $platform     $this->getTargetPlatform();
  7.                 // Platforms that do not have native IDENTITY support need a sequence to emulate this behaviour.
  8.                 /** @psalm-suppress UndefinedClass, InvalidClass */
  9.                 if (! $platform instanceof MySQLPlatform && ! $platform instanceof SqlitePlatform && ! $platform instanceof SQLServerPlatform && $platform->usesSequenceEmulatedIdentityColumns()) {
  10.                     Deprecation::trigger(
  1.             throw MappingException::reflectionFailure($class->getName(), $e);
  2.         }
  3.         // Complete id generator mapping when the generator was declared/added in this class
  4.         if ($class->identifier && (! $parent || ! $parent->identifier)) {
  5.             $this->completeIdGeneratorMapping($class);
  6.         }
  7.         if (! $class->isMappedSuperclass) {
  8.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  9.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @psalm-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
EntityManager->getRepository() in src/Controller/BaseController.php (line 76)
  1.         $this->service $service;
  2.         $this->em $em;
  3.         $this->data = [];
  4.         $this->session->start();
  5.         $this->cargosSistemaRepo $this->em->getRepository(CargosSistema::class);
  6.         $this->feeMinimoRepo $this->em->getRepository(FeeMinimo::class);
  7.         $this->feesRepo $this->em->getRepository(Fees::class);
  8.         $this->mantenimientoRepo $this->em->getRepository(Mantenimiento::class);
  9.         $this->mwaminRepo $this->em->getRepository(Mwamin::class);
  10.         $this->porcentajesRepo $this->em->getRepository(Porcentajes::class);
  1.     {
  2.         include_once \dirname(__DIR__4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';
  3.         include_once \dirname(__DIR__4).'/src/Controller/BaseController.php';
  4.         include_once \dirname(__DIR__4).'/src/Controller/HomeController.php';
  5.         $container->services['App\\Controller\\HomeController'] = $instance = new \App\Controller\HomeController(($container->services['request_stack'] ?? ($container->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())), ($container->privates['App\\Service\\MainService'] ?? $container->load('getMainServiceService')), ($container->services['doctrine.orm.default_entity_manager'] ?? $container->load('getDoctrine_Orm_DefaultEntityManagerService')));
  6.         $instance->setContainer(($container->privates['.service_locator.mx0UMmY'] ?? $container->load('get_ServiceLocator_Mx0UMmYService'))->withContext('App\\Controller\\HomeController'$container));
  7.         return $instance;
  8.     }
  1.             $file .= '.php';
  2.         }
  3.         $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4.         return class_exists($classfalse) ? $class::do($this$lazyLoad) : $service;
  5.     }
  6.     /**
  7.      * Gets the public '.container.private.profiler' shared service.
  8.      *
  1.         $this->loading[$id] = true;
  2.         try {
  3.             if (isset($this->fileMap[$id])) {
  4.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->load($this->fileMap[$id]);
  5.             } elseif (isset($this->methodMap[$id])) {
  6.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->{$this->methodMap[$id]}();
  7.             }
  8.         } catch (\Exception $e) {
  9.             unset($this->services[$id]);
  1.      */
  2.     public function get(string $idint $invalidBehavior /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id $this : ($this->factories[$id] ?? [$this'make'])($id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     protected function instantiateController(string $class)
  2.     {
  3.         $class ltrim($class'\\');
  4.         if ($this->container->has($class)) {
  5.             return $this->container->get($class);
  6.         }
  7.         try {
  8.             return parent::instantiateController($class);
  9.         } catch (\Error $e) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function instantiateController(string $class): object
  5.     {
  6.         $controller parent::instantiateController($class);
  7.         if ($controller instanceof ContainerAwareInterface) {
  8.             $controller->setContainer($this->container);
  9.         }
  10.         if ($controller instanceof AbstractController) {
  1.         }
  2.         [$class$method] = explode('::'$controller2);
  3.         try {
  4.             $controller = [$this->instantiateController($class), $method];
  5.         } catch (\Error|\LogicException $e) {
  6.             try {
  7.                 if ((new \ReflectionMethod($class$method))->isStatic()) {
  8.                     return $class.'::'.$method;
  9.                 }
  1.         if (=== substr_count($controller':')) {
  2.             $controller str_replace(':''::'$controller);
  3.             trigger_deprecation('symfony/http-kernel''5.1''Referencing controllers with a single colon is deprecated. Use "%s" instead.'$controller);
  4.         }
  5.         return parent::createController($controller);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.         if (\function_exists($controller)) {
  2.             return $controller;
  3.         }
  4.         try {
  5.             $callable $this->createController($controller);
  6.         } catch (\InvalidArgumentException $e) {
  7.             throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable: '$request->getPathInfo()).$e->getMessage(), 0$e);
  8.         }
  9.         if (!\is_callable($callable)) {
  1.     public function getController(Request $request)
  2.     {
  3.         $e $this->stopwatch->start('controller.get_callable');
  4.         try {
  5.             return $this->resolver->getController($request);
  6.         } finally {
  7.             $e->stop();
  8.         }
  9.     }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 146)
  1.         if ($event->hasResponse()) {
  2.             return $this->filterResponse($event->getResponse(), $request$type);
  3.         }
  4.         // load controller
  5.         if (false === $controller $this->resolver->getController($request)) {
  6.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  7.         }
  8.         $event = new ControllerEvent($this$controller$request$type);
  9.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/pre.ofertador.reluzca.es/httpdocs/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

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.     }
  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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
in vendor/doctrine/dbal/src/Connection.php -> getDatabasePlatformVersion (line 408)
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
in vendor/doctrine/dbal/src/Connection.php -> detectDatabasePlatform (line 316)
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.         }
  9.         return $this->platform;
  10.     }
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.         // Create & assign an appropriate ID generator instance
  2.         switch ($class->generatorType) {
  3.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  4.                 $sequenceName null;
  5.                 $fieldName    $class->identifier $class->getSingleIdentifierFieldName() : null;
  6.                 $platform     $this->getTargetPlatform();
  7.                 // Platforms that do not have native IDENTITY support need a sequence to emulate this behaviour.
  8.                 /** @psalm-suppress UndefinedClass, InvalidClass */
  9.                 if (! $platform instanceof MySQLPlatform && ! $platform instanceof SqlitePlatform && ! $platform instanceof SQLServerPlatform && $platform->usesSequenceEmulatedIdentityColumns()) {
  10.                     Deprecation::trigger(
  1.             throw MappingException::reflectionFailure($class->getName(), $e);
  2.         }
  3.         // Complete id generator mapping when the generator was declared/added in this class
  4.         if ($class->identifier && (! $parent || ! $parent->identifier)) {
  5.             $this->completeIdGeneratorMapping($class);
  6.         }
  7.         if (! $class->isMappedSuperclass) {
  8.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  9.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @psalm-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
EntityManager->getRepository() in src/Controller/BaseController.php (line 76)
  1.         $this->service $service;
  2.         $this->em $em;
  3.         $this->data = [];
  4.         $this->session->start();
  5.         $this->cargosSistemaRepo $this->em->getRepository(CargosSistema::class);
  6.         $this->feeMinimoRepo $this->em->getRepository(FeeMinimo::class);
  7.         $this->feesRepo $this->em->getRepository(Fees::class);
  8.         $this->mantenimientoRepo $this->em->getRepository(Mantenimiento::class);
  9.         $this->mwaminRepo $this->em->getRepository(Mwamin::class);
  10.         $this->porcentajesRepo $this->em->getRepository(Porcentajes::class);
  1.     {
  2.         include_once \dirname(__DIR__4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';
  3.         include_once \dirname(__DIR__4).'/src/Controller/BaseController.php';
  4.         include_once \dirname(__DIR__4).'/src/Controller/HomeController.php';
  5.         $container->services['App\\Controller\\HomeController'] = $instance = new \App\Controller\HomeController(($container->services['request_stack'] ?? ($container->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())), ($container->privates['App\\Service\\MainService'] ?? $container->load('getMainServiceService')), ($container->services['doctrine.orm.default_entity_manager'] ?? $container->load('getDoctrine_Orm_DefaultEntityManagerService')));
  6.         $instance->setContainer(($container->privates['.service_locator.mx0UMmY'] ?? $container->load('get_ServiceLocator_Mx0UMmYService'))->withContext('App\\Controller\\HomeController'$container));
  7.         return $instance;
  8.     }
  1.             $file .= '.php';
  2.         }
  3.         $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4.         return class_exists($classfalse) ? $class::do($this$lazyLoad) : $service;
  5.     }
  6.     /**
  7.      * Gets the public '.container.private.profiler' shared service.
  8.      *
  1.         $this->loading[$id] = true;
  2.         try {
  3.             if (isset($this->fileMap[$id])) {
  4.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->load($this->fileMap[$id]);
  5.             } elseif (isset($this->methodMap[$id])) {
  6.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->{$this->methodMap[$id]}();
  7.             }
  8.         } catch (\Exception $e) {
  9.             unset($this->services[$id]);
  1.      */
  2.     public function get(string $idint $invalidBehavior /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id $this : ($this->factories[$id] ?? [$this'make'])($id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     protected function instantiateController(string $class)
  2.     {
  3.         $class ltrim($class'\\');
  4.         if ($this->container->has($class)) {
  5.             return $this->container->get($class);
  6.         }
  7.         try {
  8.             return parent::instantiateController($class);
  9.         } catch (\Error $e) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function instantiateController(string $class): object
  5.     {
  6.         $controller parent::instantiateController($class);
  7.         if ($controller instanceof ContainerAwareInterface) {
  8.             $controller->setContainer($this->container);
  9.         }
  10.         if ($controller instanceof AbstractController) {
  1.         }
  2.         [$class$method] = explode('::'$controller2);
  3.         try {
  4.             $controller = [$this->instantiateController($class), $method];
  5.         } catch (\Error|\LogicException $e) {
  6.             try {
  7.                 if ((new \ReflectionMethod($class$method))->isStatic()) {
  8.                     return $class.'::'.$method;
  9.                 }
  1.         if (=== substr_count($controller':')) {
  2.             $controller str_replace(':''::'$controller);
  3.             trigger_deprecation('symfony/http-kernel''5.1''Referencing controllers with a single colon is deprecated. Use "%s" instead.'$controller);
  4.         }
  5.         return parent::createController($controller);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.         if (\function_exists($controller)) {
  2.             return $controller;
  3.         }
  4.         try {
  5.             $callable $this->createController($controller);
  6.         } catch (\InvalidArgumentException $e) {
  7.             throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable: '$request->getPathInfo()).$e->getMessage(), 0$e);
  8.         }
  9.         if (!\is_callable($callable)) {
  1.     public function getController(Request $request)
  2.     {
  3.         $e $this->stopwatch->start('controller.get_callable');
  4.         try {
  5.             return $this->resolver->getController($request);
  6.         } finally {
  7.             $e->stop();
  8.         }
  9.     }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 146)
  1.         if ($event->hasResponse()) {
  2.             return $this->filterResponse($event->getResponse(), $request$type);
  3.         }
  4.         // load controller
  5.         if (false === $controller $this->resolver->getController($request)) {
  6.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  7.         }
  8.         $event = new ControllerEvent($this$controller$request$type);
  9.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/pre.ofertador.reluzca.es/httpdocs/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

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.     }
  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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
in vendor/doctrine/dbal/src/Connection.php -> getDatabasePlatformVersion (line 408)
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
in vendor/doctrine/dbal/src/Connection.php -> detectDatabasePlatform (line 316)
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.         }
  9.         return $this->platform;
  10.     }
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.         // Create & assign an appropriate ID generator instance
  2.         switch ($class->generatorType) {
  3.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  4.                 $sequenceName null;
  5.                 $fieldName    $class->identifier $class->getSingleIdentifierFieldName() : null;
  6.                 $platform     $this->getTargetPlatform();
  7.                 // Platforms that do not have native IDENTITY support need a sequence to emulate this behaviour.
  8.                 /** @psalm-suppress UndefinedClass, InvalidClass */
  9.                 if (! $platform instanceof MySQLPlatform && ! $platform instanceof SqlitePlatform && ! $platform instanceof SQLServerPlatform && $platform->usesSequenceEmulatedIdentityColumns()) {
  10.                     Deprecation::trigger(
  1.             throw MappingException::reflectionFailure($class->getName(), $e);
  2.         }
  3.         // Complete id generator mapping when the generator was declared/added in this class
  4.         if ($class->identifier && (! $parent || ! $parent->identifier)) {
  5.             $this->completeIdGeneratorMapping($class);
  6.         }
  7.         if (! $class->isMappedSuperclass) {
  8.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  9.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @psalm-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
EntityManager->getRepository() in src/Controller/BaseController.php (line 76)
  1.         $this->service $service;
  2.         $this->em $em;
  3.         $this->data = [];
  4.         $this->session->start();
  5.         $this->cargosSistemaRepo $this->em->getRepository(CargosSistema::class);
  6.         $this->feeMinimoRepo $this->em->getRepository(FeeMinimo::class);
  7.         $this->feesRepo $this->em->getRepository(Fees::class);
  8.         $this->mantenimientoRepo $this->em->getRepository(Mantenimiento::class);
  9.         $this->mwaminRepo $this->em->getRepository(Mwamin::class);
  10.         $this->porcentajesRepo $this->em->getRepository(Porcentajes::class);
  1.     {
  2.         include_once \dirname(__DIR__4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';
  3.         include_once \dirname(__DIR__4).'/src/Controller/BaseController.php';
  4.         include_once \dirname(__DIR__4).'/src/Controller/HomeController.php';
  5.         $container->services['App\\Controller\\HomeController'] = $instance = new \App\Controller\HomeController(($container->services['request_stack'] ?? ($container->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())), ($container->privates['App\\Service\\MainService'] ?? $container->load('getMainServiceService')), ($container->services['doctrine.orm.default_entity_manager'] ?? $container->load('getDoctrine_Orm_DefaultEntityManagerService')));
  6.         $instance->setContainer(($container->privates['.service_locator.mx0UMmY'] ?? $container->load('get_ServiceLocator_Mx0UMmYService'))->withContext('App\\Controller\\HomeController'$container));
  7.         return $instance;
  8.     }
  1.             $file .= '.php';
  2.         }
  3.         $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4.         return class_exists($classfalse) ? $class::do($this$lazyLoad) : $service;
  5.     }
  6.     /**
  7.      * Gets the public '.container.private.profiler' shared service.
  8.      *
  1.         $this->loading[$id] = true;
  2.         try {
  3.             if (isset($this->fileMap[$id])) {
  4.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->load($this->fileMap[$id]);
  5.             } elseif (isset($this->methodMap[$id])) {
  6.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->{$this->methodMap[$id]}();
  7.             }
  8.         } catch (\Exception $e) {
  9.             unset($this->services[$id]);
  1.      */
  2.     public function get(string $idint $invalidBehavior /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id $this : ($this->factories[$id] ?? [$this'make'])($id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     protected function instantiateController(string $class)
  2.     {
  3.         $class ltrim($class'\\');
  4.         if ($this->container->has($class)) {
  5.             return $this->container->get($class);
  6.         }
  7.         try {
  8.             return parent::instantiateController($class);
  9.         } catch (\Error $e) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function instantiateController(string $class): object
  5.     {
  6.         $controller parent::instantiateController($class);
  7.         if ($controller instanceof ContainerAwareInterface) {
  8.             $controller->setContainer($this->container);
  9.         }
  10.         if ($controller instanceof AbstractController) {
  1.         }
  2.         [$class$method] = explode('::'$controller2);
  3.         try {
  4.             $controller = [$this->instantiateController($class), $method];
  5.         } catch (\Error|\LogicException $e) {
  6.             try {
  7.                 if ((new \ReflectionMethod($class$method))->isStatic()) {
  8.                     return $class.'::'.$method;
  9.                 }
  1.         if (=== substr_count($controller':')) {
  2.             $controller str_replace(':''::'$controller);
  3.             trigger_deprecation('symfony/http-kernel''5.1''Referencing controllers with a single colon is deprecated. Use "%s" instead.'$controller);
  4.         }
  5.         return parent::createController($controller);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.         if (\function_exists($controller)) {
  2.             return $controller;
  3.         }
  4.         try {
  5.             $callable $this->createController($controller);
  6.         } catch (\InvalidArgumentException $e) {
  7.             throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable: '$request->getPathInfo()).$e->getMessage(), 0$e);
  8.         }
  9.         if (!\is_callable($callable)) {
  1.     public function getController(Request $request)
  2.     {
  3.         $e $this->stopwatch->start('controller.get_callable');
  4.         try {
  5.             return $this->resolver->getController($request);
  6.         } finally {
  7.             $e->stop();
  8.         }
  9.     }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 146)
  1.         if ($event->hasResponse()) {
  2.             return $this->filterResponse($event->getResponse(), $request$type);
  3.         }
  4.         // load controller
  5.         if (false === $controller $this->resolver->getController($request)) {
  6.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  7.         }
  8.         $event = new ControllerEvent($this$controller$request$type);
  9.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/pre.ofertador.reluzca.es/httpdocs/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Stack Traces 3

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

  at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101
  at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
     (vendor/doctrine/dbal/src/Connection.php:1935)
  at Doctrine\DBAL\Connection->handleDriverException()
     (vendor/doctrine/dbal/src/Connection.php:1884)
  at Doctrine\DBAL\Connection->convertException()
     (vendor/doctrine/dbal/src/Connection.php:377)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:450)
  at Doctrine\DBAL\Connection->getDatabasePlatformVersion()
     (vendor/doctrine/dbal/src/Connection.php:408)
  at Doctrine\DBAL\Connection->detectDatabasePlatform()
     (vendor/doctrine/dbal/src/Connection.php:316)
  at Doctrine\DBAL\Connection->getDatabasePlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:831)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:623)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:146)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata()
     (vendor/doctrine/doctrine-bundle/Mapping/ClassMetadataFactory.php:18)
  at Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:343)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:207)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:318)
  at Doctrine\ORM\EntityManager->getClassMetadata()
     (vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php:41)
  at Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory->getRepository()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:825)
  at Doctrine\ORM\EntityManager->getRepository()
     (src/Controller/BaseController.php:76)
  at App\Controller\BaseController->__construct()
     (var/cache/dev/ContainerTWpGRYa/getHomeControllerService.php:24)
  at ContainerTWpGRYa\getHomeControllerService::do()
     (var/cache/dev/ContainerTWpGRYa/App_KernelDevDebugContainer.php:322)
  at ContainerTWpGRYa\App_KernelDevDebugContainer->load()
     (vendor/symfony/dependency-injection/Container.php:238)
  at Symfony\Component\DependencyInjection\Container->make()
     (vendor/symfony/dependency-injection/Container.php:220)
  at Symfony\Component\DependencyInjection\Container->get()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:53)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
     (vendor/symfony/framework-bundle/Controller/ControllerResolver.php:29)
  at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:120)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:42)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:86)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:39)
  at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
     (vendor/symfony/http-kernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/var/www/vhosts/pre.ofertador.reluzca.es/httpdocs/vendor/autoload_runtime.php')
     (public/index.php:5)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [2002] Connection refused

  at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:40)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect()
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect()
     (vendor/doctrine/dbal/src/Connection.php:375)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:450)
  at Doctrine\DBAL\Connection->getDatabasePlatformVersion()
     (vendor/doctrine/dbal/src/Connection.php:408)
  at Doctrine\DBAL\Connection->detectDatabasePlatform()
     (vendor/doctrine/dbal/src/Connection.php:316)
  at Doctrine\DBAL\Connection->getDatabasePlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:831)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:623)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:146)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata()
     (vendor/doctrine/doctrine-bundle/Mapping/ClassMetadataFactory.php:18)
  at Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:343)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:207)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:318)
  at Doctrine\ORM\EntityManager->getClassMetadata()
     (vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php:41)
  at Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory->getRepository()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:825)
  at Doctrine\ORM\EntityManager->getRepository()
     (src/Controller/BaseController.php:76)
  at App\Controller\BaseController->__construct()
     (var/cache/dev/ContainerTWpGRYa/getHomeControllerService.php:24)
  at ContainerTWpGRYa\getHomeControllerService::do()
     (var/cache/dev/ContainerTWpGRYa/App_KernelDevDebugContainer.php:322)
  at ContainerTWpGRYa\App_KernelDevDebugContainer->load()
     (vendor/symfony/dependency-injection/Container.php:238)
  at Symfony\Component\DependencyInjection\Container->make()
     (vendor/symfony/dependency-injection/Container.php:220)
  at Symfony\Component\DependencyInjection\Container->get()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:53)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
     (vendor/symfony/framework-bundle/Controller/ControllerResolver.php:29)
  at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:120)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:42)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:86)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:39)
  at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
     (vendor/symfony/http-kernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/var/www/vhosts/pre.ofertador.reluzca.es/httpdocs/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/3] PDOException
PDOException:
SQLSTATE[HY000] [2002] Connection refused

  at vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33
  at PDO->__construct()
     (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect()
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect()
     (vendor/doctrine/dbal/src/Connection.php:375)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:450)
  at Doctrine\DBAL\Connection->getDatabasePlatformVersion()
     (vendor/doctrine/dbal/src/Connection.php:408)
  at Doctrine\DBAL\Connection->detectDatabasePlatform()
     (vendor/doctrine/dbal/src/Connection.php:316)
  at Doctrine\DBAL\Connection->getDatabasePlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:831)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:623)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:146)
  at Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata()
     (vendor/doctrine/doctrine-bundle/Mapping/ClassMetadataFactory.php:18)
  at Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:343)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:207)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:318)
  at Doctrine\ORM\EntityManager->getClassMetadata()
     (vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php:41)
  at Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory->getRepository()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:825)
  at Doctrine\ORM\EntityManager->getRepository()
     (src/Controller/BaseController.php:76)
  at App\Controller\BaseController->__construct()
     (var/cache/dev/ContainerTWpGRYa/getHomeControllerService.php:24)
  at ContainerTWpGRYa\getHomeControllerService::do()
     (var/cache/dev/ContainerTWpGRYa/App_KernelDevDebugContainer.php:322)
  at ContainerTWpGRYa\App_KernelDevDebugContainer->load()
     (vendor/symfony/dependency-injection/Container.php:238)
  at Symfony\Component\DependencyInjection\Container->make()
     (vendor/symfony/dependency-injection/Container.php:220)
  at Symfony\Component\DependencyInjection\Container->get()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:53)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
     (vendor/symfony/framework-bundle/Controller/ControllerResolver.php:29)
  at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:120)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:42)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:86)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:39)
  at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
     (vendor/symfony/http-kernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/var/www/vhosts/pre.ofertador.reluzca.es/httpdocs/vendor/autoload_runtime.php')
     (public/index.php:5)