Notice: fwrite(): Write of 586 bytes failed with errno=28 No space left on device (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

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

Exception

ErrorException

Show exception properties
ErrorException {#1505
  #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.             && \in_array($record->context['exception']::class, $this->excludeExceptionListtrue)
  2.         ) {
  3.             return true;
  4.         }
  5.         return $this->handler->handle($record);
  6.     }
  7. }
  1.                 $record->extra,
  2.                 $record->formatted
  3.             );
  4.         }
  5.         return $this->handler->handle($record);
  6.     }
  7. }
  1.      * {@inheritdoc}
  2.      */
  3.     public function handle(LogRecord $record): bool
  4.     {
  5.         if ($record->channel !== 'business_events') {
  6.             return $this->handler->handle($record);
  7.         }
  8.         // exclude if the flow event is in excluded list
  9.         if (\in_array($record->message$this->excludeEventstrue)) {
  10.             return true;
  1.             }
  2.             if ($this->activationStrategy->isHandlerActivated($record)) {
  3.                 $this->activate();
  4.             }
  5.         } else {
  6.             $this->getHandler($record)->handle($record);
  7.         }
  8.         return false === $this->bubble;
  9.     }
  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.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  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.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  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 /mnt/webroot/wwww/update.krono-shop.com/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(RuntimeException))

Stack Trace

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

  at /mnt/webroot/wwww/update.krono-shop.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:162
  at Monolog\Handler\StreamHandler->streamWrite(resource, object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:149)
  at Monolog\Handler\StreamHandler->write(object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:44)
  at Monolog\Handler\AbstractProcessingHandler->handle(object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/shopware/core/Framework/Log/Monolog/ExcludeExceptionHandler.php:38)
  at Shopware\Core\Framework\Log\Monolog\ExcludeExceptionHandler->handle(object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/shopware/core/Framework/Log/Monolog/ErrorCodeLogLevelHandler.php:62)
  at Shopware\Core\Framework\Log\Monolog\ErrorCodeLogLevelHandler->handle(object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/shopware/core/Framework/Log/Monolog/ExcludeFlowEventHandler.php:31)
  at Shopware\Core\Framework\Log\Monolog\ExcludeFlowEventHandler->handle(object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php:140)
  at Monolog\Handler\FingersCrossedHandler->handle(object(LogRecord))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/monolog/monolog/src/Monolog/Logger.php:389)
  at Monolog\Logger->addRecord(object(Level), 'Uncaught PHP Exception RuntimeException: "Unable to create the storage directory (/mnt/webroot/wwww/update.krono-shop.com/var/cache/dev_hc5f3d27ab6b52e67b75b9bc66a1048c3/profiler/79/1c)." at FileProfilerStorage.php line 147', array('exception' => object(RuntimeException)))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/monolog/monolog/src/Monolog/Logger.php:579)
  at Monolog\Logger->log(object(Level), 'Uncaught PHP Exception RuntimeException: "Unable to create the storage directory (/mnt/webroot/wwww/update.krono-shop.com/var/cache/dev_hc5f3d27ab6b52e67b75b9bc66a1048c3/profiler/79/1c)." at FileProfilerStorage.php line 147', array('exception' => object(RuntimeException)))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/http-kernel/EventListener/ErrorListener.php:194)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logException(object(RuntimeException), 'Uncaught PHP Exception RuntimeException: "Unable to create the storage directory (/mnt/webroot/wwww/update.krono-shop.com/var/cache/dev_hc5f3d27ab6b52e67b75b9bc66a1048c3/profiler/79/1c)." at FileProfilerStorage.php line 147', 'critical')
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/http-kernel/EventListener/ErrorListener.php:93)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:47)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/http-kernel/HttpKernel.php:239)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(RuntimeException), object(Request), 1)
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/http-kernel/HttpKernel.php:132)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(RuntimeException), object(Request))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:82)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(RuntimeException))
     (/mnt/webroot/wwww/update.krono-shop.com/vendor/symfony/error-handler/ErrorHandler.php:531)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(RuntimeException))