http://51.159.55.97:8080/_profiler/latest?panel=time&url=_profiler%2Faa1ba0

Exceptions

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

Exception

ErrorException

  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function gc($maxlifetime)
  5.     {
  6.         return $this->handler->gc($maxlifetime);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function gc($maxlifetime)
  5.     {
  6.         return (bool) $this->handler->gc($maxlifetime);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
SessionHandlerProxy->gc()
  1.         if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file$line)) {
  2.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
  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($name) {
  5.         $bag $this->storage->getBag($name);
  6.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  7.     }
  8.     /**
  1.      * Note that this method was added to help with IDE autocompletion.
  2.      *
  3.      * @return AttributeBagInterface
  4.      */
  5.     private function getAttributeBag() {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function get($name$default null) {
  5.         return $this->getAttributeBag()->get($name$default);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.      * @param Container $container
  2.      */
  3.     public function setContainer(\Symfony\Component\DependencyInjection\Container $container)
  4.     {
  5.         $this->container $container;
  6.         $this->DBName $container->get('session')->get('DBName'"default") ;
  7.         return ;
  8.     }
  9.     
  10.     /**
  11.      * Effectue l'initialisation, une fois qu'on a reçu le container et qu'on connait la BDD sur laquelle travailler
  1. $d->addEventListener([=> 'loadClassMetadata'], 'doctrine.orm.auto_generate_proxy_classes_listeners.attach_entity_listeners');
  2. $d->addEventListener([=> 'loadClassMetadata'], 'doctrine.orm.default_listeners.attach_entity_listeners');
  3. $this->services['doctrine.dbal.default_connection'] = $instance = (new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory([]))->createConnection(['charset' => 'utf8''driver' => $this->getEnv('resolve:doctrine_database_driver'), 'host' => $this->getEnv('resolve:doctrine_database_host'), 'port' => $this->getEnv('resolve:doctrine_database_port'), 'dbname' => $this->getEnv('resolve:doctrine_database_name'), 'user' => $this->getEnv('resolve:doctrine_database_user'), 'password' => $this->getEnv('resolve:doctrine_database_password'), 'driverOptions' => [], 'wrapperClass' => 'App\\PaaBundle\\Component\\Connection\\ConnectionWrapper''serverVersion' => '4''defaultTableOptions' => ['charset' => 'utf8']], $a$d, []);
  4. $instance->setContainer($this);
  5. $instance->initialise();
  6. return $instance;
  1.         return require $this->containerDir.\DIRECTORY_SEPARATOR.'removed-ids.php';
  2.     }
  3.     protected function load($file$lazyLoad true)
  4.     {
  5.         return require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  6.     }
  7.     /**
  8.      * Gets the public 'cache.app' shared service.
  9.      *
  1. $a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy(0true));
  2. $a->setQuoteStrategy(($this->privates['doctrine.orm.quote_strategy.default'] ?? ($this->privates['doctrine.orm.quote_strategy.default'] = new \Doctrine\ORM\Mapping\DefaultQuoteStrategy())));
  3. $a->setEntityListenerResolver(new \Doctrine\Bundle\DoctrineBundle\Mapping\ContainerEntityListenerResolver($this));
  4. $a->setRepositoryFactory(($this->privates['doctrine.orm.container_repository_factory'] ?? $this->load('getDoctrine_Orm_ContainerRepositoryFactoryService.php')));
  5. $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create(($this->services['doctrine.dbal.default_connection'] ?? $this->load('getDoctrine_Dbal_DefaultConnectionService.php')), $a);
  6. (new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator([], []))->configure($instance);
  7. return $instance;
  1.         return require $this->containerDir.\DIRECTORY_SEPARATOR.'removed-ids.php';
  2.     }
  3.     protected function load($file$lazyLoad true)
  4.     {
  5.         return require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  6.     }
  7.     /**
  8.      * Gets the public 'cache.app' shared service.
  9.      *
  1.         $this->loading[$id] = true;
  2.         try {
  3.             if (isset($this->fileMap[$id])) {
  4.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->load($this->fileMap[$id]);
  5.             } elseif (isset($this->methodMap[$id])) {
  6.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->{$this->methodMap[$id]}();
  7.             }
  8.         } catch (\Exception $e) {
  9.             unset($this->services[$id]);
  1.      * @throws \Exception                        if an exception has been thrown when the service has been resolved
  2.      *
  3.      * @see Reference
  4.      */
  5.     public function get($id$invalidBehavior /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1) {
  6.         return $this->services[$id] ?? $this->services[$id $this->aliases[$id] ?? $id] ?? ('service_container' === $id $this : ($this->factories[$id] ?? [$this'make'])($id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function getService($name) {
  5.         return $this->container->get($name);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.         if (! isset($this->managers[$name])) {
  2.             throw new InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.'$this->name$name));
  3.         }
  4.         return $this->getService($this->managers[$name]);
  5.     }
  6.     /**
  7.      * {@inheritdoc}
  8.      */
AbstractManagerRegistry->getManager() in src/Event/ForceBruteListener.php (line 32)
  1.     private $entityManager;
  2.     private $security;
  3.     public function __construct($project_dir$doctrineSecurity $security) {
  4.         $this->project_dir $project_dir;
  5.         $this->entityManager $doctrine->getManager() ;
  6.         $this->security $security ;
  7.     }
  8.     // Capture des exceptions "page not found"
  9.     public function onKernelException(GetResponseForExceptionEvent $event) {
  1.      * @return \App\Event\ForceBruteListener
  2.      */
  3.     protected function getForceBruteListenerService()
  4.     {
  5.         return $this->privates['App\\Event\\ForceBruteListener'] = new \App\Event\ForceBruteListener($this->targetDirs[3], ($this->services['doctrine'] ?? $this->getDoctrineService()), new \Symfony\Component\Security\Core\Security(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($this->getService, [
  6.             'security.authorization_checker' => ['services''security.authorization_checker''getSecurity_AuthorizationCheckerService'false],
  7.             'security.token_storage' => ['services''security.token_storage''getSecurity_TokenStorageService'false],
  8.         ])));
  9.     }
  10.     /**
in var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php->getForceBruteListenerService (line 484)
  1.         }, => 'onKernelException'], 0);
  2.         $instance->addListener('kernel.exception', [=> function () {
  3.             return ($this->privates['App\\Event\\ForceBruteListener'] ?? $this->getForceBruteListenerService());
  4.         }, => 'onKernelException'], 0);
  5.         $instance->addListener('kernel.controller', [=> function () {
  6.             return ($this->privates['App\\Event\\ForceBruteListener'] ?? $this->getForceBruteListenerService());
  7.         }, => 'onKernelController'], 0);
  8.         $instance->addListener('kernel.exception', [=> function () {
  9.             return ($this->privates['App\\PaaBundle\\Component\\EventListener\\ExceptionListener'] ?? ($this->privates['App\\PaaBundle\\Component\\EventListener\\ExceptionListener'] = new \App\PaaBundle\Component\EventListener\ExceptionListener($this->targetDirs[3])));
  10.         }, => 'onKernelException'], 0);
  11.         $instance->addListener('kernel.request', [=> function () {
in vendor/symfony/event-dispatcher/EventDispatcher.php->ContainerOef5cES\{closure} (line 219)
  1.         $this->sorted[$eventName] = [];
  2.         foreach ($this->listeners[$eventName] as $priority => $listeners) {
  3.             foreach ($listeners as $k => $listener) {
  4.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure) {
  5.                     $listener[0] = $listener[0]();
  6.                     $this->listeners[$eventName][$priority][$k] = $listener;
  7.                 }
  8.                 $this->sorted[$eventName][] = $listener;
  9.             }
  10.         }
  1.             if (empty($this->listeners[$eventName])) {
  2.                 return [];
  3.             }
  4.             if (!isset($this->sorted[$eventName])) {
  5.                 $this->sortListeners($eventName);
  6.             }
  7.             return $this->sorted[$eventName];
  8.         }
  1.             $this->orphanedEvents[] = $eventName;
  2.             return;
  3.         }
  4.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  5.             $priority $this->getListenerPriority($eventName$listener);
  6.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  7.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  8.             $this->dispatcher->removeListener($eventName$listener);
  9.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  1.         if (null !== $this->logger && $event->isPropagationStopped()) {
  2.             $this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.'$eventName));
  3.         }
  4.         $this->preProcess($eventName);
  5.         try {
  6.             $this->preDispatch($eventName$event);
  7.             try {
  8.                 $e $this->stopwatch->start($eventName'section');
  9.                 try {
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new FilterControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER$event);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller);
  1.      */
  2.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true) {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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 28)
  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. // // LG 20220802 pour tests
  7. // if (file_exists("/home/luc/partage_win10/Poubelle/")) {
  8. //     $jsonfile = "/home/luc/partage_win10/Poubelle/comparePasswords.txt";
  9. // } else if (file_exists("/var/www/html/PAA/Recette/var/log/")) {

Stack Trace

ErrorException

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

  at vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:101
  at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc()
     (vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:83)
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc()
  at session_start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:153)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
     (vendor/symfony/http-foundation/Session/Session.php:231)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (vendor/symfony/http-foundation/Session/Session.php:253)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (vendor/symfony/http-foundation/Session/Session.php:68)
  at Symfony\Component\HttpFoundation\Session\Session->get()
     (src/PaaBundle/Component/Connection/ConnectionWrapper.php:59)
  at App\PaaBundle\Component\Connection\ConnectionWrapper->setContainer()
     (var/cache/dev/ContainerOef5cES/getDoctrine_Dbal_DefaultConnectionService.php:43)
  at require('/var/www/html/PAA/Recette/var/cache/dev/ContainerOef5cES/getDoctrine_Dbal_DefaultConnectionService.php')
     (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:428)
  at ContainerOef5cES\srcApp_KernelDevDebugContainer->load()
     (var/cache/dev/ContainerOef5cES/getDoctrine_Orm_DefaultEntityManagerService.php:52)
  at require('/var/www/html/PAA/Recette/var/cache/dev/ContainerOef5cES/getDoctrine_Orm_DefaultEntityManagerService.php')
     (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:428)
  at ContainerOef5cES\srcApp_KernelDevDebugContainer->load()
     (vendor/symfony/dependency-injection/Container.php:229)
  at Symfony\Component\DependencyInjection\Container->make()
     (vendor/symfony/dependency-injection/Container.php:212)
  at Symfony\Component\DependencyInjection\Container->get()
     (vendor/symfony/doctrine-bridge/ManagerRegistry.php:34)
  at Symfony\Bridge\Doctrine\ManagerRegistry->getService()
     (vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php:154)
  at Doctrine\Persistence\AbstractManagerRegistry->getManager()
     (src/Event/ForceBruteListener.php:32)
  at App\Event\ForceBruteListener->__construct()
     (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:964)
  at ContainerOef5cES\srcApp_KernelDevDebugContainer->getForceBruteListenerService()
     (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:484)
  at ContainerOef5cES\srcApp_KernelDevDebugContainer->ContainerOef5cES\{closure}()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:219)
  at Symfony\Component\EventDispatcher\EventDispatcher->sortListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->getListeners()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:257)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->preProcess()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:133)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:65)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:28)