Deprecated: Constant PDO::MYSQL_ATTR_SSL_CA is deprecated since 8.5, use Pdo\Mysql::ATTR_SSL_CA instead in /var/www/html/chatbot/service/config/database.php on line 62

Deprecated: Constant PDO::MYSQL_ATTR_SSL_CA is deprecated since 8.5, use Pdo\Mysql::ATTR_SSL_CA instead in /var/www/html/chatbot/service/config/database.php on line 85

Deprecated: Constant PDO::MYSQL_ATTR_SSL_CA is deprecated since 8.5, use Pdo\Mysql::ATTR_SSL_CA instead in /var/www/html/chatbot/service/config/database.php on line 105
The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission denied Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} (500 Internal Server Error)

Symfony Exception

UnexpectedValueException

HTTP 500 Internal Server Error

The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission denied
Context: {"exception":{}}
Context: {"exception":{}}
Context: {"exception":{}}
Context: {"exception":{}}

Exception

UnexpectedValueException

  1. restore_error_handler();
  2. }
  3. if (!\is_resource($stream)) {
  4. $this->stream = null;
  5. throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record));
  6. }
  7. stream_set_chunk_size($stream, $this->streamChunkSize);
  8. $this->stream = $stream;
  9. $this->inodeUrl = $this->getInodeFromUrl();
  10. }
  1. $record = $this->processRecord($record);
  2. }
  3. $record->formatted = $this->getFormatter()->format($record);
  4. $this->write($record);
  5. return false === $this->bubble;
  6. }
  7. /**
  1. }
  2. // once the record is initialized, send it to all handlers as long as the bubbling chain is not interrupted
  3. try {
  4. $handled = true;
  5. if (true === $handler->handle(clone $record)) {
  6. break;
  7. }
  8. } catch (Throwable $e) {
  9. $this->handleException($e, $record);
  1. * @param string|Stringable $message The log message
  2. * @param mixed[] $context The log context
  3. */
  4. public function error(string|\Stringable $message, array $context = []): void
  5. {
  6. $this->addRecord(Level::Error, (string) $message, $context);
  7. }
  8. /**
  9. * Adds a log record at the CRITICAL level.
  10. *
  1. * @param array $context
  2. * @return void
  3. */
  4. protected function writeLog($level, $message, $context): void
  5. {
  6. $this->logger->{$level}(
  7. $message = $this->formatMessage($message),
  8. $context = array_merge($this->context, $context)
  9. );
  10. $this->fireLogEvent($level, $message, $context);
  1. * @param array $context
  2. * @return void
  3. */
  4. public function error($message, array $context = []): void
  5. {
  6. $this->writeLog(__FUNCTION__, $message, $context);
  7. }
  8. /**
  9. * Log a warning message to the logs.
  10. *
  1. * @param array $context
  2. * @return void
  3. */
  4. public function error($message, array $context = []): void
  5. {
  6. $this->driver()->error($message, $context);
  7. }
  8. /**
  9. * Exceptional occurrences that are not errors.
  10. *
  1. );
  2. $context = $this->buildExceptionContext($e);
  3. method_exists($logger, $level)
  4. ? $logger->{$level}($e->getMessage(), $context)
  5. : $logger->log($level, $e->getMessage(), $context);
  6. }
  7. /**
  8. * Determine if the exception should be reported.
  1. if ($this->shouldntReport($e)) {
  2. return;
  3. }
  4. $this->reportThrowable($e);
  5. }
  6. /**
  7. * Reports error based on report method on exception or to logger.
  8. *
  1. * @param \Throwable $e
  2. * @return void
  3. */
  4. protected function reportException(Throwable $e)
  5. {
  6. $this->app[ExceptionHandler::class]->report($e);
  7. }
  8. /**
  9. * Render the exception to a response.
  10. *
  1. try {
  2. $request->enableHttpMethodParameterOverride();
  3. $response = $this->sendRequestThroughRouter($request);
  4. } catch (Throwable $e) {
  5. $this->reportException($e);
  6. $response = $this->renderException($request, $e);
  7. }
  8. $this->app['events']->dispatch(
Kernel->handle(object(Request)) in /var/www/html/chatbot/service/public/index.php (line 21)
  1. // Bootstrap Laravel and handle the request...
  2. $app = require_once __DIR__.'/../bootstrap/app.php';
  3. $kernel = $app->make(Kernel::class);
  4. $response = $kernel->handle(
  5. $request = Request::capture()
  6. )->send();
  7. $kernel->terminate($request, $response);

Stack Trace

UnexpectedValueException
UnexpectedValueException:
The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission denied
Context: {"exception":{}}
Context: {"exception":{}}
Context: {"exception":{}}
Context: {"exception":{}}

  at /var/www/html/chatbot/service/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:164
  at Monolog\Handler\StreamHandler->write(object(LogRecord))
     (/var/www/html/chatbot/service/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:44)
  at Monolog\Handler\AbstractProcessingHandler->handle(object(LogRecord))
     (/var/www/html/chatbot/service/vendor/monolog/monolog/src/Monolog/Logger.php:391)
  at Monolog\Logger->addRecord(object(Level), 'The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission deniedContext: {"exception":{}}Context: {"exception":{}}Context: {"exception":{}}', array('exception' => object(UnexpectedValueException)))
     (/var/www/html/chatbot/service/vendor/monolog/monolog/src/Monolog/Logger.php:646)
  at Monolog\Logger->error('The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission deniedContext: {"exception":{}}Context: {"exception":{}}Context: {"exception":{}}', array('exception' => object(UnexpectedValueException)))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Log/Logger.php:184)
  at Illuminate\Log\Logger->writeLog('error', 'The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission deniedContext: {"exception":{}}Context: {"exception":{}}Context: {"exception":{}}', array('exception' => object(UnexpectedValueException)))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Log/Logger.php:97)
  at Illuminate\Log\Logger->error('The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission deniedContext: {"exception":{}}Context: {"exception":{}}Context: {"exception":{}}', array('exception' => object(UnexpectedValueException)))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:681)
  at Illuminate\Log\LogManager->error('The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: The stream or file "/var/www/html/chatbot/service/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission deniedThe exception occurred while attempting to log: file_put_contents(/var/www/html/chatbot/service/storage/framework/views/add5d1b4e53f1613ff65f9e75bc2faaa.php): Failed to open stream: Permission deniedContext: {"exception":{}}Context: {"exception":{}}Context: {"exception":{}}', array('exception' => object(UnexpectedValueException)))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:317)
  at Illuminate\Foundation\Exceptions\Handler->reportThrowable(object(UnexpectedValueException))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:278)
  at Illuminate\Foundation\Exceptions\Handler->report(object(UnexpectedValueException))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:497)
  at Illuminate\Foundation\Http\Kernel->reportException(object(UnexpectedValueException))
     (/var/www/html/chatbot/service/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/var/www/html/chatbot/service/public/index.php:21)