Error 500 Internal Server Error

GET https://cartao.stage.tools/_profiler/385ea3?panel=cache&type=request

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 {#7431
  -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 1395)
  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. ): object|null {
  2. $this->switchPersisterContext(null, $limit);
  3. $sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. if ($entity !== null) {
  7. $hints[Query::HINT_REFRESH] = true;
  8. $hints[Query::HINT_REFRESH_ENTITY] = $entity;
  9. }
  1. */
  2. public function findOneBy(array $criteria, array|null $orderBy = null): object|null
  3. {
  4. $persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);
  5. return $persister->load($criteria, null, null, [], null, 1, $orderBy);
  6. }
  7. /**
  8. * Counts entities by a set of criteria.
  9. *
  1. return $this->findOneBy(['hostname' => $hostname], self::ORDER_BY);
  2. }
  3. public function findOneEnabledByHostname(string $hostname): ?ChannelInterface
  4. {
  5. return $this->findOneBy(['hostname' => $hostname, 'enabled' => true], self::ORDER_BY);
  6. }
  7. public function findOneByCode(string $code): ?ChannelInterface
  8. {
  9. return $this->findOneBy(['code' => $code], self::ORDER_BY);
  1. public function findChannel(Request $request): ?ChannelInterface
  2. {
  3. $hostname = $request->getHost();
  4. $channel = $this->channelRepository->findOneEnabledByHostname($hostname);
  5. if (null !== $channel || !in_array($hostname, self::LOCALHOST_EQUIVALENTS, true)) {
  6. return $channel;
  7. }
  1. }
  2. public function findChannel(Request $request): ?ChannelInterface
  3. {
  4. foreach ($this->requestResolvers as $requestResolver) {
  5. $channel = $requestResolver->findChannel($request);
  6. if (null !== $channel) {
  7. return $channel;
  8. }
  9. }
  1. }
  2. }
  3. private function getChannelForRequest(Request $request): ChannelInterface
  4. {
  5. $channel = $this->requestResolver->findChannel($request);
  6. $this->assertChannelWasFound($channel);
  7. return $channel;
  8. }
  1. }
  2. public function getChannel(): ChannelInterface
  3. {
  4. try {
  5. return $this->getChannelForRequest($this->getMainRequest());
  6. } catch (\UnexpectedValueException $exception) {
  7. throw new ChannelNotFoundException(null, $exception);
  8. }
  9. }
  1. public function getChannel(): ChannelInterface
  2. {
  3. foreach ($this->channelContexts as $channelContext) {
  4. try {
  5. return $channelContext->getChannel();
  6. } catch (ChannelNotFoundException) {
  7. continue;
  8. }
  9. }
  1. throw $this->requestToExceptionMap[$objectIdentifier];
  2. }
  3. try {
  4. if (!isset($this->requestToChannelMap[$objectIdentifier])) {
  5. $this->requestToChannelMap[$objectIdentifier] = $this->decoratedChannelContext->getChannel();
  6. }
  7. return $this->requestToChannelMap[$objectIdentifier];
  8. } catch (ChannelNotFoundException $exception) {
  9. $this->requestToExceptionMap[$objectIdentifier] = $exception;
  1. public function getDefaultLocaleCode(): string
  2. {
  3. try {
  4. /** @var ChannelInterface $channel */
  5. $channel = $this->channelContext->getChannel();
  6. return $channel->getDefaultLocale()->getCode();
  7. } catch (ChannelNotFoundException) {
  8. return $this->defaultLocaleCode;
  9. }
  1. throw new LocaleNotFoundException('No main request available.');
  2. }
  3. if ([] === $this->availableLocalesCodes) {
  4. $this->availableLocalesCodes = array_unique(array_merge(
  5. [$this->localeProvider->getDefaultLocaleCode()],
  6. $this->localeProvider->getAvailableLocalesCodes(),
  7. ));
  8. }
  9. // Request::getPreferredLanguage() returns first available locale code if none matches. To allow detection of
  1. {
  2. $lastException = null;
  3. foreach ($this->localeContexts as $localeContext) {
  4. try {
  5. return $localeContext->getLocaleCode();
  6. } catch (LocaleNotFoundException $exception) {
  7. $lastException = $exception;
  8. continue;
  9. }
  1. */
  2. public function onKernelRequest(RequestEvent $event): void
  3. {
  4. $request = $event->getRequest();
  5. $request->setLocale($this->localeContext->getLocaleCode());
  6. $request->setDefaultLocale($this->localeProvider->getDefaultLocaleCode());
  7. }
  8. }
  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. */
  2. private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  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. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  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. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/4ff1c41f-0d83-48ae-a248-66bd80154533/public_html/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. array $params,
  2. ): Connection {
  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. ): 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. ): object|null {
  2. $this->switchPersisterContext(null, $limit);
  3. $sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. if ($entity !== null) {
  7. $hints[Query::HINT_REFRESH] = true;
  8. $hints[Query::HINT_REFRESH_ENTITY] = $entity;
  9. }
  1. */
  2. public function findOneBy(array $criteria, array|null $orderBy = null): object|null
  3. {
  4. $persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);
  5. return $persister->load($criteria, null, null, [], null, 1, $orderBy);
  6. }
  7. /**
  8. * Counts entities by a set of criteria.
  9. *
  1. return $this->findOneBy(['hostname' => $hostname], self::ORDER_BY);
  2. }
  3. public function findOneEnabledByHostname(string $hostname): ?ChannelInterface
  4. {
  5. return $this->findOneBy(['hostname' => $hostname, 'enabled' => true], self::ORDER_BY);
  6. }
  7. public function findOneByCode(string $code): ?ChannelInterface
  8. {
  9. return $this->findOneBy(['code' => $code], self::ORDER_BY);
  1. public function findChannel(Request $request): ?ChannelInterface
  2. {
  3. $hostname = $request->getHost();
  4. $channel = $this->channelRepository->findOneEnabledByHostname($hostname);
  5. if (null !== $channel || !in_array($hostname, self::LOCALHOST_EQUIVALENTS, true)) {
  6. return $channel;
  7. }
  1. }
  2. public function findChannel(Request $request): ?ChannelInterface
  3. {
  4. foreach ($this->requestResolvers as $requestResolver) {
  5. $channel = $requestResolver->findChannel($request);
  6. if (null !== $channel) {
  7. return $channel;
  8. }
  9. }
  1. }
  2. }
  3. private function getChannelForRequest(Request $request): ChannelInterface
  4. {
  5. $channel = $this->requestResolver->findChannel($request);
  6. $this->assertChannelWasFound($channel);
  7. return $channel;
  8. }
  1. }
  2. public function getChannel(): ChannelInterface
  3. {
  4. try {
  5. return $this->getChannelForRequest($this->getMainRequest());
  6. } catch (\UnexpectedValueException $exception) {
  7. throw new ChannelNotFoundException(null, $exception);
  8. }
  9. }
  1. public function getChannel(): ChannelInterface
  2. {
  3. foreach ($this->channelContexts as $channelContext) {
  4. try {
  5. return $channelContext->getChannel();
  6. } catch (ChannelNotFoundException) {
  7. continue;
  8. }
  9. }
  1. throw $this->requestToExceptionMap[$objectIdentifier];
  2. }
  3. try {
  4. if (!isset($this->requestToChannelMap[$objectIdentifier])) {
  5. $this->requestToChannelMap[$objectIdentifier] = $this->decoratedChannelContext->getChannel();
  6. }
  7. return $this->requestToChannelMap[$objectIdentifier];
  8. } catch (ChannelNotFoundException $exception) {
  9. $this->requestToExceptionMap[$objectIdentifier] = $exception;
  1. public function getDefaultLocaleCode(): string
  2. {
  3. try {
  4. /** @var ChannelInterface $channel */
  5. $channel = $this->channelContext->getChannel();
  6. return $channel->getDefaultLocale()->getCode();
  7. } catch (ChannelNotFoundException) {
  8. return $this->defaultLocaleCode;
  9. }
  1. throw new LocaleNotFoundException('No main request available.');
  2. }
  3. if ([] === $this->availableLocalesCodes) {
  4. $this->availableLocalesCodes = array_unique(array_merge(
  5. [$this->localeProvider->getDefaultLocaleCode()],
  6. $this->localeProvider->getAvailableLocalesCodes(),
  7. ));
  8. }
  9. // Request::getPreferredLanguage() returns first available locale code if none matches. To allow detection of
  1. {
  2. $lastException = null;
  3. foreach ($this->localeContexts as $localeContext) {
  4. try {
  5. return $localeContext->getLocaleCode();
  6. } catch (LocaleNotFoundException $exception) {
  7. $lastException = $exception;
  8. continue;
  9. }
  1. */
  2. public function onKernelRequest(RequestEvent $event): void
  3. {
  4. $request = $event->getRequest();
  5. $request->setLocale($this->localeContext->getLocaleCode());
  6. $request->setDefaultLocale($this->localeProvider->getDefaultLocaleCode());
  7. }
  8. }
  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. */
  2. private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  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. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  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. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/4ff1c41f-0d83-48ae-a248-66bd80154533/public_html/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. ): PDO {
  2. if (PHP_VERSION_ID < 80400) {
  3. return new PDO($dsn, $username, $password, $options);
  4. }
  5. return PDO::connect($dsn, $username, $password, $options);
  6. }
  7. }
  1. ): PDO {
  2. if (PHP_VERSION_ID < 80400) {
  3. return new PDO($dsn, $username, $password, $options);
  4. }
  5. return PDO::connect($dsn, $username, $password, $options);
  6. }
  7. }
  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. array $params,
  2. ): Connection {
  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. ): 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. ): object|null {
  2. $this->switchPersisterContext(null, $limit);
  3. $sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. if ($entity !== null) {
  7. $hints[Query::HINT_REFRESH] = true;
  8. $hints[Query::HINT_REFRESH_ENTITY] = $entity;
  9. }
  1. */
  2. public function findOneBy(array $criteria, array|null $orderBy = null): object|null
  3. {
  4. $persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);
  5. return $persister->load($criteria, null, null, [], null, 1, $orderBy);
  6. }
  7. /**
  8. * Counts entities by a set of criteria.
  9. *
  1. return $this->findOneBy(['hostname' => $hostname], self::ORDER_BY);
  2. }
  3. public function findOneEnabledByHostname(string $hostname): ?ChannelInterface
  4. {
  5. return $this->findOneBy(['hostname' => $hostname, 'enabled' => true], self::ORDER_BY);
  6. }
  7. public function findOneByCode(string $code): ?ChannelInterface
  8. {
  9. return $this->findOneBy(['code' => $code], self::ORDER_BY);
  1. public function findChannel(Request $request): ?ChannelInterface
  2. {
  3. $hostname = $request->getHost();
  4. $channel = $this->channelRepository->findOneEnabledByHostname($hostname);
  5. if (null !== $channel || !in_array($hostname, self::LOCALHOST_EQUIVALENTS, true)) {
  6. return $channel;
  7. }
  1. }
  2. public function findChannel(Request $request): ?ChannelInterface
  3. {
  4. foreach ($this->requestResolvers as $requestResolver) {
  5. $channel = $requestResolver->findChannel($request);
  6. if (null !== $channel) {
  7. return $channel;
  8. }
  9. }
  1. }
  2. }
  3. private function getChannelForRequest(Request $request): ChannelInterface
  4. {
  5. $channel = $this->requestResolver->findChannel($request);
  6. $this->assertChannelWasFound($channel);
  7. return $channel;
  8. }
  1. }
  2. public function getChannel(): ChannelInterface
  3. {
  4. try {
  5. return $this->getChannelForRequest($this->getMainRequest());
  6. } catch (\UnexpectedValueException $exception) {
  7. throw new ChannelNotFoundException(null, $exception);
  8. }
  9. }
  1. public function getChannel(): ChannelInterface
  2. {
  3. foreach ($this->channelContexts as $channelContext) {
  4. try {
  5. return $channelContext->getChannel();
  6. } catch (ChannelNotFoundException) {
  7. continue;
  8. }
  9. }
  1. throw $this->requestToExceptionMap[$objectIdentifier];
  2. }
  3. try {
  4. if (!isset($this->requestToChannelMap[$objectIdentifier])) {
  5. $this->requestToChannelMap[$objectIdentifier] = $this->decoratedChannelContext->getChannel();
  6. }
  7. return $this->requestToChannelMap[$objectIdentifier];
  8. } catch (ChannelNotFoundException $exception) {
  9. $this->requestToExceptionMap[$objectIdentifier] = $exception;
  1. public function getDefaultLocaleCode(): string
  2. {
  3. try {
  4. /** @var ChannelInterface $channel */
  5. $channel = $this->channelContext->getChannel();
  6. return $channel->getDefaultLocale()->getCode();
  7. } catch (ChannelNotFoundException) {
  8. return $this->defaultLocaleCode;
  9. }
  1. throw new LocaleNotFoundException('No main request available.');
  2. }
  3. if ([] === $this->availableLocalesCodes) {
  4. $this->availableLocalesCodes = array_unique(array_merge(
  5. [$this->localeProvider->getDefaultLocaleCode()],
  6. $this->localeProvider->getAvailableLocalesCodes(),
  7. ));
  8. }
  9. // Request::getPreferredLanguage() returns first available locale code if none matches. To allow detection of
  1. {
  2. $lastException = null;
  3. foreach ($this->localeContexts as $localeContext) {
  4. try {
  5. return $localeContext->getLocaleCode();
  6. } catch (LocaleNotFoundException $exception) {
  7. $lastException = $exception;
  8. continue;
  9. }
  1. */
  2. public function onKernelRequest(RequestEvent $event): void
  3. {
  4. $request = $event->getRequest();
  5. $request->setLocale($this->localeContext->getLocaleCode());
  6. $request->setDefaultLocale($this->localeProvider->getDefaultLocaleCode());
  7. }
  8. }
  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. */
  2. private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  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. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  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. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/4ff1c41f-0d83-48ae-a248-66bd80154533/public_html/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 Channel Message
INFO 02:44:54 deprecation User Deprecated: The Liip\ImagineBundle\Templating\FilterTrait trait is deprecated since version 2.7 and will be removed in 3.0; use Twig instead.
{
    "exception": {}
}
INFO 02:44:54 deprecation User Deprecated: The Liip\ImagineBundle\Templating\FilterExtension class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead.
{
    "exception": {}
}
INFO 02:44:54 deprecation User Deprecated: Specifying the "nullable" attribute for join columns in many-to-many associations (here, Sylius\Component\Core\Model\PaymentMethod::$channels) is a no-op. The ORM will always set it to false. Doing so is deprecated and will be an error in 4.0. (ManyToManyOwningSideMapping.php:133 called by ClassMetadata.php:1449, https://github.com/doctrine/orm/pull/12126, package doctrine/orm)
{
    "exception": {}
}
INFO 02:44:54 doctrine Connecting with parameters {params}
{
    "params": {
        "driver": "pdo_mysql",
        "idle_connection_ttl": 600,
        "host": "localhost",
        "port": 3306,
        "user": "cartao_s1_user1",
        "password": "<redacted>",
        "driverOptions": {
            "1002": "SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, 'STRICT_'), '', ',TRADITIONAL'))"
        },
        "defaultTableOptions": {
            "charset": "utf8mb4",
            "collation": "utf8mb4_unicode_ci",
            "collate": "utf8mb4_unicode_ci",
            "engine": "InnoDB",
            "row_format": "DYNAMIC"
        },
        "dbname": "cartao_s1_cartao",
        "serverVersion": "11.4.13-MariaDB-ubu2204",
        "charset": "utf8mb4"
    }
}
DEBUG 02:44:54 doctrine Executing statement: SELECT t0.code AS code_1, t0.name AS name_2, t0.color AS color_3, t0.description AS description_4, t0.enabled AS enabled_5, t0.hostname AS hostname_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.id AS id_9, t0.theme_name AS theme_name_10, t0.tax_calculation_strategy AS tax_calculation_strategy_11, t0.contact_email AS contact_email_12, t0.contact_phone_number AS contact_phone_number_13, t0.skipping_shipping_step_allowed AS skipping_shipping_step_allowed_14, t0.skipping_payment_step_allowed AS skipping_payment_step_allowed_15, t0.account_verification_required AS account_verification_required_16, t0.shipping_address_in_checkout_required AS shipping_address_in_checkout_required_17, t0.default_locale_id AS default_locale_id_18, t19.code AS code_20, t19.created_at AS created_at_21, t19.updated_at AS updated_at_22, t19.id AS id_23, t0.base_currency_id AS base_currency_id_24, t25.code AS code_26, t25.created_at AS created_at_27, t25.updated_at AS updated_at_28, t25.id AS id_29, t0.default_tax_zone_id AS default_tax_zone_id_30, t0.menu_taxon_id AS menu_taxon_id_31, t0.shop_billing_data_id AS shop_billing_data_id_32, t0.channel_price_history_config_id AS channel_price_history_config_id_33 FROM sylius_channel t0 INNER JOIN sylius_locale t19 ON t0.default_locale_id = t19.id INNER JOIN sylius_currency t25 ON t0.base_currency_id = t25.id WHERE t0.hostname = ? AND t0.enabled = ? ORDER BY t0.id ASC LIMIT 1 (parameters: {params}, types: {types})

                            
INFO 02:44:54 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "bc76ee"
    },
    "request_uri": "https://cartao.stage.tools/_profiler/bc76ee",
    "method": "GET"
}
DEBUG 02:44:54 doctrine Executing statement: SELECT t0.code AS code_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.id AS id_4 FROM sylius_locale t0 INNER JOIN sylius_channel_locales ON t0.id = sylius_channel_locales.locale_id WHERE sylius_channel_locales.channel_id = ? (parameters: {params}, types: {types})

                            
DEBUG 02:44:54 doctrine Executing query: SELECT templates FROM tl_theme WHERE templates != ''
{
    "sql": "SELECT templates FROM tl_theme WHERE templates != ''"
}
INFO 02:44:54 deprecation User Deprecated: Since sylius/mollie-plugin 2.2: Not passing an instance of "Sylius\Component\Payment\Resolver\PaymentMethodsResolverInterface" is deprecated and will be required in MolliePlugin 4.0
{
    "exception": {}
}

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:1453)
  at Doctrine\DBAL\Connection->handleDriverException(object(Exception), null)
     (vendor/doctrine/dbal/src/Connection.php:1395)
  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:790)
  at Doctrine\DBAL\Connection->executeQuery('SELECT t0.code AS code_1, t0.name AS name_2, t0.color AS color_3, t0.description AS description_4, t0.enabled AS enabled_5, t0.hostname AS hostname_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.id AS id_9, t0.theme_name AS theme_name_10, t0.tax_calculation_strategy AS tax_calculation_strategy_11, t0.contact_email AS contact_email_12, t0.contact_phone_number AS contact_phone_number_13, t0.skipping_shipping_step_allowed AS skipping_shipping_step_allowed_14, t0.skipping_payment_step_allowed AS skipping_payment_step_allowed_15, t0.account_verification_required AS account_verification_required_16, t0.shipping_address_in_checkout_required AS shipping_address_in_checkout_required_17, t0.default_locale_id AS default_locale_id_18, t19.code AS code_20, t19.created_at AS created_at_21, t19.updated_at AS updated_at_22, t19.id AS id_23, t0.base_currency_id AS base_currency_id_24, t25.code AS code_26, t25.created_at AS created_at_27, t25.updated_at AS updated_at_28, t25.id AS id_29, t0.default_tax_zone_id AS default_tax_zone_id_30, t0.menu_taxon_id AS menu_taxon_id_31, t0.shop_billing_data_id AS shop_billing_data_id_32, t0.channel_price_history_config_id AS channel_price_history_config_id_33 FROM sylius_channel t0 INNER JOIN sylius_locale t19 ON t0.default_locale_id = t19.id INNER JOIN sylius_currency t25 ON t0.base_currency_id = t25.id WHERE t0.hostname = ? AND t0.enabled = ? ORDER BY t0.id ASC LIMIT 1', array('cartao.stage.tools', true), array('string', 'boolean'))
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('hostname' => 'cartao.stage.tools', 'enabled' => true), null, null, array(), null, 1, array('id' => 'ASC'))
     (vendor/doctrine/orm/src/EntityRepository.php:125)
  at Doctrine\ORM\EntityRepository->findOneBy(array('hostname' => 'cartao.stage.tools', 'enabled' => true), array('id' => 'ASC'))
     (vendor/sylius/sylius/src/Sylius/Bundle/ChannelBundle/Doctrine/ORM/ChannelRepository.php:37)
  at Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository->findOneEnabledByHostname('cartao.stage.tools')
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/HostnameBasedRequestResolver.php:32)
  at Sylius\Component\Channel\Context\RequestBased\HostnameBasedRequestResolver->findChannel(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/CompositeRequestResolver.php:38)
  at Sylius\Component\Channel\Context\RequestBased\CompositeRequestResolver->findChannel(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php:39)
  at Sylius\Component\Channel\Context\RequestBased\ChannelContext->getChannelForRequest(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php:31)
  at Sylius\Component\Channel\Context\RequestBased\ChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/CompositeChannelContext.php:38)
  at Sylius\Component\Channel\Context\CompositeChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/CachedPerRequestChannelContext.php:44)
  at Sylius\Component\Channel\Context\CachedPerRequestChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Core/Provider/ChannelBasedLocaleProvider.php:50)
  at Sylius\Component\Core\Provider\ChannelBasedLocaleProvider->getDefaultLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php:47)
  at Sylius\Bundle\LocaleBundle\Context\RequestHeaderBasedLocaleContext->getLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Component/Locale/Context/CompositeLocaleContext.php:39)
  at Sylius\Component\Locale\Context\CompositeLocaleContext->getLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Bundle/LocaleBundle/Listener/RequestLocaleSetter.php:34)
  at Sylius\Bundle\LocaleBundle\Listener\RequestLocaleSetter->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  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), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:161)
  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:195)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/4ff1c41f-0d83-48ae-a248-66bd80154533/public_html/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/doctrine/dbal/src/Logging/Driver.php:30)
  at Doctrine\DBAL\Logging\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('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'localhost', 'port' => 3306, 'user' => 'cartao_s1_user1', 'password' => 'uStQbhiE9Xw&I;q_', 'driverOptions' => array('SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, \'STRICT_\'), \'\', \',TRADITIONAL\'))'), 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'collate' => 'utf8mb4_unicode_ci', 'engine' => 'InnoDB', 'row_format' => 'DYNAMIC'), 'dbname' => 'cartao_s1_cartao', 'serverVersion' => '11.4.13-MariaDB-ubu2204', '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('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'localhost', 'port' => 3306, 'user' => 'cartao_s1_user1', 'password' => 'uStQbhiE9Xw&I;q_', 'driverOptions' => array('SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, \'STRICT_\'), \'\', \',TRADITIONAL\'))'), 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'collate' => 'utf8mb4_unicode_ci', 'engine' => 'InnoDB', 'row_format' => 'DYNAMIC'), 'dbname' => 'cartao_s1_cartao', 'serverVersion' => '11.4.13-MariaDB-ubu2204', 'charset' => 'utf8mb4'))
     (vendor/doctrine/dbal/src/Connection.php:222)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:790)
  at Doctrine\DBAL\Connection->executeQuery('SELECT t0.code AS code_1, t0.name AS name_2, t0.color AS color_3, t0.description AS description_4, t0.enabled AS enabled_5, t0.hostname AS hostname_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.id AS id_9, t0.theme_name AS theme_name_10, t0.tax_calculation_strategy AS tax_calculation_strategy_11, t0.contact_email AS contact_email_12, t0.contact_phone_number AS contact_phone_number_13, t0.skipping_shipping_step_allowed AS skipping_shipping_step_allowed_14, t0.skipping_payment_step_allowed AS skipping_payment_step_allowed_15, t0.account_verification_required AS account_verification_required_16, t0.shipping_address_in_checkout_required AS shipping_address_in_checkout_required_17, t0.default_locale_id AS default_locale_id_18, t19.code AS code_20, t19.created_at AS created_at_21, t19.updated_at AS updated_at_22, t19.id AS id_23, t0.base_currency_id AS base_currency_id_24, t25.code AS code_26, t25.created_at AS created_at_27, t25.updated_at AS updated_at_28, t25.id AS id_29, t0.default_tax_zone_id AS default_tax_zone_id_30, t0.menu_taxon_id AS menu_taxon_id_31, t0.shop_billing_data_id AS shop_billing_data_id_32, t0.channel_price_history_config_id AS channel_price_history_config_id_33 FROM sylius_channel t0 INNER JOIN sylius_locale t19 ON t0.default_locale_id = t19.id INNER JOIN sylius_currency t25 ON t0.base_currency_id = t25.id WHERE t0.hostname = ? AND t0.enabled = ? ORDER BY t0.id ASC LIMIT 1', array('cartao.stage.tools', true), array('string', 'boolean'))
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('hostname' => 'cartao.stage.tools', 'enabled' => true), null, null, array(), null, 1, array('id' => 'ASC'))
     (vendor/doctrine/orm/src/EntityRepository.php:125)
  at Doctrine\ORM\EntityRepository->findOneBy(array('hostname' => 'cartao.stage.tools', 'enabled' => true), array('id' => 'ASC'))
     (vendor/sylius/sylius/src/Sylius/Bundle/ChannelBundle/Doctrine/ORM/ChannelRepository.php:37)
  at Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository->findOneEnabledByHostname('cartao.stage.tools')
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/HostnameBasedRequestResolver.php:32)
  at Sylius\Component\Channel\Context\RequestBased\HostnameBasedRequestResolver->findChannel(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/CompositeRequestResolver.php:38)
  at Sylius\Component\Channel\Context\RequestBased\CompositeRequestResolver->findChannel(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php:39)
  at Sylius\Component\Channel\Context\RequestBased\ChannelContext->getChannelForRequest(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php:31)
  at Sylius\Component\Channel\Context\RequestBased\ChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/CompositeChannelContext.php:38)
  at Sylius\Component\Channel\Context\CompositeChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/CachedPerRequestChannelContext.php:44)
  at Sylius\Component\Channel\Context\CachedPerRequestChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Core/Provider/ChannelBasedLocaleProvider.php:50)
  at Sylius\Component\Core\Provider\ChannelBasedLocaleProvider->getDefaultLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php:47)
  at Sylius\Bundle\LocaleBundle\Context\RequestHeaderBasedLocaleContext->getLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Component/Locale/Context/CompositeLocaleContext.php:39)
  at Sylius\Component\Locale\Context\CompositeLocaleContext->getLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Bundle/LocaleBundle/Listener/RequestLocaleSetter.php:34)
  at Sylius\Bundle\LocaleBundle\Listener\RequestLocaleSetter->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  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), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:161)
  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:195)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/4ff1c41f-0d83-48ae-a248-66bd80154533/public_html/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:28
  at PDO::connect('mysql:host=localhost;port=3306;dbname=cartao_s1_cartao;charset=utf8mb4;', 'cartao_s1_user1', object(SensitiveParameterValue), array('SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, \'STRICT_\'), \'\', \',TRADITIONAL\'))'))
     (vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:28)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->doConnect(object(SensitiveParameterValue), 'cartao_s1_user1', object(SensitiveParameterValue), array('SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, \'STRICT_\'), \'\', \',TRADITIONAL\'))'))
     (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/doctrine/dbal/src/Logging/Driver.php:30)
  at Doctrine\DBAL\Logging\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('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'localhost', 'port' => 3306, 'user' => 'cartao_s1_user1', 'password' => 'uStQbhiE9Xw&I;q_', 'driverOptions' => array('SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, \'STRICT_\'), \'\', \',TRADITIONAL\'))'), 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'collate' => 'utf8mb4_unicode_ci', 'engine' => 'InnoDB', 'row_format' => 'DYNAMIC'), 'dbname' => 'cartao_s1_cartao', 'serverVersion' => '11.4.13-MariaDB-ubu2204', '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('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'localhost', 'port' => 3306, 'user' => 'cartao_s1_user1', 'password' => 'uStQbhiE9Xw&I;q_', 'driverOptions' => array('SET SESSION sql_mode=CONCAT(@@sql_mode, IF(INSTR(@@sql_mode, \'STRICT_\'), \'\', \',TRADITIONAL\'))'), 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'collate' => 'utf8mb4_unicode_ci', 'engine' => 'InnoDB', 'row_format' => 'DYNAMIC'), 'dbname' => 'cartao_s1_cartao', 'serverVersion' => '11.4.13-MariaDB-ubu2204', 'charset' => 'utf8mb4'))
     (vendor/doctrine/dbal/src/Connection.php:222)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:790)
  at Doctrine\DBAL\Connection->executeQuery('SELECT t0.code AS code_1, t0.name AS name_2, t0.color AS color_3, t0.description AS description_4, t0.enabled AS enabled_5, t0.hostname AS hostname_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.id AS id_9, t0.theme_name AS theme_name_10, t0.tax_calculation_strategy AS tax_calculation_strategy_11, t0.contact_email AS contact_email_12, t0.contact_phone_number AS contact_phone_number_13, t0.skipping_shipping_step_allowed AS skipping_shipping_step_allowed_14, t0.skipping_payment_step_allowed AS skipping_payment_step_allowed_15, t0.account_verification_required AS account_verification_required_16, t0.shipping_address_in_checkout_required AS shipping_address_in_checkout_required_17, t0.default_locale_id AS default_locale_id_18, t19.code AS code_20, t19.created_at AS created_at_21, t19.updated_at AS updated_at_22, t19.id AS id_23, t0.base_currency_id AS base_currency_id_24, t25.code AS code_26, t25.created_at AS created_at_27, t25.updated_at AS updated_at_28, t25.id AS id_29, t0.default_tax_zone_id AS default_tax_zone_id_30, t0.menu_taxon_id AS menu_taxon_id_31, t0.shop_billing_data_id AS shop_billing_data_id_32, t0.channel_price_history_config_id AS channel_price_history_config_id_33 FROM sylius_channel t0 INNER JOIN sylius_locale t19 ON t0.default_locale_id = t19.id INNER JOIN sylius_currency t25 ON t0.base_currency_id = t25.id WHERE t0.hostname = ? AND t0.enabled = ? ORDER BY t0.id ASC LIMIT 1', array('cartao.stage.tools', true), array('string', 'boolean'))
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('hostname' => 'cartao.stage.tools', 'enabled' => true), null, null, array(), null, 1, array('id' => 'ASC'))
     (vendor/doctrine/orm/src/EntityRepository.php:125)
  at Doctrine\ORM\EntityRepository->findOneBy(array('hostname' => 'cartao.stage.tools', 'enabled' => true), array('id' => 'ASC'))
     (vendor/sylius/sylius/src/Sylius/Bundle/ChannelBundle/Doctrine/ORM/ChannelRepository.php:37)
  at Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository->findOneEnabledByHostname('cartao.stage.tools')
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/HostnameBasedRequestResolver.php:32)
  at Sylius\Component\Channel\Context\RequestBased\HostnameBasedRequestResolver->findChannel(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/CompositeRequestResolver.php:38)
  at Sylius\Component\Channel\Context\RequestBased\CompositeRequestResolver->findChannel(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php:39)
  at Sylius\Component\Channel\Context\RequestBased\ChannelContext->getChannelForRequest(object(Request))
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php:31)
  at Sylius\Component\Channel\Context\RequestBased\ChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/CompositeChannelContext.php:38)
  at Sylius\Component\Channel\Context\CompositeChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Channel/Context/CachedPerRequestChannelContext.php:44)
  at Sylius\Component\Channel\Context\CachedPerRequestChannelContext->getChannel()
     (vendor/sylius/sylius/src/Sylius/Component/Core/Provider/ChannelBasedLocaleProvider.php:50)
  at Sylius\Component\Core\Provider\ChannelBasedLocaleProvider->getDefaultLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php:47)
  at Sylius\Bundle\LocaleBundle\Context\RequestHeaderBasedLocaleContext->getLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Component/Locale/Context/CompositeLocaleContext.php:39)
  at Sylius\Component\Locale\Context\CompositeLocaleContext->getLocaleCode()
     (vendor/sylius/sylius/src/Sylius/Bundle/LocaleBundle/Listener/RequestLocaleSetter.php:34)
  at Sylius\Bundle\LocaleBundle\Listener\RequestLocaleSetter->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  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), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:161)
  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:195)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/4ff1c41f-0d83-48ae-a248-66bd80154533/public_html/vendor/autoload_runtime.php')
     (public/index.php:5)