04 11 2023 10:03:12 El Archivo 2023-11-04 - log.txt se ha creado 04 11 2023 10:03:12 ###############Datos recibidos -- 04 11 2023 10:03:12 Envio Login Movil: 04 11 2023 10:03:12 Url=http://10.1.1.11:8094/ptat/login/login_movil 04 11 2023 10:03:12 Contenido:POST http://10.1.1.11:8094/ptat/login/login_movil HTTP/1.1 AUTHENTICATION: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImNsYXZlIjoibDViNDJSUGJEK0Z3NHc3ZXd1U3NTdz09XG4iLCJleHAiOjE2OTkxMTAyMzIsImlhdCI6MTY5OTExMDE4Mn0.E0c92iLaqp_Q2ZlEb3ALNjl4tvYNgo89KtZF54z3rAw Content-Length: 245 Content-Type: multipart/form-data; boundary="100d9b18.3fee2f54" --100d9b18.3fee2f54 Content-Disposition: form-data; name="json" [{"imeis":"fWsXPKKEHb0,ffffffff-c874-0103-ffff-ffffef49f440,3f2d60039094c695","ip":"","name_device":"Ciontek CS10","operador":"","version_app":"9.0.2"}] --100d9b18.3fee2f54-- 04 11 2023 10:03:31 HTTP/1.1 200 OK Date: Sat, 04 Nov 2023 15:03:12 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.18 Access-Control-Allow-Origin: * Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization, Authentication Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE Allow: GET, POST, OPTIONS, PUT, DELETE Cache-Control: no-cache, private Http-Authentication: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImlhdCI6MTY5OTExMDIwOSwiZXhwIjoxNjk5MTEyMzA5fQ.bSVcLBJdwXfROXR-gPrln1zjJwgxrtgHfmF7VADeIyM Http-Refresh: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImlhdCI6MTY5OTExMDIwOSwiZXhwIjoxNjk5MTI4MjA5fQ.RsIxLPGxrirsYaycCnOH1cVQyUoe9B6nr_AULWTmXBM X-Robots-Tag: noindex Content-Type: application/json X-Original-Transfer-Encoding: chunked Content-Length: 304 {"code":1,"datos":[{"loginusr":"CV40367231","nivel":4,"nombre":"GEORGINA BARBOSA","solicitudes":[],"correo":"georginabc1962@gmail.com","fecha_n":"27\/02\/1962","time_expire":2100,"notificaciones":0}],"supervisores":[],"supervisores_visit":[],"vendedores":[],"sem_version":1,"mensajes":[],"menu":"6,9,10"} 04 11 2023 10:03:32 ********************Inicia Metodos Sem*********************** 04 11 2023 10:03:32 ###############Datos recibidos 29 -- {"id_mod":"1"} -- CV40367231 04 11 2023 10:03:32 headers eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImlhdCI6MTY5OTExMDIwOSwiZXhwIjoxNjk5MTEyMzA5fQ.bSVcLBJdwXfROXR-gPrln1zjJwgxrtgHfmF7VADeIyM || 04 11 2023 10:03:32 headers {"AUTHENTICATION":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImlhdCI6MTY5OTExMDIwOSwiZXhwIjoxNjk5MTEyMzA5fQ.bSVcLBJdwXfROXR-gPrln1zjJwgxrtgHfmF7VADeIyM"} 04 11 2023 10:03:32 Envio Metodos Sem: 04 11 2023 10:03:32 Url=http://10.1.1.11:8094/ptat/metodos/metodos 04 11 2023 10:03:32 Contenido:POST http://10.1.1.11:8094/ptat/metodos/metodos HTTP/1.1 AUTHENTICATION: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImlhdCI6MTY5OTExMDIwOSwiZXhwIjoxNjk5MTEyMzA5fQ.bSVcLBJdwXfROXR-gPrln1zjJwgxrtgHfmF7VADeIyM Content-Length: 282 Content-Type: multipart/form-data; boundary="65eb14ee.3fe6c867" --65eb14ee.3fe6c867 Content-Disposition: form-data; name="con[0][con]" 29 --65eb14ee.3fe6c867 Content-Disposition: form-data; name="datos" {"id_mod":"1"} --65eb14ee.3fe6c867 Content-Disposition: form-data; name="usuario[0][usuario]" CV40367231 --65eb14ee.3fe6c867-- 04 11 2023 10:03:34 HTTP/1.1 200 OK Date: Sat, 04 Nov 2023 15:03:32 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.18 Access-Control-Allow-Origin: * Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization, Authentication Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE Allow: GET, POST, OPTIONS, PUT, DELETE Cache-Control: no-cache, private Http-Authentication: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImlhdCI6MTY5OTExMDIwOSwiZXhwIjoxNjk5MTEyMzA5fQ.bSVcLBJdwXfROXR-gPrln1zjJwgxrtgHfmF7VADeIyM X-Robots-Tag: noindex Content-Type: application/json X-Original-Transfer-Encoding: chunked Content-Length: 151 {"code":"1","status":"1","success":"1","message":"Modulos OK","info":"Modulos OK","ids":"1,3,4,5,7,8,2,11,6,9,10","id_sgc":null,"arr_informacion":null} 04 11 2023 10:03:34 datos:{"code":"1","status":"1","success":"1","message":"Modulos OK","info":"Modulos OK","ids":"1,3,4,5,7,8,2,11,6,9,10","id_sgc":null,"arr_informacion":null} 04 11 2023 10:11:34 ********************Inicia Login Movil*********************** 04 11 2023 10:11:34 ###############Datos recibidos -- 04 11 2023 10:11:34 Envio Login Movil: 04 11 2023 10:11:34 Url=http://10.1.1.11:8094/ptat/login/login_movil 04 11 2023 10:11:34 Contenido:POST http://10.1.1.11:8094/ptat/login/login_movil HTTP/1.1 AUTHENTICATION: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1Y0MDM2NzIzMSIsImNsYXZlIjoibDViNDJSUGJEK0Z3NHc3ZXd1U3NTdz09XG4iLCJleHAiOjE2OTkxMTA3MzQsImlhdCI6MTY5OTExMDY4NH0.kVTNC6yWGJfMKOZRJ6TXKL87LM8mjwVI3CjvDj0vUZ4 Content-Length: 245 Content-Type: multipart/form-data; boundary="b0330873.3feaad7b" --b0330873.3feaad7b Content-Disposition: form-data; name="json" [{"imeis":"fWsXPKKEHb0,ffffffff-c874-0103-ffff-ffffef49f440,3f2d60039094c695","ip":"","name_device":"Ciontek CS10","operador":"","version_app":"9.0.2"}] --b0330873.3feaad7b-- 04 11 2023 10:12:04 HTTP/1.1 500 Internal Server Error Date: Sat, 04 Nov 2023 15:12:04 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.18 Access-Control-Allow-Origin: * Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization, Authentication Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE Allow: GET, POST, OPTIONS, PUT, DELETE X-Debug-Exception: An%20exception%20occurred%20in%20the%20driver%3A%20SQLSTATE%5B08006%5D%20%5B7%5D%20connection%20to%20server%20at%20%22172.31.23.79%22%2C%20port%205432%20failed%3A%20timeout%20expired X-Debug-Exception-File: %2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fdoctrine%2Fdbal%2Fsrc%2FDriver%2FAPI%2FPostgreSQL%2FExceptionConverter.php:77 Cache-Control: no-cache, private X-Robots-Tag: noindex Connection: close Content-Type: text/html; charset=UTF-8 X-Original-Transfer-Encoding: chunked Content-Length: 276892
case '42P07':
return new TableExistsException($exception, $query);
case '08006':
return new ConnectionException($exception, $query);
}
// Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.4.10),
// in some cases (mainly connection errors) the PDO exception wouldn't provide a SQLSTATE via its code.
// We have to match against the SQLSTATE in the error message in these cases.
private function handleDriverException(
Driver\Exception $driverException,
?Query $query
): DriverException {
$this->exceptionConverter ??= $this->_driver->getExceptionConverter();
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
}
/**
* @param array<int, mixed>|array<string, mixed> $params
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
$this->beginTransaction();
}
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
*
* @throws Exception
*/
public function prepare(string $sql): Statement
{
$connection = $this->getWrappedConnection();
try {
$statement = $connection->prepare($sql);
} catch (Driver\Exception $e) {
throw $this->convertExceptionDuringQuery($e, $sql);
);
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
// $this->log->logs("Inicio ejecucion sql0");
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
/* switch ($con)
{
case 6:
case 5:
$resultSet = $stmt->executeQuery();
return $response;
exit;
}
$sql_man = "SELECT estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0) AND estado_modulos = 0";
$res_man = $this->cnn->query('0', $sql_man);
if (!(count($res_man) > 0))
{
$respuesta["code"] = 0;
$respuesta["datos"] = "SEM esta en mantenimiento";
$response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
if (
! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])
|| $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES] === true
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
*
* @throws Exception
*/
public function prepare(string $sql): Statement
{
$connection = $this->getWrappedConnection();
try {
$statement = $connection->prepare($sql);
} catch (Driver\Exception $e) {
throw $this->convertExceptionDuringQuery($e, $sql);
);
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
// $this->log->logs("Inicio ejecucion sql0");
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
/* switch ($con)
{
case 6:
case 5:
$resultSet = $stmt->executeQuery();
return $response;
exit;
}
$sql_man = "SELECT estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0) AND estado_modulos = 0";
$res_man = $this->cnn->query('0', $sql_man);
if (!(count($res_man) > 0))
{
$respuesta["code"] = 0;
$respuesta["datos"] = "SEM esta en mantenimiento";
$response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
$driverOptions[PDO::ATTR_PERSISTENT] = true;
}
try {
$pdo = new PDO(
$this->constructPdoDsn($params),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
$driverOptions[PDO::ATTR_PERSISTENT] = true;
}
try {
$pdo = new PDO(
$this->constructPdoDsn($params),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
*
* @throws Exception
*/
public function prepare(string $sql): Statement
{
$connection = $this->getWrappedConnection();
try {
$statement = $connection->prepare($sql);
} catch (Driver\Exception $e) {
throw $this->convertExceptionDuringQuery($e, $sql);
);
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
// $this->log->logs("Inicio ejecucion sql0");
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
/* switch ($con)
{
case 6:
case 5:
$resultSet = $stmt->executeQuery();
return $response;
exit;
}
$sql_man = "SELECT estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0) AND estado_modulos = 0";
$res_man = $this->cnn->query('0', $sql_man);
if (!(count($res_man) > 0))
{
$respuesta["code"] = 0;
$respuesta["datos"] = "SEM esta en mantenimiento";
$response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
ConnectionException
|
---|
Doctrine\DBAL\Exception\ConnectionException: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "172.31.23.79", port 5432 failed: timeout expired at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:77 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1857) at Doctrine\DBAL\Connection->convertException() (vendor/doctrine/dbal/src/Connection.php:348) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1619) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1013) at Doctrine\DBAL\Connection->prepare() (src/Services/Conexion.php:227) at App\Services\Conexion->query() (src/Controller/PtatController.php:1462) at App\Controller\PtatController->login_movil() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[08006] [7] connection to server at "172.31.23.79", port 5432 failed: timeout expired at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:35) at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:346) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1619) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1013) at Doctrine\DBAL\Connection->prepare() (src/Services/Conexion.php:227) at App\Services\Conexion->query() (src/Controller/PtatController.php:1462) at App\Controller\PtatController->login_movil() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[08006] [7] connection to server at "172.31.23.79", port 5432 failed: timeout expired at vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29 at PDO->__construct() (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29) at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:346) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1619) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1013) at Doctrine\DBAL\Connection->prepare() (src/Services/Conexion.php:227) at App\Services\Conexion->query() (src/Controller/PtatController.php:1462) at App\Controller\PtatController->login_movil() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
case '42P07':
return new TableExistsException($exception, $query);
case '08006':
return new ConnectionException($exception, $query);
}
// Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.4.10),
// in some cases (mainly connection errors) the PDO exception wouldn't provide a SQLSTATE via its code.
// We have to match against the SQLSTATE in the error message in these cases.
private function handleDriverException(
Driver\Exception $driverException,
?Query $query
): DriverException {
$this->exceptionConverter ??= $this->_driver->getExceptionConverter();
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
}
/**
* @param array<int, mixed>|array<string, mixed> $params
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
$this->beginTransaction();
}
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
*
* @throws Exception
*/
public function prepare(string $sql): Statement
{
$connection = $this->getWrappedConnection();
try {
$statement = $connection->prepare($sql);
} catch (Driver\Exception $e) {
throw $this->convertExceptionDuringQuery($e, $sql);
);
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
// $this->log->logs("Inicio ejecucion sql0");
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
/* switch ($con)
{
case 6:
case 5:
$resultSet = $stmt->executeQuery();
return $response;
exit;
}
$sql_man = "SELECT estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0) AND estado_modulos = 0";
$res_man = $this->cnn->query('0', $sql_man);
if (!(count($res_man) > 0))
{
$respuesta["code"] = 0;
$respuesta["datos"] = "SEM esta en mantenimiento";
$response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
if (
! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])
|| $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES] === true
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
*
* @throws Exception
*/
public function prepare(string $sql): Statement
{
$connection = $this->getWrappedConnection();
try {
$statement = $connection->prepare($sql);
} catch (Driver\Exception $e) {
throw $this->convertExceptionDuringQuery($e, $sql);
);
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
// $this->log->logs("Inicio ejecucion sql0");
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
/* switch ($con)
{
case 6:
case 5:
$resultSet = $stmt->executeQuery();
return $response;
exit;
}
$sql_man = "SELECT estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0) AND estado_modulos = 0";
$res_man = $this->cnn->query('0', $sql_man);
if (!(count($res_man) > 0))
{
$respuesta["code"] = 0;
$respuesta["datos"] = "SEM esta en mantenimiento";
$response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
$driverOptions[PDO::ATTR_PERSISTENT] = true;
}
try {
$pdo = new PDO(
$this->constructPdoDsn($params),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
$driverOptions[PDO::ATTR_PERSISTENT] = true;
}
try {
$pdo = new PDO(
$this->constructPdoDsn($params),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
*
* @throws Exception
*/
public function prepare(string $sql): Statement
{
$connection = $this->getWrappedConnection();
try {
$statement = $connection->prepare($sql);
} catch (Driver\Exception $e) {
throw $this->convertExceptionDuringQuery($e, $sql);
);
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
// $this->log->logs("Inicio ejecucion sql0");
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
/* switch ($con)
{
case 6:
case 5:
$resultSet = $stmt->executeQuery();
return $response;
exit;
}
$sql_man = "SELECT estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0) AND estado_modulos = 0";
$res_man = $this->cnn->query('0', $sql_man);
if (!(count($res_man) > 0))
{
$respuesta["code"] = 0;
$respuesta["datos"] = "SEM esta en mantenimiento";
$response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
ConnectionException
|
---|
Doctrine\DBAL\Exception\ConnectionException: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "172.31.23.79", port 5432 failed: timeout expired at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:77 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1857) at Doctrine\DBAL\Connection->convertException() (vendor/doctrine/dbal/src/Connection.php:348) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1619) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1013) at Doctrine\DBAL\Connection->prepare() (src/Services/Conexion.php:227) at App\Services\Conexion->query() (src/Controller/PtatController.php:1462) at App\Controller\PtatController->login_movil() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[08006] [7] connection to server at "172.31.23.79", port 5432 failed: timeout expired at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:35) at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:346) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1619) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1013) at Doctrine\DBAL\Connection->prepare() (src/Services/Conexion.php:227) at App\Services\Conexion->query() (src/Controller/PtatController.php:1462) at App\Controller\PtatController->login_movil() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[08006] [7] connection to server at "172.31.23.79", port 5432 failed: timeout expired at vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29 at PDO->__construct() (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29) at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:346) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1619) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1013) at Doctrine\DBAL\Connection->prepare() (src/Services/Conexion.php:227) at App\Services\Conexion->query() (src/Controller/PtatController.php:1462) at App\Controller\PtatController->login_movil() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |