https://dev5.tile.expert/sitemap.en-gi.xml

Exceptions

Warning: ssh2_auth_pubkey_file(): Authentication failed for te using public key: Unable to open public key file

Exception

ErrorException

  1.         $server = static::$serverList[$servId];
  2.         $host App::isLocEnv() ? $server['host']['dev'] : $server['host']['prod'];
  3.         $rsa App::isLocEnv() ? static::$rsa['dev'] : static::$rsa['prod'];
  4.         $connection ssh2_connect($host$server['port'], ['hostkey' => 'ssh-rsa']);
  5.         if (ssh2_auth_pubkey_file($connection$server['user'], $rsa '.pub'$rsa'secret')) {
  6.             return $connection;
  7.         }
  8.         static::$error 'Public Key Authentication Failed';
  9.         return null;
  10.     }
ProxyHelper::getConnection() in src/FlexApp/Service/AdsFilters/FilterAdsFilesDataService.php (line 41)
  1.             if ($data !== false) {
  2.                 return $data;
  3.             }
  4.         }
  5.         $conn ProxyHelper::getConnection(ProxyHelper::ADMIN_SERV_ID);
  6.         if (!is_resource($conn)) {
  7.             throw new RuntimeException(sprintf(
  8.                 'Файл [%s] не найден локально, и не удалось установить SSH-соединение (conn == null).',
  9.                 $fullPath
  10.             ));
FilterAdsFilesDataService->getFileContents() in src/WebBundle/Controller/SeoController.php (line 96)
  1.     public function siteMapXmlTEAction(string $_locale): Response
  2.     {
  3.         try {
  4.             $filePath $this->sitemapGenerator->generateSitemapSinglePath($_locale);
  5.             $content $this->filterAdsFilesDataService->getFileContents($filePath);
  6.         } catch (RuntimeException $e) {
  7.             throw new NotFoundHttpException(sprintf(
  8.                 'Sitemap файл не найден для локали "%s". Детали: %s',
  9.                 $_locale,
  10.                 $e->getMessage()
in vendor/symfony/http-kernel/HttpKernel.php -> siteMapXmlTEAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 34)
  1. }
  2. Request::enableHttpMethodParameterOverride();
  3. $request Request::createFromGlobals();
  4. define('BASE_URL'$request->getScheme() . '://tile.expert/');
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
require('/var/www/dev5.tile.expert/public/index.php') in web/index.php (line 3)
  1. <?php
  2. require '../public/index.php';

Logs

Level Channel Message
INFO 13:23:04 php User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead.
{
    "exception": {}
}
INFO 13:23:04 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "73dd31"
    },
    "request_uri": "https://dev5.tile.expert/_profiler/73dd31",
    "method": "GET"
}
INFO 13:23:04 php User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead.
{
    "exception": {}
}
INFO 13:23:04 php User Deprecated: Since symfony/framework-bundle 5.2: Accessing the "security.csrf.token_manager" service directly from the container is deprecated, use dependency injection instead.
{
    "exception": {}
}
INFO 13:23:04 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead.
{
    "exception": {}
}
INFO 13:23:04 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.
{
    "exception": {}
}
INFO 13:23:04 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead.
{
    "exception": {}
}

Stack Trace

ErrorException
ErrorException:
Warning: ssh2_auth_pubkey_file(): Authentication failed for te using public key: Unable to open public key file

  at src/WebBundle/Helper/ProxyHelper.php:71
  at WebBundle\Helper\ProxyHelper::getConnection()
     (src/FlexApp/Service/AdsFilters/FilterAdsFilesDataService.php:41)
  at FlexApp\Service\AdsFilters\FilterAdsFilesDataService->getFileContents()
     (src/WebBundle/Controller/SeoController.php:96)
  at WebBundle\Controller\SeoController->siteMapXmlTEAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:34)
  at require('/var/www/dev5.tile.expert/public/index.php')
     (web/index.php:3)