Fatal error: Uncaught RuntimeException: [error] create: SQLSTATE[HY000] [2002] Connection refused (SQL: insert into `tgtapi_logaccess` (`message`, `access_time`, `access_remote_addr`, `access_token`, `endpoint_url`, `endpoint_method`, `endpoint_parameters`, `endpoint_headers`, `endpoint_sbody`, `updated_at`, `created_at`) values (Acceso registrado automáticamente, 2025-12-26 09:26:55, 172.29.0.1, , http://apikrama.staging.monbus.es/sitemap.xml, GET, , {"Host":["apikrama.staging.monbus.es"],"X-Forwarded-Scheme":["https"],"X-Forwarded-Proto":["https"],"X-Forwarded-For":["216.73.216.132"],"X-Real-IP":["216.73.216.132"],"Connection":["close"],"accept":["*\/*"],"user-agent":["Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)"],"accept-encoding":["gzip, br, zstd, deflate"]}, , 2025-12-26 09:26:55, 2025-12-26 09:26:55)) in /var/www/html/core/Infrastructure/Persistence/EloquentRepository.php:131
Stack trace:
#0 /var/www/html/bootstrap/bootstrap.php(44): Core\Infrastructure\Persistence\EloquentRepository->create(Array)
#1 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(283): Closure->{closure}(Object(Slim\Psr7\Request), Object(Slim\Routing\RouteRunner))
#2 /var/www/html/vendor/tuupola/cors-middleware/src/CorsMiddleware.php(155): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request))
#3 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Tuupola\Middleware\CorsMiddleware->process(Object(Slim\Psr7\Request), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#4 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request))
#5 /var/www/html/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#6 /var/www/html/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(Slim\Psr7\Request))
#7 /var/www/html/bootstrap/bootstrap.php(78): Slim\App->run()
#8 /var/www/html/public/index.php(3): require('/var/www/html/b...')
#9 {main}
thrown in /var/www/html/core/Infrastructure/Persistence/EloquentRepository.php on line 131