Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Notice: fwrite(): Write of 424 bytes failed with errno=28 No space left on device

Exception

ErrorException

Show exception properties
ErrorException {#128
  #severity: E_NOTICE
}
  1.      * Write to stream
  2.      * @param resource $stream
  3.      */
  4.     protected function streamWrite($streamLogRecord $record): void
  5.     {
  6.         fwrite($stream, (string) $record->formatted);
  7.     }
  8.     private function customErrorHandler(int $codestring $msg): bool
  9.     {
  10.         $this->errorMessage preg_replace('{^(fopen|mkdir)\(.*?\): }'''$msg);
  1.         if ($this->useLocking) {
  2.             // ignoring errors here, there's not much we can do about them
  3.             flock($streamLOCK_EX);
  4.         }
  5.         $this->streamWrite($stream$record);
  6.         if ($this->useLocking) {
  7.             flock($streamLOCK_UN);
  8.         }
  9.     }
  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.             }
  2.             $level = static::toMonologLevel($level);
  3.         }
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.             return;
  2.         }
  3.         $logLevel ??= $this->resolveLogLevel($exception);
  4.         $this->logger->log($logLevel$message, ['exception' => $exception]);
  5.     }
  6.     /**
  7.      * Resolves the level to be used when logging the exception.
  8.      */
  1.             } while ($class $class->getParentClass());
  2.         }
  3.         $e FlattenException::createFromThrowable($throwable);
  4.         $this->logException($throwablesprintf('Uncaught PHP Exception %s: "%s" at %s line %s'$e->getClass(), $e->getMessage(), basename($e->getFile()), $e->getLine()), $logLevel);
  5.     }
  6.     /**
  7.      * @return void
  8.      */
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      * Handles a throwable by trying to convert it to a Response.
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /var/www/api/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 531)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 $exceptionHandler($exception);
  6.                 return;
  7.             }
  8.             $handlerException ??= $exception;
  9.         } catch (\Throwable $handlerException) {
ErrorHandler->handleException(object(ErrorException))

Stack Trace

ErrorException
ErrorException:
Notice: fwrite(): Write of 424 bytes failed with errno=28 No space left on device

  at /var/www/api/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:162
  at Monolog\Handler\StreamHandler->streamWrite(resource, object(LogRecord))
     (/var/www/api/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:149)
  at Monolog\Handler\StreamHandler->write(object(LogRecord))
     (/var/www/api/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:44)
  at Monolog\Handler\AbstractProcessingHandler->handle(object(LogRecord))
     (/var/www/api/vendor/monolog/monolog/src/Monolog/Logger.php:389)
  at Monolog\Logger->addRecord(object(Level), 'Uncaught PHP Exception ErrorException: "Notice: fwrite(): Write of 424 bytes failed with errno=28 No space left on device" at StreamHandler.php line 162', array('exception' => object(ErrorException)))
     (/var/www/api/vendor/monolog/monolog/src/Monolog/Logger.php:579)
  at Monolog\Logger->log(object(Level), 'Uncaught PHP Exception ErrorException: "Notice: fwrite(): Write of 424 bytes failed with errno=28 No space left on device" at StreamHandler.php line 162', array('exception' => object(ErrorException)))
     (/var/www/api/vendor/symfony/http-kernel/EventListener/ErrorListener.php:194)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logException(object(ErrorException), 'Uncaught PHP Exception ErrorException: "Notice: fwrite(): Write of 424 bytes failed with errno=28 No space left on device" at StreamHandler.php line 162', 'critical')
     (/var/www/api/vendor/symfony/http-kernel/EventListener/ErrorListener.php:93)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logKernelException(object(ExceptionEvent), 'kernel.exception', object(EventDispatcher))
     (/var/www/api/vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure), object(Closure)), 'kernel.exception', object(ExceptionEvent))
     (/var/www/api/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/var/www/api/vendor/symfony/http-kernel/HttpKernel.php:239)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(ErrorException), object(Request), 1)
     (/var/www/api/vendor/symfony/http-kernel/HttpKernel.php:132)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(ErrorException), object(Request))
     (/var/www/api/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:82)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(ErrorException))
     (/var/www/api/vendor/symfony/error-handler/ErrorHandler.php:531)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(ErrorException))