https://test01.nextcaddy.com/_profiler/e90a30?panel=router

Exceptions

Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/session) failed: Permission denied (13)

Exception

ErrorException

  1.      * @return int|false
  2.      */
  3.     #[\ReturnTypeWillChange]
  4.     public function gc($maxlifetime)
  5.     {
  6.         return $this->handler->gc($maxlifetime);
  7.     }
  8. }
  1.      * @return int|false
  2.      */
  3.     #[\ReturnTypeWillChange]
  4.     public function gc($maxlifetime)
  5.     {
  6.         return $this->handler->gc($maxlifetime);
  7.     }
  8.     /**
  9.      * @return bool
  10.      */
SessionHandlerProxy->gc()
  1.             // the session ID in the header is invalid, create a new one
  2.             session_id(session_create_id());
  3.         }
  4.         // ok to try and start the session
  5.         if (!session_start()) {
  6.             throw new \RuntimeException('Failed to start the session.');
  7.         }
  8.         if (null !== $this->emulateSameSite) {
  9.             $originalCookie SessionUtils::popSessionCookie(session_name(), session_id());
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag(string $name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function set(string $name$value)
  5.     {
  6.         $this->getAttributeBag()->set($name$value);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
Session->set() in src/EventSubscriber/LocaleSubscriber.php (line 30)
  1.         }
  2.         // try to get language from the HTTP_ACCEPT_LANGUAGE
  3.         $locale $this->detect($request);
  4.         if ($locale) {
  5.             $request->getSession()->set('_locale'$locale);
  6.         }
  7.         //Retrieve locale value from session, if not, the default will be used
  8.         $request->setLocale($request->getSession()->get('_locale'$this->defaultLocale));
  9.         setLocale(LC_TIME$request->getSession()->get('_locale'$this->defaultLocale));
  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.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 27)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

Level Channel Message
INFO 23:34:45 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://test01.nextcaddy.com/_profiler/latest",
    "method": "GET"
}
INFO 23:34:45 app Request GET parameters: []
INFO 23:34:45 app Request POST parameters: []
INFO 23:34:45 app Request ATTRIBUTES parameters: {"_stopwatch_token":"a4fc4c","media_type":"text\/html","_route":"_profiler","_controller":"web_profiler.controller.profiler::panelAction","token":"latest","_route_params":{"token":"latest"},"_firewall_context":"security.firewall.map.context.dev"}
INFO 23:34:45 app Request COOKIES parameters: []
INFO 23:34:45 app Request HEADERS parameters: {"accept-encoding":["gzip, br, zstd, deflate"],"user-agent":["Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)"],"accept":["*\/*"],"x-accel-internal":["\/internal-nginx-static-location"],"x-real-ip":["216.73.216.55"],"host":["test01.nextcaddy.com"],"x-php-ob-level":["1"]}
INFO 23:34:45 app Request GET parameters: {"_path":"_format=html&_locale=es&_controller=web_profiler.controller.exception_panel%3A%3Astylesheet"}
INFO 23:34:45 app Request POST parameters: []
INFO 23:34:45 app Request ATTRIBUTES parameters: {"token":"6c40bd","_format":"html","_locale":"es","_controller":"web_profiler.controller.exception_panel::stylesheet","_stopwatch_token":"7a6581"}
INFO 23:34:45 app Request COOKIES parameters: []
INFO 23:34:45 app Request HEADERS parameters: {"host":["test01.nextcaddy.com"],"user-agent":["Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)"],"accept":["*\/*"],"accept-language":["en-us,en;q=0.5"],"accept-charset":["ISO-8859-1,utf-8;q=0.7,*;q=0.7"],"accept-encoding":["gzip, br, zstd, deflate"],"x-accel-internal":["\/internal-nginx-static-location"],"x-real-ip":["216.73.216.55"],"forwarded":["for=\"216.73.216.55\";host=\"test01.nextcaddy.com\";proto=https"],"x-forwarded-for":["216.73.216.55"],"x-php-ob-level":["5"]}
INFO 23:34:45 app Request GET parameters: {"_path":"_format=html&_locale=es&_controller=web_profiler.controller.profiler%3A%3AsearchBarAction"}
INFO 23:34:45 app Request POST parameters: []
INFO 23:34:45 app Request ATTRIBUTES parameters: {"_format":"html","_locale":"es","_controller":"web_profiler.controller.profiler::searchBarAction","_stopwatch_token":"5b7ec2"}
INFO 23:34:45 app Request COOKIES parameters: []
INFO 23:34:45 app Request HEADERS parameters: {"host":["test01.nextcaddy.com"],"user-agent":["Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)"],"accept":["*\/*"],"accept-language":["en-us,en;q=0.5"],"accept-charset":["ISO-8859-1,utf-8;q=0.7,*;q=0.7"],"accept-encoding":["gzip, br, zstd, deflate"],"x-accel-internal":["\/internal-nginx-static-location"],"x-real-ip":["216.73.216.55"],"forwarded":["for=\"127.0.0.1\";host=\"test01.nextcaddy.com\";proto=https"],"x-forwarded-for":["127.0.0.1"],"x-php-ob-level":["5"]}
INFO 23:34:45 app Request GET parameters: {"_path":"_format=html&_locale=es&_controller=web_profiler.controller.exception_panel%3A%3Abody"}
INFO 23:34:45 app Request POST parameters: []
INFO 23:34:45 app Request ATTRIBUTES parameters: {"_format":"html","token":"6c40bd","_locale":"es","_controller":"web_profiler.controller.exception_panel::body","_stopwatch_token":"82d2f5"}
INFO 23:34:45 app Request COOKIES parameters: []
INFO 23:34:45 app Request HEADERS parameters: {"host":["test01.nextcaddy.com"],"user-agent":["Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)"],"accept":["*\/*"],"accept-language":["en-us,en;q=0.5"],"accept-charset":["ISO-8859-1,utf-8;q=0.7,*;q=0.7"],"accept-encoding":["gzip, br, zstd, deflate"],"x-accel-internal":["\/internal-nginx-static-location"],"x-real-ip":["216.73.216.55"],"forwarded":["for=\"127.0.0.1\";host=\"test01.nextcaddy.com\";proto=https"],"x-forwarded-for":["127.0.0.1"],"x-php-ob-level":["6"]}

Stack Trace

ErrorException
ErrorException:
Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/session) failed: Permission denied (13)

  at vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:116
  at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc()
     (vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:91)
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc()
  at session_start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:352)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
     (vendor/symfony/http-foundation/Session/Session.php:261)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (vendor/symfony/http-foundation/Session/Session.php:283)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (vendor/symfony/http-foundation/Session/Session.php:85)
  at Symfony\Component\HttpFoundation\Session\Session->set()
     (src/EventSubscriber/LocaleSubscriber.php:30)
  at App\EventSubscriber\LocaleSubscriber->onKernelRequest()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:27)