Hallo. Ich möchte in meiner Shopware 5.5.10 Installation den REDIS Session Handler nutzen. Gehostet wird bei all-inkl.com auf einem Managed Server, redis wurde heute vom Support installiert.
Gemäß der Anleitung hier hab ich meine config.php dann entsprechend ergänzt um diesen Eintrag:
'session' => [
'save_handler' => 'redis',
'save_path' => "tcp://127.0.0.1:6379",
],
'backendsession' => [
'save_handler' => 'redis',
'save_path' => "tcp://127.0.0.1:6379",
],
Mein Frontend lädt dann aber gar nicht mehr (HTTP Error 500) und das Backend wirft folgenden Fehler aus:
Zend_Session::start() - /www/htdocs/INSTALLATIONSPFAD/tester/engine/Library/Zend/Session.php(Line:468): Error #2 session_start(): Failed to read session data: files (path: tcp://127.0.0.1:6379) in engine/Library/Zend/Session.php on line 481
Stack trace:
#0 engine/Shopware/Plugins/Default/Backend/Auth/Bootstrap.php(374): Zend_Session::start(Array)
#1 engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware_Plugins_Backend_Auth_Bootstrap->onInitResourceBackendSession(Object(Enlight_Event_EventArgs))
#2 custom/plugins/FroshProfiler/Components/Event/EventManager.php(329): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Event_EventArgs))
#3 custom/plugins/FroshProfiler/Components/Event/EventManager.php(132): FroshProfiler\Components\Event\EventManager->parentNotifyUntil('Enlight_Bootstr...', Object(Enlight_Event_EventArgs))
#4 engine/Shopware/Components/DependencyInjection/Container.php(195): FroshProfiler\Components\Event\EventManager->notifyUntil('Enlight_Bootstr...', Array)
#5 engine/Shopware/Components/DependencyInjection/Container.php(156): Shopware\Components\DependencyInjection\Container->doLoad('backendsession')
#6 engine/Shopware/Plugins/Default/Backend/Auth/Bootstrap.php(391): Shopware\Components\DependencyInjection\Container->load('backendsession')
#7 engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware_Plugins_Backend_Auth_Bootstrap->onInitResourceAuth(Object(Enlight_Event_EventArgs))
#8 custom/plugins/FroshProfiler/Components/Event/EventManager.php(329): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Event_EventArgs))
#9 custom/plugins/FroshProfiler/Components/Event/EventManager.php(132): FroshProfiler\Components\Event\EventManager->parentNotifyUntil('Enlight_Bootstr...', Object(Enlight_Event_EventArgs))
#10 engine/Shopware/Components/DependencyInjection/Container.php(195): FroshProfiler\Components\Event\EventManager->notifyUntil('Enlight_Bootstr...', Array)
#11 engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad('auth', 1)
#12 engine/Library/Enlight/Plugin/Bootstrap.php(120): Shopware\Components\DependencyInjection\Container->get('auth')
#13 engine/Shopware/Plugins/Default/Backend/Auth/Bootstrap.php(457): Enlight_Plugin_Bootstrap->get('Auth')
#14 engine/Shopware/Plugins/Default/Backend/Auth/Bootstrap.php(426): Shopware_Plugins_Backend_Auth_Bootstrap->getCurrentLocale()
#15 engine/Shopware/Plugins/Default/Backend/Auth/Bootstrap.php(214): Shopware_Plugins_Backend_Auth_Bootstrap->initLocale()
#16 engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware_Plugins_Backend_Auth_Bootstrap->onPreDispatchBackend(Object(Enlight_Controller_ActionEventArgs))
#17 custom/plugins/FroshProfiler/Components/Event/EventManager.php(296): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Controller_ActionEventArgs))
#18 custom/plugins/FroshProfiler/Components/Event/EventManager.php(84): FroshProfiler\Components\Event\EventManager->parentNotify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#19 engine/Library/Enlight/Controller/Action.php(170): FroshProfiler\Components\Event\EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#20 engine/Library/Enlight/Controller/Dispatcher/Default.php(563): Enlight_Controller_Action->dispatch('indexAction')
#21 engine/Library/Enlight/Controller/Front.php(222): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#22 engine/Shopware/Kernel.php(202): Enlight_Controller_Front->dispatch()
#23 vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 engine/Shopware/Components/HttpCache/AppCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#26 vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#27 engine/Shopware/Components/HttpCache/AppCache.php(105): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#28 shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#29 {main}
Was mach ich falsch?