Error: Failed to read session data: user (path: /var/lib/php/sessions)

#1

Hi Craig,

I am using Magento 2.3.1 CE.
My English is not perfect sorry.

I saw this issue.
Error: Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/vendor/magento/framework/Session/SessionManager.php on line 206

Have any idea?
Thank you so much.

0 Likes

#2

Hi @gntlby.

Are you using Redis to manage your Sessions? If so, I had the same issue. It’s caused when your session handler isn’t configured to handle the traffic. You can usually reproduce the message my opening multiple tabs in quick succession.

Have a read through the Related GitHub Article linked below? You’ll notice that I took part in it.

Suffice to say that increasing my max_concurrency value in the env.php file solved the issue. The default value is “6” which is really small. The new value you replace it with will depend on what your web server can handle.

If you’re not sure, try increase it in small increments and see how you get on. Maybe change it from “6” to “12” to start with.

Good references

1 Like

#3

Hi again,
Yes I am using Redis. And now I did max_concurrency value 12.

Thank you so much fast answer.

1 Like

#4

No problem. I just happened to sign in just after you posted it :slight_smile:

1 Like