Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/task/user/data/log/shlink_log-2025-01-06.log" could not be opened in append mode: chmod(): No such file or directory The exception occurred while attempting to log: Mezzio\Router\Exception\InvalidCacheDirectoryException: The cache directory "data/cache" is not writable in /var/task/user/vendor/mezzio/mezzio-fastroute/src/FastRouteRouter.php:558 Stack trace: #0 /var/task/user/vendor/mezzio/mezzio-fastroute/src/FastRouteRouter.php(500): Mezzio\Router\FastRouteRouter->cacheDispatchData(Array) #1 /var/task/user/vendor/mezzio/mezzio-fastroute/src/FastRouteRouter.php(214): Mezzio\Router\FastRouteRouter->getDispatchData() #2 /var/task/user/vendor/mezzio/mezzio-router/src/Middleware/RouteMiddleware.php(38): Mezzio\Router\FastRouteRouter->match(Object(Laminas\Diactoros\ServerRequest)) #3 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Mezzio\Router\Middleware\RouteMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #4 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #5 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(77): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #6 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #7 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(45): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #8 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/CloseDbConnectionMiddleware.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #9 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\CloseDbConnectionMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #10 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #11 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(77): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #12 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #13 /var/task/user/vendor/laminas/laminas-stratigility/src/Middleware/PathMiddlewareDecorator.php(37): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #14 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Laminas\Stratigility\Middleware\PathMiddlewareDecorator->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #15 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(45): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #16 /var/task/user/module/Rest/src/Middleware/CrossDomainMiddleware.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #17 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Rest\Middleware\CrossDomainMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #18 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #19 /var/task/user/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php(129): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #20 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Laminas\Stratigility\Middleware\ErrorHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #21 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #22 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/RequestIdMiddleware.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #23 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\RequestIdMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #24 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #25 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/ContentLengthMiddleware.php(16): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #26 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\ContentLengthMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #27 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #28 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/AccessLogMiddleware.php(26): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #29 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\AccessLogMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #30 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #31 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(77): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #32 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #33 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(77): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #34 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(66): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler)) #35 /var/task/user/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(73): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest)) #36 /var/task/user/vendor/mezzio/mezzio/src/Application.php(53): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #37 /var/task/user/config/run.php(13): Mezzio\Application->run() #38 /var/task/user/public/index.php(5): {closure}() #39 {main} Extra: {"request_id":"a2bfbe1e-72d0-4915-ad6e-ef02ba131ae3"} in /var/task/user/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:156 Stack trace: #0 /var/task/user/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(110): Monolog\Handler\StreamHandler->write(Object(Monolog\LogRecord)) #1 /var/task/user/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\RotatingFileHandler->write(Object(Monolog\LogRecord)) #2 /var/task/user/vendor/monolog/monolog/src/Monolog/Logger.php(390): Monolog\Handler\AbstractProcessingHandler->handle(Object(Monolog\LogRecord)) #3 /var/task/user/vendor/monolog/monolog/src/Monolog/Logger.php(580): Monolog\Logger->addRecord(Object(Monolog\Level), 'Mezzio\\Router\\E...', Array) #4 /var/task/user/vendor/shlinkio/shlink-common/src/Logger/ErrorLogger.php(23): Monolog\Logger->log(Object(Monolog\Level), 'Mezzio\\Router\\E...') #5 /var/task/user/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php(183): Shlinkio\Shlink\Common\Logger\ErrorLogger->__invoke(Object(Mezzio\Router\Exception\InvalidCacheDirectoryException), Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response)) #6 /var/task/user/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php(150): Laminas\Stratigility\Middleware\ErrorHandler->triggerListeners(Object(Mezzio\Router\Exception\InvalidCacheDirectoryException), Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response)) #7 /var/task/user/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php(131): Laminas\Stratigility\Middleware\ErrorHandler->handleThrowable(Object(Mezzio\Router\Exception\InvalidCacheDirectoryException), Object(Laminas\Diactoros\ServerRequest)) #8 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Laminas\Stratigility\Middleware\ErrorHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #9 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #10 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/RequestIdMiddleware.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #11 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\RequestIdMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #12 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #13 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/ContentLengthMiddleware.php(16): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #14 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\ContentLengthMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #15 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #16 /var/task/user/vendor/shlinkio/shlink-common/src/Middleware/AccessLogMiddleware.php(26): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #17 /var/task/user/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php(26): Shlinkio\Shlink\Common\Middleware\AccessLogMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #18 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Mezzio\Middleware\LazyLoadingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #19 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(77): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #20 /var/task/user/vendor/laminas/laminas-stratigility/src/Next.php(52): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next)) #21 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(77): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest)) #22 /var/task/user/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(66): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler)) #23 /var/task/user/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(73): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest)) #24 /var/task/user/vendor/mezzio/mezzio/src/Application.php(53): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #25 /var/task/user/config/run.php(13): Mezzio\Application->run() #26 /var/task/user/public/index.php(5): {closure}() #27 {main} thrown in /var/task/user/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 156