Closed fatcrobat closed 6 years ago
Yeah I just noticed the same thing.
Is there a workaround possible to get the contao setup working again? The latest composer updated broke my setup :-(
@cboelter Add "symfony/symfony": "3.4.6"
to your composer.json require
section and lock the symfony version for the moment.
You could also add
"conflict": {
"symfony/finder": "3.4.7|4.0.7"
},
If this is fixed with a contao update, you can remove that conflict before updating to the new contao version.
Can you please explain: Does the folder/symlink to system/modules/filecredits
exist in your application?
If no: the problem is in the Composer Plugin (https://github.com/contao-community-alliance/composer-plugin) If yes: the problem is probably in the Manager Plugin (https://github.com/contao/manager-plugin)
Yes, the symlink system/modules/filecredits
to ../../vendor/heimrichhannot/contao-filecredits
exists.
The problem is caused by Symfony, see https://github.com/symfony/symfony/pull/26337
@leofeyer can you add a conflict in our composer.json
before you release the next Contao version?
The conflicted versions are: 4.0.7||3.4.7
Could we add this to the Manager's composer.json very soon, preventing even more people to get stuck in this issue?
Could we add this to the Manager's composer.json very soon, preventing even more people to get stuck in this issue?
You can only prevent this by adding the conflict manually. @aschempp already mentioned to @leofeyer to add the conflict in (at least) the managed edition for the next Contao release. But this cannot affect existing installations.
The conflict needs to be set for symfony/filesystem
and not symfony/symfony
, doesn't it?
The conflict needs to be set for symfony/filesystem and not symfony/symfony, doesn't it?
Yes, well symfony/finder
actually, no? It does not matter for the managed edition though since it requires symfony/symfony
(which replaces symfony/finder
).
You are right, it is symfony/finder
.
No idea if it is manager related, but under contao 4.4.16 and symfony 3.4.7 login does not work as well:
Symfony\Component\Debug\Exception\FatalThrowableError:
Type error: Argument 1 passed to Symfony\Component\Security\Core\User\UserChecker::checkPreAuth() must be an instance of Symfony\Component\Security\Core\User\UserInterface, string given, called in /home/kwagner/Kunden/beg/corporate/produkte/contao/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.php on line 48
at vendor/symfony/symfony/src/Symfony/Component/Security/Core/User/UserChecker.php:29
at Symfony\Component\Security\Core\User\UserChecker->checkPreAuth('anon.')
(vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.php:48)
at Symfony\Component\Security\Core\Authentication\Provider\SimpleAuthenticationProvider->authenticate(object(AnonymousToken))
(vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php:76)
at Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager->authenticate(object(AnonymousToken))
(vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php:87)
at Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener->handle(object(GetResponseEvent))
(vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php:46)
at Symfony\Bundle\SecurityBundle\Debug\WrappedListener->handle(object(GetResponseEvent))
(vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php:35)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->handleRequest(object(GetResponseEvent), object(RewindableGenerator))
(vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php:56)
at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(GetResponseEvent))
(vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php:48)
at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(array(object(TraceableFirewallListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:104)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
(vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212)
at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))
(vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:139)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:127)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:64)
With Symfony 3.4.6 the login works.
@K0NZ1 This is another bug in Symfony 3.4.7: https://github.com/symfony/symfony/issues/26775
Fixed in contao/core-bundle@51b103b9c6532d52044e68a41e1f8b3cf17d9433 and contao/core-bundle@70da9c4248a4212114172115393ceccdaf9944cd.
Update to Symfony 3.4.8 also crashed an installation. No backend nor frontend access. Manager works. Added the conflict to 3.4.8 in composer.json. Runs well after update.
Got these log entries:
[2018-04-06 17:50:57] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"HEAD"} []
[2018-04-06 17:50:57] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:50:57] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:50:57] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:50:57] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:50:57] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"GET"} []
[2018-04-06 17:50:57] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:50:57] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:50:57] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:50:57] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:01] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"HEAD"} []
[2018-04-06 17:51:01] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:01] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:01] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:01] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:01] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"GET"} []
[2018-04-06 17:51:01] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:01] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:01] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:01] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction","_route":"contao_backend_login"},"request_uri":"domain.tld/contao/login","method":"HEAD"} []
[2018-04-06 17:51:03] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction","_route":"contao_backend_login"},"request_uri":"domain.tld/contao/login","method":"GET"} []
[2018-04-06 17:51:03] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"HEAD"} []
[2018-04-06 17:51:03] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"GET"} []
[2018-04-06 17:51:03] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:03] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:03] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:06] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction","_route":"contao_backend_login"},"request_uri":"domain.tld/contao/login","method":"HEAD"} []
[2018-04-06 17:51:06] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:06] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:06] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:06] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:06] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction","_route":"contao_backend_login"},"request_uri":"domain.tld/contao/login","method":"GET"} []
[2018-04-06 17:51:06] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:06] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:06] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:06] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:07] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"HEAD"} []
[2018-04-06 17:51:07] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:07] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:07] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:07] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:07] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"GET"} []
[2018-04-06 17:51:07] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:07] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:07] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:07] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:28] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"HEAD"} []
[2018-04-06 17:51:28] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:28] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:28] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:28] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:28] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"GET"} []
[2018-04-06 17:51:28] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:28] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:28] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:28] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] request.INFO: Matched route "contao_index". {"route":"contao_index","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","_route":"contao_index"},"request_uri":"domain.tld/","method":"HEAD"} []
[2018-04-06 17:51:38] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] request.INFO: Matched route "contao_index". {"route":"contao_index","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","_route":"contao_index"},"request_uri":"domain.tld/","method":"GET"} []
[2018-04-06 17:51:38] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"HEAD"} []
[2018-04-06 17:51:38] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"domain.tld/favicon.ico","method":"GET"} []
[2018-04-06 17:51:38] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /www/htdocs/w017f47b/domain.tld/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-04-06 17:51:38] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
[2018-04-06 17:51:38] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /www/htdocs/w017f47b/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} []
There is no favicon in this installation, also no link to a favicon.
When clearing in manager the compsoer cache i got this displayed:
Cache directory does not exist (cache-vcs-dir):
Clearing cache (cache-repo-dir): /www/htdocs/w017f47b/domain.tld/contao-manager/cache/repo
Clearing cache (cache-files-dir): /www/htdocs/w017f47b/domain.tld/contao-manager/cache/files
Clearing cache (cache-dir): /www/htdocs/w017f47b/domain.tld/contao-manager/cache
All caches cleared.
Stack trace:
Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException:
A Token was not found in the TokenStorage.
at vendor\symfony\symfony\src\Symfony\Component\Security\Http\Firewall\AccessListener.php:51
at Symfony\Component\Security\Http\Firewall\AccessListener->handle(object(GetResponseEvent))
(vendor\symfony\symfony\src\Symfony\Bundle\SecurityBundle\Debug\WrappedListener.php:46)
at Symfony\Bundle\SecurityBundle\Debug\WrappedListener->handle(object(GetResponseEvent))
(vendor\symfony\symfony\src\Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener.php:35)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->handleRequest(object(GetResponseEvent), object(RewindableGenerator))
(vendor\symfony\symfony\src\Symfony\Component\Security\Http\Firewall.php:56)
at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(GetResponseEvent))
(vendor\symfony\symfony\src\Symfony\Bundle\SecurityBundle\EventListener\FirewallListener.php:48)
at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(array(object(TraceableFirewallListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\Debug\WrappedListener.php:104)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
(vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php:212)
at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))
(vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php:44)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher.php:139)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:127)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web\app_dev.php:64)
This issue was closed because the mentioned problem in Symfony was fixed in the latest version. Your problem seems to be something else, so a different issue would be appropriate. Also, the "clear composer cache" messages seem correct to me, maybe you're mistaking "composer cache" with "application cache"?
Sorry, but I can confirm slightly similar issues on several hosts (Metanet, cyon.ch, Hosteurope Webserver), the first both under PHP 7.2, the last one under 7.1
[2018-04-08 16:38:55] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction","_route":"contao_backend_login"},"request_uri":"http://kikmedia.cyon.link/contao/login","method":"HEAD"} [] [2018-04-08 16:38:55] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2018-04-08 16:38:55] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /home/kikmedia/public_html/payloads/anastacia/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2018-04-08 16:38:55] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /home/kikmedia/public_html/payloads/anastacia/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} [] [2018-04-08 16:38:55] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the TokenStorage. at /home/kikmedia/public_html/payloads/anastacia/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:51)"} [] [2018-04-08 16:38:55] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction","_route":"contao_backend_login"},"request_uri":"http://kikmedia.cyon.link/contao/login","method":"GET"} [] [2018-04-08 16:38:55] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2018-04-08 16:38:55] security.INFO: SimplePreAuthentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\UsernameNotFoundException(code: 0): Can only load user \"frontend\" or \"backend\". at /home/kikmedia/public_html/payloads/anastacia/vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:75)","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
After downgrading to Symfony 3.4.6, everything worked out to be fine.
@kikmedia yes, but it's a different issue from the original one. A separate ticket should be created. And you should app_dev.php to get the stack trace. Don't post your whole log ;)
Symfony 3.4.7 was released 3 hours ago. When using legacy modules we get the following error on running composer update:
With Symfony 3.4.6 everything works fine.
The module name seems to be wrong and changed from 3.4.6 to 3.4.7: