Fatal error: Uncaught UnexpectedValueException: The stream or file "/app/logs/application/app.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: 404 Not Found Type: Slim\Exception\HttpNotFoundException Code: 404 Message: Not found. File: /app/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php Line: 76 Trace: #0 /app/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(44): Slim\Middleware\RoutingMiddleware->performRouting(Object(Slim\Psr7\Request)) #1 /app/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\RoutingMiddleware->process(Object(Slim\Psr7\Request), Object(Psr\Http\Server\RequestHandlerInterface@anonymous)) #2 /app/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) #3 /app/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Psr7\Request), Object(Psr\Http\Server\RequestHandlerInterface@anonymous)) #4 /app/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) #5 /app/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #6 /app/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(Slim\Psr7\Request)) #7 /app/public/index.php(42): Slim\App->run() #8 {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor. in /app/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:156 Stack trace: #0 /app/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\StreamHandler->write(Object(Monolog\LogRecord)) #1 /app/vendor/monolog/monolog/src/Monolog/Logger.php(391): Monolog\Handler\AbstractProcessingHandler->handle(Object(Monolog\LogRecord)) #2 /app/vendor/monolog/monolog/src/Monolog/Logger.php(646): Monolog\Logger->addRecord(Object(Monolog\Level), '404 Not Found\nT...', Array) #3 /app/vendor/slim/slim/Slim/Handlers/ErrorHandler.php(275): Monolog\Logger->error('404 Not Found\nT...') #4 /app/vendor/slim/slim/Slim/Handlers/ErrorHandler.php(267): Slim\Handlers\ErrorHandler->logError('404 Not Found\nT...') #5 /app/vendor/slim/slim/Slim/Handlers/ErrorHandler.php(133): Slim\Handlers\ErrorHandler->writeToErrorLog() #6 /app/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(92): Slim\Handlers\ErrorHandler->__invoke(Object(Slim\Psr7\Request), Object(Slim\Exception\HttpNotFoundException), false, true, true) #7 /app/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(79): Slim\Middleware\ErrorMiddleware->handleException(Object(Slim\Psr7\Request), Object(Slim\Exception\HttpNotFoundException)) #8 /app/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Psr7\Request), Object(Psr\Http\Server\RequestHandlerInterface@anonymous)) #9 /app/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) #10 /app/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #11 /app/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(Slim\Psr7\Request)) #12 /app/public/index.php(42): Slim\App->run() #13 {main} thrown in /app/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 156