Hi,
i followed the documentation to migrate my centreon from centos 7 to debian 11.
When I log in to the new centreon with the default admin account, I get stuck on that error :
![](https://uploads-eu-west-1.insided.com/centreon-en/attachment/acd75a2d-fbb0-4620-ad60-2256399c850a.png)
I usually log in with LDAP user which is already configured, but got the same error. The error logs below are the same wether I log in with the local admin account or with the LDAP user account.
Reading /var/log/centreon/login.log, it seems like the authentication succeeded :
2023-09-16 11:52:51|1|0|0||local] cx.x.x.x] Authentication succeeded for 'admin'
Reading /var/log/apache2/error.log, I get the following :
bSat Sep 16 11:52:45.063415 2023] 2proxy_fcgi:error] rpid 61825] 1client x.x.x.x:49339] AH01071: Got error 'PHP message: CRITICAL: You are not authorized to access this resource {"context":"eobject] (Symfony\\\\Component\\\\Security\\\\Core\\\\Exception\\\\AccessDeniedException(code: 403): You are not authorized to access this resource at /usr/share/centreon/vendor/symfony/framework-bundle/Controller/AbstractController.php:358)"}\n', referer: http://mycentreon.org/centreon/monitoring/resources
From time to time, I also get this error in /var/log/apache2/error.log :
bSat Sep 16 11:53:43.930585 2023] 2proxy_fcgi:error] rpid 61941] 1client 127.0.0.1:59404] AH01071: Got error 'PHP message: ERROR: No route found for "GET http://127.0.0.1/centreon/api/latest/auto-discovery/scheduling/jobs" {"context":"eobject] (Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException(code: 0): No route found for \\"GET http://127.0.0.1/centreon/api/latest/auto-discovery/scheduling/jobs\\" at /usr/share/centreon/vendor/symfony/http-kernel/EventListener/RouterListener.php:135)\\n3previous exception] tobject] (Symfony\\\\Component\\\\Routing\\\\Exception\\\\ResourceNotFoundException(code: 0): No routes found for \\"/centreon/api/latest/auto-discovery/scheduling/jobs/\\". at /usr/share/centreon/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:74)"}\n'
Reading /var/log/centreon/centreon-web.log, I get this error :
-2023-09-16T11:52:49+0200] +ERROR] ECore\Security\Authentication\Application\UseCase\Login\Login:133]: An error occurred during authentication {"trace":"Core\\Security\\Authentication\\Domain\\Exception\\AuthenticationException: Authentication failed in /usr/share/centreon/src/Core/Security/Authentication/Domain/Exception/AuthenticationException.php:32\nStack trace:\n#0 /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php(163): Core\\Security\\Authentication\\Domain\\Exception\\AuthenticationException::notAuthenticated()\n#1 /usr/share/centreon/src/Core/Security/Authentication/Infrastructure/Provider/Local.php(75): Security\\Domain\\Authentication\\Model\\LocalProvider->authenticateOrFail()\n#2 /usr/share/centreon/src/Core/Security/Authentication/Application/UseCase/Login/Login.php(95): Core\\Security\\Authentication\\Infrastructure\\Provider\\Local->authenticateOrFail()\n#3 /usr/share/centreon/src/Core/Security/Authentication/Infrastructure/Api/Login/Local/LoginController.php(68): Core\\Security\\Authentication\\Application\\UseCase\\Login\\Login->__invoke()\n#4 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(163): Core\\Security\\Authentication\\Infrastructure\\Api\\Login\\Local\\LoginController->__invoke()\n#5 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#6 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#7 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#8 {main}"}
I don’t know where these could be coming from.
Any help would be much appreciated !