Repository navigation
Web Setup Wizard 500 error when session storage is configured to use memcache #9633
Description
Preconditions
- Magento Version: 2.1.6
- PHP-FPM - Specific pool is currently using 7.0.17
- Apache 2.2.31
Steps to reproduce
- Perform a fresh installation of Magento 2.1.6
- Switch and configure session storage method to memcache in env.php
- Log into admin and navigate to System > Tools > Web Setup Wizard
Expected result
- The Setup Wizard page loading successfully
Actual result
- Page returns an HTTP ERROR 500. Additionally here is the error from the PHP logs when this occurs:
[15-May-2017 07:22:26 UTC] PHP Fatal error: Uncaught Exception: Warning: SessionHandler::read(): open(unix:///var/tmp/memcached.magetwot.216.mage2test.com_sessions.sock?persistent=1&weight=2&timeout=10&retry_interval=0/sess_cvud2fpo9dbmofdhld3fap3682, O_RDWR) failed: No such file or directory (2) in /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/App/ErrorHandler.php:61 Stack trace: #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/chroot/home/ma...', 22, Array) #1 /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/Session/SaveHandler/Native.php(22): SessionHandler->read('cvud2fpo9dbmofd...') #2 /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/Session/SaveHandler.php(93): Magento\Framework\Session\SaveHandler\Native->read('cvud2fpo9dbmofd...') #3 [internal function]: Magento\Framework\Session\SaveHandler->read('cvud2fpo9dbmofd...') #4 in /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/App/ErrorHandler.php on line 61
[15-May-2017 07:22:26 UTC] PHP Fatal error: Uncaught Exception: Warning: SessionHandler::write(): open(unix:///var/tmp/memcached.magetwot.216.mage2test.com_sessions.sock?persistent=1&weight=2&timeout=10&retry_interval=0/sess_cvud2fpo9dbmofdhld3fap3682, O_RDWR) failed: No such file or directory (2) in /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/Session/SaveHandler.php on line 105 in /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/App/ErrorHandler.php:61 Stack trace: #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/chroot/home/ma...', 105, Array) #1 /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/Session/SaveHandler.php(105): SessionHandler->write('cvud2fpo9dbmofd...', '') #2 [internal function]: Magento\Framework\Session\SaveHandler->write('cvud2fpo9dbmofd...', '') #3 {main} thrown in /chroot/home/magetwot/216.mage2test.com/html/vendor/magento/framework/App/ErrorHandler.php on line 61
As the title states. When the session storage method is set to memcache an 500 error happens when navigating to the Web Setup Wizard. With the session method set to files it loads as intended. Based off the error it seems like it's still trying to write/read the session as a file even though magento is configured to use the memcache socket.
I've found as a workaround if i specifically set php_value[session.save_handler] = memcache in the PHP-FPM pool configuration file for this pool then the Setup Wizard page loads successfully. In the past this change has not been needed. Simply configuring memcache in env.php was enough.
Activity
kozmikyak commentedon May 18, 2017
I can verify that the same thing happens (500 error on using the web wizard) with PHP 7.0.18 on Centos 7, and the latest install of Magento (from 2 days ago) in mod_php mode.
digitalredefined commentedon Jul 18, 2017
I'm having the same issue as well on 2.1.7.
TomashKhamlai commentedon Jul 25, 2017
Hello and thank you for your submission! Internal ticket MAGETWO-70986 was created to address this issue.
19 remaining items
okorshenko commentedon Oct 16, 2017
Hi @sylink could you please accept the invitation to join magento2 repository on the GitHub?
sivajik34 commentedon Nov 23, 2017
checkout page is very slow.
magento 2.2.1
https://magento.stackexchange.com/questions/199973/magento-2-2-0-checkout-regenerate-session-id-very-slow
okorshenko commentedon Dec 4, 2017
@dotsoa
The issue has been fixed and delivered in 2.2-develop branch. Will be available with upcoming patch release.
AlexisEvo commentedon Dec 15, 2017
@sivajik34 This is a separate problem which is unrelated to this issue. Please see #12742
magento-engcom-team commentedon Jan 30, 2018
Hi @dotsoa. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1296 by @magento-engcom-team in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming patch release.
⏫ Forwardport of magento#11608 to 2.3-develop branch
Merge forwardport of magento#11608 to 2.3-develop branch
🔃 [EngCom] Public Pull Requests - 2.3-develop