Skip to content

Error Message: session_start(): Failed to read session data: user (path: ) in checkout page

When I add the product to the cart and go to the checkout page then sometimes it redirects to my account page with the below error message in the log file:

{“message”:”Warning: session_start(): Failed to read session data: user (path:)

I am using varnish for secession and cache.
Here is my session configuration in env.php file with varnish

'session' => [
        'save' => 'redis',
        'redis' => [
            'host' => '/var/run/redis-multi-mtwowe.com_sessions/redis.sock',
            'port' => '0',
            'database' => '0'
        ]
    ],

Please suggest a solution for this issue.