Symfony Exception

ErrorException

HTTP 500 Internal Server Error

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

Exception

ErrorException

Show exception properties
ErrorException {#705
  #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.      * @return callable
  2.      */
  3.     protected function forwardsTo($method)
  4.     {
  5.         return fn (...$arguments) => static::$app
  6.             $this->{$method}(...$arguments)
  7.             : false;
  8.     }
  9.     /**
  10.      * Determine if the error level is a deprecation.
HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
  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.         if ($this->nextRotation <= $record->datetime) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  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.      * @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.             throw $e;
  2.         }
  3.         $handler $this->container->make(ExceptionHandler::class);
  4.         $handler->report($e);
  5.         $response $handler->render($passable$e);
  6.         if (is_object($response) && method_exists($response'withException')) {
  7.             $response->withException($e);
  1.     {
  2.         return function ($passable) use ($destination) {
  3.             try {
  4.                 return $destination($passable);
  5.             } catch (Throwable $e) {
  6.                 return $this->handleException($passable$e);
  7.             }
  8.         };
  9.     }
  10.     /**
  1.                     ]);
  2.                 });
  3.             }
  4.         }
  5.         return $next($request);
  6.     }
  7. }
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.             if ($psrRequest !== null) {
  2.                 $container->instance(LaravelRequestFetcher::CONTAINER_PSR7_INSTANCE_KEY$psrRequest);
  3.             }
  4.         }
  5.         return $next($request);
  6.     }
  7.     private function resolvePsrRequest(Container $container): ?ServerRequestInterface
  8.     {
  9.         try {
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         if ($max && $request->server('CONTENT_LENGTH') > $max) {
  2.             throw new PostTooLargeException;
  3.         }
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Determine the server 'post_max_size' as bytes.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      * @return \Illuminate\Http\Response
  2.      */
  3.     public function handle($requestClosure $next)
  4.     {
  5.         if (! $this->hasMatchingPath($request)) {
  6.             return $next($request);
  7.         }
  8.         $this->cors->setOptions($this->container['config']->get('cors', []));
  9.         if ($this->cors->isPreflightRequest($request)) {
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         if (app()->bound(HubInterface::class)) {
  3.             $this->startTransaction($requestapp(HubInterface::class));
  4.         }
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Handle the application termination.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.         $this->bootstrap();
  2.         return (new Pipeline($this->app))
  3.                     ->send($request)
  4.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5.                     ->then($this->dispatchToRouter());
  6.     }
  7.     /**
  8.      * Bootstrap the application for HTTP requests.
  9.      *
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

Stack Trace

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

  at /home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:162
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:255)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
  at fwrite()
     (/home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:162)
  at Monolog\Handler\StreamHandler->streamWrite()
     (/home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:149)
  at Monolog\Handler\StreamHandler->write()
     (/home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:113)
  at Monolog\Handler\RotatingFileHandler->write()
     (/home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:44)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Logger.php:389)
  at Monolog\Logger->addRecord()
     (/home/avtoshina/www/avtoshina.site/vendor/monolog/monolog/src/Monolog/Logger.php:644)
  at Monolog\Logger->error()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Log/Logger.php:184)
  at Illuminate\Log\Logger->writeLog()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Log/Logger.php:97)
  at Illuminate\Log\Logger->error()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:681)
  at Illuminate\Log\LogManager->error()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:317)
  at Illuminate\Foundation\Exceptions\Handler->reportThrowable()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:278)
  at Illuminate\Foundation\Exceptions\Handler->report()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:49)
  at Illuminate\Routing\Pipeline->handleException()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php:45)
  at Sentry\Laravel\Http\SetRequestIpMiddleware->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php:31)
  at Sentry\Laravel\Http\SetRequestMiddleware->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:49)
  at Illuminate\Http\Middleware\HandleCors->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php:87)
  at Sentry\Laravel\Tracing\Middleware->handle()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/avtoshina/www/avtoshina.site/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/avtoshina/www/avtoshina.site/public/index.php:51)