cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHandler

Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHandler

If i try to install Magento 2.3.3 i am getting the following error,

 

Module 'Magento_CatalogSearch':
[ERROR] Exception: Warning: SessionHandler::read(): open(/var/opt/remi/php72/lib/php/session/sess_jsl7go2pvo8d6djtimh35oqaoj, O_RDWR) failed: Permission denied (13) in /usr/share/nginx/html/mage/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /usr/share/nginx/html/mage/vendor/magento/framework/App/ErrorHandler.php:61

 

How to solve this?

 

 

 

 

13 REPLIES 13

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

Hello @Aveeva 

 

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

 

https://support.magento.com/hc/en-us/articles/360033427272-During-installation-exception-SessionHand...

https://community.magento.com/t5/Magento-2-x-Version-Upgrades/memcached-related-error-after-upgrade-...

https://magento.stackexchange.com/questions/276208/warning-sessionhandlerread-magento-2

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

@Manish Mittal  I have already Magento 2.3 websites this is my second one, in my php.ini file 

 

session.save_handler = files 

 

What i need to do?

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

What ip need to set in session,

 

'session' => [ 'save' => 'memcached', 'save_path' => '127.0.0.1:11211' // your ip and port number of memcached installed ], 

upstream fastcgi_backend1 {
server 127.0.0.1:9000

 

or 

 

my url : 182.168.1.54:8086

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

@Aveeva 

 

are you using Memcached? or if not then you can just save session in files 

 

1

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

Open php.ini with root user, and comment it out:

;session.save_path =

to

session.save_path = files

 

 

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

your ip and port number of Memcached installed.

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

Still getting the same error. Any other solution. thanks

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

You mean this is : 182.168.1.54:8086

 

 

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

@Aveeva 

 

I am not sure where you have installed Memcahced. 

First question are you installed Memcached or not?

 

Try to save session in files and give permission to var folder chmod -R 0777 var/ pub generated/

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 inatall error Module 'Magento_CatalogSearch': [ERROR] Exception: Warning: SessionHan

@Manish Mittal  

 

app/etc/env.php

 

'session' => [
'save' => 'files'
],

 

then run chmod -R 0777 var/ pub generated/ still getting same error