1

I am getting an error like this in the site. How can I resolve it? I am using Memcache for session storage. My Magento version is 2.1.15

Warning: SessionHandler::read(): Unable to clear session lock record in /var/www/vendor/magento/framework/Session/SaveHandler/Native.php on line 22

Anyhelp thanks...

Rakesh Donga
5,4442 gold badges26 silver badges58 bronze badges
asked Mar 29, 2019 at 9:01
0

1 Answer 1

0

This happens when your session.save_handler PHP parameter is set to some another session storage than files (for example, redis, memcached, and so on). This is a known issue we’re working to resolve.

Solutions:

Locate php.ini

Locate php.ini by entering the following command:

php -i | grep "Loaded Configuration File"

Typical locations follow:

  • Ubuntu: /etc/php5/cli/php.ini
  • CentOS: /etc/php.ini

Workaround

  1. As a user with root privileges, open php.ini in a text editor.
  2. Locate session.save_handler
  3. Set it in any of the following ways:

To comment it out:

;session.save_path = <path>

To set it to a file system path:

session.save_handler = files

References:

  1. https://devdocs.magento.com/guides/v2.1/install-gde/trouble/php/tshoot_session.html

  2. https://github.com/magento/magento2/issues/5319

I hope this will help

answered Mar 29, 2019 at 10:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.