This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

ERR_TOO_MANY_REDIRECTS on debian7 ?

Discuss installing Symfony 2 here

ERR_TOO_MANY_REDIRECTS on debian7 ?

by dorian53000 » Sat Jun 14, 2014 2:34 pm

Hello,

My project works fine with WAMP but not when I deploy on debian7.
No route works : ERR_TOO_MANY_REDIRECTS.
I have cleared cache.

security.ylm
Code: Select all
security:
    access_decision_manager:
        strategy: unanimous

    encoders:
        Symfony\Component\Security\Core\User\User: plaintext
        Alt\Bundle\UserBundle\Entity\User: sha512

    role_hierarchy:
        USERGROUPE_ROLE_ADMIN: [USERGROUPE_ROLE_HABILITATION]
        USERGROUPE_ROLE_HABILITATION: [USERGROUPE_ROLE_CREATION_USER]

    providers:
        users:
            id: alt_user.security.user_provider

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt|trans)|css|img|js)/
            security: false

        login:
            pattern:  ^/(.*)/(.*)/(login|reset_password)$
            security: false

        bdu:
            provider: users
            pattern:    ^/
            form_login:
                check_path: login_check
                login_path: user_login
                csrf_provider: form.csrf_provider
                success_handler: alt_user.security.authentication_handler
                failure_handler: alt_user.security.authentication_handler
                username_parameter: email
                password_parameter: password
            logout:
                path:   logout
                target: user_login
            #anonymous: ~
            #http_basic:
            #    realm: "Secured Demo Area"

    access_control:
        - { path: ^/, roles: ROLE_USER, requires_channel: https }


routing.ylm
Code: Select all
alt_user:
    resource: "@AltUserBundle/Controller/"
    type:     annotation
    prefix:   /{client}/{_locale}/
    requirements:
        _locale: fr|en

alt_bdu:
    resource: "@AltBduBundle/Controller/"
    type:     annotation
    prefix:   /{client}/{_locale}/
    requirements:
        _locale: fr|en

alt_app:
    resource: "@AltAppBundle/Controller/"
    type:     annotation
    prefix:   /{client}/{_locale}/
    requirements:
        _locale: fr|en

login_check:
    path: /login-check
    methods: [ POST ]

logout:
    path: /logout
    methods: [ GET ]


routing_dev.ylm
Code: Select all
_wdt:
    resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
    prefix:   /_wdt

_profiler:
    resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
    prefix:   /_profiler

_configurator:
    resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
    prefix:   /_configurator

JMSTranslationBundle_ui:
    resource: "@JMSTranslationBundle/Controller/"
    type: annotation
    prefix: /_trans

_main:
    resource: routing.yml


dev.log, this message is written several times.
Code: Select all
[2014-06-14 14:10:03] request.INFO: Matched route "_configurator_home" (parameters: "_controller": "Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController::checkAction", "_route": "_configurator_home") [] []
[2014-06-14 14:10:03] security.INFO: Redirecting to HTTPS [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Alt\Bundle\AppBundle\Listeners\LocaleListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Alt\Bundle\AppBundle\Listeners\ClientListener::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Listener "Symfony\Component\Security\Http\Firewall::onKernelRequest" stopped propagation of the event "kernel.request". [] []
[2014-06-14 14:10:03] event.DEBUG: Listener "Alt\Bundle\AppBundle\Listeners\UserClientListener::onKernelRequest" was not called for event "kernel.request". [] []
[2014-06-14 14:10:03] event.DEBUG: Listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest" was not called for event "kernel.request". [] []
[2014-06-14 14:10:03] event.DEBUG: Listener "Stof\DoctrineExtensionsBundle\EventListener\LocaleListener::onKernelRequest" was not called for event "kernel.request". [] []
[2014-06-14 14:10:03] event.DEBUG: Listener "Stof\DoctrineExtensionsBundle\EventListener\BlameListener::onKernelRequest" was not called for event "kernel.request". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\ResponseListener::onKernelResponse". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\Security\Http\RememberMe\ResponseListener::onKernelResponse". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.response" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelResponse". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelResponse". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener::onKernelResponse". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\StreamedResponseListener::onKernelResponse". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelFinishRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelFinishRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\Security\Http\Firewall::onKernelFinishRequest". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2014-06-14 14:10:03] event.DEBUG: Notified event "kernel.terminate" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelTerminate". [] []


Thanks,
Dorian (FRANCE)
dorian53000
Junior Member
 
Posts: 1
Joined: Sat Jun 14, 2014 2:22 pm