Exceptions
Exception
ErrorException
in
src/WebBundle/Helper/ProxyHelper.php
(line 71)
$server = static::$serverList[$servId];
$host = App::isLocEnv() ? $server['host']['dev'] : $server['host']['prod'];
$rsa = App::isLocEnv() ? static::$rsa['dev'] : static::$rsa['prod'];
$connection = ssh2_connect($host, $server['port'], ['hostkey' => 'ssh-rsa']);
if (ssh2_auth_pubkey_file($connection, $server['user'], $rsa . '.pub', $rsa, 'secret')) {
return $connection;
}
static::$error = 'Public Key Authentication Failed';
return null;
}
ProxyHelper::getConnection()
in
src/FlexApp/Service/AdsFilters/FilterAdsFilesDataService.php
(line 41)
if ($data !== false) {
return $data;
}
}
$conn = ProxyHelper::getConnection(ProxyHelper::ADMIN_SERV_ID);
if (!is_resource($conn)) {
throw new RuntimeException(sprintf(
'Файл [%s] не найден локально, и не удалось установить SSH-соединение (conn == null).',
$fullPath
));
FilterAdsFilesDataService->getFileContents()
in
src/WebBundle/Controller/SeoController.php
(line 96)
public function siteMapXmlTEAction(string $_locale): Response
{
try {
$filePath = $this->sitemapGenerator->generateSitemapSinglePath($_locale);
$content = $this->filterAdsFilesDataService->getFileContents($filePath);
} catch (RuntimeException $e) {
throw new NotFoundHttpException(sprintf(
'Sitemap файл не найден для локали "%s". Детали: %s',
$_locale,
$e->getMessage()
in
vendor/symfony/http-kernel/HttpKernel.php
->
siteMapXmlTEAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
}
Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
define('BASE_URL', $request->getScheme() . '://tile.expert/');
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
<?php
require '../public/index.php';
Logs
Level | Channel | Message |
---|---|---|
INFO 16:05:45 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 16:05:45 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "ee29a8" }, "request_uri": "https://dev5.tile.expert/_profiler/ee29a8", "method": "GET" } |
INFO 16:05:45 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 16:05:46 | 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 16:05:46 | 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 16:05:46 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 16:05:46 | 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) |