Loading…
Loading the web debug toolbar…
Attempt #
{"code":0,"message":"Unable to create the storage directory (\/var\/www\/html\/var\/cache\/dev\/profiler\/86\/ee)."} Unable to create the storage directory (/var/www/html/var/cache/dev/profiler/f6/59). (500 Internal Server Error)

Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Unable to create the storage directory (/var/www/html/var/cache/dev/profiler/f6/59).

Exception

RuntimeException

  1.         $profileIndexed = is_file($file);
  2.         if (!$profileIndexed) {
  3.             // Create directory
  4.             $dir = \dirname($file);
  5.             if (!is_dir($dir) && false === @mkdir($dir, 0777, true) && !is_dir($dir)) {
  6.                 throw new \RuntimeException(sprintf('Unable to create the storage directory (%s).', $dir));
  7.             }
  8.         }
  9.         $profileToken = $profile->getToken();
  10.         // when there are errors in sub-requests, the parent and/or children tokens
  1.             if ($collector instanceof LateDataCollectorInterface) {
  2.                 $collector->lateCollect();
  3.             }
  4.         }
  5.         if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
  6.             $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => $this->storage::class]);
  7.         }
  8.         return $ret;
  9.     }
  1.             }
  2.         }
  3.         // save profiles
  4.         foreach ($this->profiles as $request) {
  5.             $this->profiler->saveProfile($this->profiles[$request]);
  6.         }
  7.         $this->profiles = new \SplObjectStorage();
  8.         $this->parents = new \SplObjectStorage();
  9.     }
  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.         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.     /**
  2.      * @return void
  3.      */
  4.     public function terminate(Request $request, Response $response)
  5.     {
  6.         $this->dispatcher->dispatch(new TerminateEvent($this, $request, $response), KernelEvents::TERMINATE);
  7.     }
  8.     /**
  9.      * @internal
  10.      */
  1.         }
  2.         $response->sendHeaders();
  3.         $response->sendContent();
  4.         $this->terminate($request, $response);
  5.     }
  6.     /**
  7.      * Handles a request to convert it to a response.
  8.      *
  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/html/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 538)
  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

RuntimeException
RuntimeException:
Unable to create the storage directory (/var/www/html/var/cache/dev/profiler/f6/59).

  at /var/www/html/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:147
  at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->write(object(Profile))
     (/var/www/html/vendor/symfony/http-kernel/Profiler/Profiler.php:104)
  at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile(object(Profile))
     (/var/www/html/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:135)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate(object(TerminateEvent), 'kernel.terminate', object(TraceableEventDispatcher))
     (/var/www/html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(TerminateEvent), 'kernel.terminate', object(TraceableEventDispatcher))
     (/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener)), 'kernel.terminate', object(TerminateEvent))
     (/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (/var/www/html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:115)
  at Symfony\Component\HttpKernel\HttpKernel->terminate(object(Request), object(JsonResponse))
     (/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:142)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(RuntimeException), object(Request))
     (/var/www/html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(RuntimeException))
     (/var/www/html/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(RuntimeException))