-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Web Setup Wizard 500 error when session storage is configured to use memcache #9633
Copy link
Copy link
Closed
Labels
Component: Framework/CacheComponent: SetupEvent: MMNY17Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releasebug report
Metadata
Metadata
Assignees
Labels
Component: Framework/CacheComponent: SetupEvent: MMNY17Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releasebug report
Type
Fields
Give feedbackNo fields configured for issues without a type.
Preconditions
Steps to reproduce
Expected result
Actual result
[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 61As 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] = memcachein 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.