Error 500 Internal Server Error

GET https://jdenes.lyceestvincent.fr/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/public/index.php/produits

Exceptions

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

Exceptions 3

Doctrine\DBAL\Exception\ ConnectionException

Show exception properties
Doctrine\DBAL\Exception\ConnectionException {#622
  -query: null
}
  1. 1227,
  2. 1370,
  3. 1429,
  4. 2002,
  5. 2005,
  6. 2054 => new ConnectionException($exception, $query),
  7. 2006,
  8. 4031 => new ConnectionLost($exception, $query),
  9. 1048,
  10. 1121,
  11. 1138,
  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 1398)
  1. }
  2. /** @internal */
  3. final public function convertException(Driver\Exception $e): DriverException
  4. {
  5. return $this->handleDriverException($e, null);
  6. }
  7. /**
  8. * @param list<mixed>|array<string, mixed> $params
  9. * @phpstan-param WrapperParameterTypeArray $types
in vendor/doctrine/dbal/src/Connection.php -> convertException (line 224)
  1. }
  2. try {
  3. $connection = $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. ): Result {
  2. if ($qcp !== null) {
  3. return $this->executeCacheQuery($sql, $params, $types, $qcp);
  4. }
  5. $connection = $this->connect();
  6. try {
  7. if (count($params) > 0) {
  8. [$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
  1. ): array {
  2. $this->switchPersisterContext($offset, $limit);
  3. $sql = $this->getSelectSQL($criteria, null, null, $limit, $offset, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. $hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);
  7. return $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);
  8. }
  1. */
  2. public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array
  3. {
  4. $persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);
  5. return $persister->loadAll($criteria, $orderBy, $limit, $offset);
  6. }
  7. /**
  8. * Finds a single entity by a set of criteria.
  9. *
  1. * @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class
  2. */
  3. public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array
  4. {
  5. return ($this->repository ??= $this->resolveRepository())
  6. ->findBy($criteria, $orderBy, $limit, $offset);
  7. }
  8. /** {@inheritDoc} */
  9. public function findOneBy(array $criteria, array|null $orderBy = null): object|null
  10. {
  1. *
  2. * @phpstan-return list<T> The entities.
  3. */
  4. public function findAll(): array
  5. {
  6. return $this->findBy([]);
  7. }
  8. /**
  9. * Finds entities by a set of criteria.
  10. *
EntityRepository->findAll() in src/Controller/TwigController.php (line 73)
  1. $selectedCategory = $request->query->get('category', '');
  2. $selectedBrand = $request->query->get('brand', '');
  3. $maxPrice = $request->query->get('max_price', '');
  4. // --- Récupération des catégories & marques de la BDD ---
  5. $categories = $categorieRepository->findAll();
  6. $marques = $marqueRepository->findAll();
  7. // --- Construction dynamique du filtre ---
  8. $criteria = [];
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  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. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/lyceestvincent/www/jdenes/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/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. ): DriverConnection {
  6. return $this->wrappedDriver->connect($params);
  7. }
  8. public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform
  9. {
  10. return $this->wrappedDriver->getDatabasePlatform($versionProvider);
  1. parent::__construct($driver);
  2. }
  3. public function connect(array $params): ConnectionInterface
  4. {
  5. $connection = parent::connect($params);
  6. if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {
  7. return new DBAL3\Connection(
  8. $connection,
  9. $this->debugDataHolder,
  1. */
  2. public function connect(
  3. #[SensitiveParameter]
  4. array $params,
  5. ): DriverConnection {
  6. return $this->wrappedDriver->connect($params);
  7. }
  8. public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform
  9. {
  10. return $this->wrappedDriver->getDatabasePlatform($versionProvider);
  1. }
  2. public function connect(array $params): ConnectionInterface
  3. {
  4. $timestamp = time();
  5. $connection = parent::connect($params);
  6. $this->connectionExpiries[$this->connectionName] = $timestamp + $this->ttl;
  7. return $connection;
  8. }
  9. }
  1. if ($this->_conn !== null) {
  2. return $this->_conn;
  3. }
  4. try {
  5. $connection = $this->_conn = $this->driver->connect($this->params);
  6. } catch (Driver\Exception $e) {
  7. throw $this->convertException($e);
  8. }
  9. if ($this->autoCommit === false) {
  1. ): Result {
  2. if ($qcp !== null) {
  3. return $this->executeCacheQuery($sql, $params, $types, $qcp);
  4. }
  5. $connection = $this->connect();
  6. try {
  7. if (count($params) > 0) {
  8. [$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
  1. ): array {
  2. $this->switchPersisterContext($offset, $limit);
  3. $sql = $this->getSelectSQL($criteria, null, null, $limit, $offset, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. $hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);
  7. return $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);
  8. }
  1. */
  2. public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array
  3. {
  4. $persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);
  5. return $persister->loadAll($criteria, $orderBy, $limit, $offset);
  6. }
  7. /**
  8. * Finds a single entity by a set of criteria.
  9. *
  1. * @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class
  2. */
  3. public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array
  4. {
  5. return ($this->repository ??= $this->resolveRepository())
  6. ->findBy($criteria, $orderBy, $limit, $offset);
  7. }
  8. /** {@inheritDoc} */
  9. public function findOneBy(array $criteria, array|null $orderBy = null): object|null
  10. {
  1. *
  2. * @phpstan-return list<T> The entities.
  3. */
  4. public function findAll(): array
  5. {
  6. return $this->findBy([]);
  7. }
  8. /**
  9. * Finds entities by a set of criteria.
  10. *
EntityRepository->findAll() in src/Controller/TwigController.php (line 73)
  1. $selectedCategory = $request->query->get('category', '');
  2. $selectedBrand = $request->query->get('brand', '');
  3. $maxPrice = $request->query->get('max_price', '');
  4. // --- Récupération des catégories & marques de la BDD ---
  5. $categories = $categorieRepository->findAll();
  6. $marques = $marqueRepository->findAll();
  7. // --- Construction dynamique du filtre ---
  8. $criteria = [];
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  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. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/lyceestvincent/www/jdenes/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/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. #[SensitiveParameter]
  2. string $password,
  3. array $options,
  4. ): PDO {
  5. if (PHP_VERSION_ID < 80400) {
  6. return new PDO($dsn, $username, $password, $options);
  7. }
  8. return PDO::connect($dsn, $username, $password, $options);
  9. }
  10. }
  1. #[SensitiveParameter]
  2. string $password,
  3. array $options,
  4. ): PDO {
  5. if (PHP_VERSION_ID < 80400) {
  6. return new PDO($dsn, $username, $password, $options);
  7. }
  8. return PDO::connect($dsn, $username, $password, $options);
  9. }
  10. }
  1. $safeParams = $params;
  2. unset($safeParams['password']);
  3. try {
  4. $pdo = $this->doConnect(
  5. $this->constructPdoDsn($safeParams),
  6. $params['user'] ?? '',
  7. $params['password'] ?? '',
  8. $driverOptions,
  9. );
  1. */
  2. public function connect(
  3. #[SensitiveParameter]
  4. array $params,
  5. ): DriverConnection {
  6. return $this->wrappedDriver->connect($params);
  7. }
  8. public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform
  9. {
  10. return $this->wrappedDriver->getDatabasePlatform($versionProvider);
  1. parent::__construct($driver);
  2. }
  3. public function connect(array $params): ConnectionInterface
  4. {
  5. $connection = parent::connect($params);
  6. if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {
  7. return new DBAL3\Connection(
  8. $connection,
  9. $this->debugDataHolder,
  1. */
  2. public function connect(
  3. #[SensitiveParameter]
  4. array $params,
  5. ): DriverConnection {
  6. return $this->wrappedDriver->connect($params);
  7. }
  8. public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform
  9. {
  10. return $this->wrappedDriver->getDatabasePlatform($versionProvider);
  1. }
  2. public function connect(array $params): ConnectionInterface
  3. {
  4. $timestamp = time();
  5. $connection = parent::connect($params);
  6. $this->connectionExpiries[$this->connectionName] = $timestamp + $this->ttl;
  7. return $connection;
  8. }
  9. }
  1. if ($this->_conn !== null) {
  2. return $this->_conn;
  3. }
  4. try {
  5. $connection = $this->_conn = $this->driver->connect($this->params);
  6. } catch (Driver\Exception $e) {
  7. throw $this->convertException($e);
  8. }
  9. if ($this->autoCommit === false) {
  1. ): Result {
  2. if ($qcp !== null) {
  3. return $this->executeCacheQuery($sql, $params, $types, $qcp);
  4. }
  5. $connection = $this->connect();
  6. try {
  7. if (count($params) > 0) {
  8. [$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
  1. ): array {
  2. $this->switchPersisterContext($offset, $limit);
  3. $sql = $this->getSelectSQL($criteria, null, null, $limit, $offset, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. $hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);
  7. return $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);
  8. }
  1. */
  2. public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array
  3. {
  4. $persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);
  5. return $persister->loadAll($criteria, $orderBy, $limit, $offset);
  6. }
  7. /**
  8. * Finds a single entity by a set of criteria.
  9. *
  1. * @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class
  2. */
  3. public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array
  4. {
  5. return ($this->repository ??= $this->resolveRepository())
  6. ->findBy($criteria, $orderBy, $limit, $offset);
  7. }
  8. /** {@inheritDoc} */
  9. public function findOneBy(array $criteria, array|null $orderBy = null): object|null
  10. {
  1. *
  2. * @phpstan-return list<T> The entities.
  3. */
  4. public function findAll(): array
  5. {
  6. return $this->findBy([]);
  7. }
  8. /**
  9. * Finds entities by a set of criteria.
  10. *
EntityRepository->findAll() in src/Controller/TwigController.php (line 73)
  1. $selectedCategory = $request->query->get('category', '');
  2. $selectedBrand = $request->query->get('brand', '');
  3. $maxPrice = $request->query->get('max_price', '');
  4. // --- Récupération des catégories & marques de la BDD ---
  5. $categories = $categorieRepository->findAll();
  6. $marques = $marqueRepository->findAll();
  7. // --- Construction dynamique du filtre ---
  8. $criteria = [];
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  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. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/lyceestvincent/www/jdenes/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/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. };

Logs

Level Message
info 21:23:06 Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "f0052e"
    },
    "request_uri": "https://jdenes.lyceestvincent.fr/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/public/_profiler/f0052e",
    "method": "GET"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
debug 21:23:06 Notified event "kernel.request" to listener "Nelmio\SecurityBundle\EventListener\ContentSecurityPolicyListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Nelmio\\SecurityBundle\\EventListener\\ContentSecurityPolicyListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
debug 21:23:06 Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
debug 21:23:06 Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
debug 21:23:06 Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
debug 21:23:06 Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
debug 21:23:06 Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
debug 21:23:06 Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
debug 21:23:06 Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}

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:91
  at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(object(Exception), null)
     (vendor/doctrine/dbal/src/Connection.php:1456)
  at Doctrine\DBAL\Connection->handleDriverException(object(Exception), null)
     (vendor/doctrine/dbal/src/Connection.php:1398)
  at Doctrine\DBAL\Connection->convertException(object(Exception))
     (vendor/doctrine/dbal/src/Connection.php:224)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:792)
  at Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS id_1, t0.nom AS nom_2 FROM categorie t0', array(), array())
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:963)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll(array(), null, null, null)
     (vendor/doctrine/orm/src/EntityRepository.php:110)
  at Doctrine\ORM\EntityRepository->findBy(array(), null, null, null)
     (vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php:73)
  at Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryProxy->findBy(array())
     (vendor/doctrine/orm/src/EntityRepository.php:96)
  at Doctrine\ORM\EntityRepository->findAll()
     (src/Controller/TwigController.php:73)
  at App\Controller\TwigController->products(object(Request), object(ProduitRepository), object(CategorieRepository), object(MarqueRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/lyceestvincent/www/jdenes/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/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:24
  at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException))
     (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:52)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:37)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('use_savepoints' => true, 'driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'artcraft', 'serverVersion' => 'mariadb-10.4.32', 'charset' => 'utf8mb4'))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php:35)
  at Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver->connect(array('use_savepoints' => true, 'driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'artcraft', 'serverVersion' => 'mariadb-10.4.32', 'charset' => 'utf8mb4'))
     (vendor/doctrine/dbal/src/Connection.php:222)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:792)
  at Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS id_1, t0.nom AS nom_2 FROM categorie t0', array(), array())
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:963)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll(array(), null, null, null)
     (vendor/doctrine/orm/src/EntityRepository.php:110)
  at Doctrine\ORM\EntityRepository->findBy(array(), null, null, null)
     (vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php:73)
  at Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryProxy->findBy(array())
     (vendor/doctrine/orm/src/EntityRepository.php:96)
  at Doctrine\ORM\EntityRepository->findAll()
     (src/Controller/TwigController.php:73)
  at App\Controller\TwigController->products(object(Request), object(ProduitRepository), object(CategorieRepository), object(MarqueRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/lyceestvincent/www/jdenes/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/3] PDOException
PDOException:
SQLSTATE[HY000] [2002] Connection refused

  at vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:25
  at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=artcraft;charset=utf8mb4;', 'root', object(SensitiveParameterValue), array())
     (vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:25)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->doConnect(object(SensitiveParameterValue), 'root', object(SensitiveParameterValue), array())
     (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:45)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:37)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('use_savepoints' => true, 'driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'artcraft', 'serverVersion' => 'mariadb-10.4.32', 'charset' => 'utf8mb4'))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php:35)
  at Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver->connect(array('use_savepoints' => true, 'driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'artcraft', 'serverVersion' => 'mariadb-10.4.32', 'charset' => 'utf8mb4'))
     (vendor/doctrine/dbal/src/Connection.php:222)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:792)
  at Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS id_1, t0.nom AS nom_2 FROM categorie t0', array(), array())
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:963)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll(array(), null, null, null)
     (vendor/doctrine/orm/src/EntityRepository.php:110)
  at Doctrine\ORM\EntityRepository->findBy(array(), null, null, null)
     (vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php:73)
  at Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryProxy->findBy(array())
     (vendor/doctrine/orm/src/EntityRepository.php:96)
  at Doctrine\ORM\EntityRepository->findAll()
     (src/Controller/TwigController.php:73)
  at App\Controller\TwigController->products(object(Request), object(ProduitRepository), object(CategorieRepository), object(MarqueRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/lyceestvincent/www/jdenes/bts-2025-2026-symfony-coffeeshop-coffeeshop-julie/vendor/autoload_runtime.php')
     (public/index.php:5)