-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Save session to redis error when configured on php level (Exception' with message 'Warning: SessionHandler::read()) #1735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
All details on files, also issue created for discuss that magento/magento2#1735 , but this is huge change which will take some time to resolve and issue could be common problem for users who configure session storage at redis or memcached
@biotech thank you for reporting this error, we have created MAGETWO-42059 to track a fix for this. |
This was fixed and should be published soon. |
Great job thanks ! |
in fact this error is still there |
+1 still an issue |
…1-17 [EngCom] Partners Pull Requests
Hello, I believe it is still an issue... |
Hey Guys, I fixed this issue, by providing correct path in php.ini: 'session' => Hope this helps someone. |
If php configured to save session on Redis instead of files - error below appear during the installation process. I use PHP 5.6 and https://github.com/phpredis/phpredis for store session in Redis, after change storage to files - everything works well. It looks like Magento not check if php session storage configured as files and trying to write sessions there. In my case this pretty confusing because i have configured like that
session.save_handler = redis
session.save_path = "/tmp/redis.sock"
So save_patch in that case it's location of Redis socket and Magento trying to write sessions just around that which is for sure cause error. This can cause issue with any other session storage like Memcached etc. I suppose Magento should check session storage type during the installation before write there and maybe support Redis and Memcached by default or if it's not possible (?) - recommend set files as save_handler in php.
Installing user configuration...
[ERROR] exception 'Exception' with message 'Warning: SessionHandler::read(): open(/tmp/php-sessions/sess_sbiru6o2s28e3b0gq6v6hhlp83, O_RDWR) failed: No such file or directory (2) in /var/www/magento2demo.firebearstudio.com/magento2/lib/internal/Magento/Framework/Session/SaveHandler.php on line 74' in /var/www/magento2demo.firebearstudio.com/magento2/lib/internal/Magento/Framework/App/ErrorHandler.php:67
Stack trace: #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/magent...', 74, Array)
#1 /var/www/magento2demo.firebearstudio.com/magento2/lib/internal/Magento/Framework/Session/SaveHandler.php(74): SessionHandler->read('sbiru6o2s28e3b0...')
#2 [internal function]: Magento\Framework\Session\SaveHandler->read('sbiru6o2s28e3b0...')
#3 /var/www/magento2demo.firebearstudio.com/magento2/lib/internal/Magento/Framework/Session/SessionManager.php(189): session_start()
The text was updated successfully, but these errors were encountered: