Jail access commands problem

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Mar 12, 2018.

  1. pawan

    pawan Member

    I am not aware, if it is something which can be fixed and how.

    from Jail shell when I am running the command -
    Code:
    php bin/magento indexer:reindex
    I faced the permission errors like below:
    Code:
    [email protected]:/web$ php bin/magento indexer:reindex
    Design Config Grid index has been rebuilt successfully in 00:00:05
    Customer Grid indexer process unknown error:
    Warning: SessionHandler::read(): open(/var/lib/php/sessions/sess_03520g642rk8kgkj65b9ec2e84, O_RDWR) failed: No such file or directory (2) in /web/vendor/magento/framework/Session/SaveHandler/Native.php on line 22
    Product Flat Data index is locked by another reindex process. Skipping.
    Category Flat Data index is locked by another reindex process. Skipping.
    Category Products index has been rebuilt successfully in 00:00:03
    Product Categories index has been rebuilt successfully in 00:00:00
    Product Price index has been rebuilt successfully in 00:00:04
    Product EAV index has been rebuilt successfully in 00:00:11
    Catalog Rule Product index has been rebuilt successfully in 00:00:03
    Catalog Product Rule index has been rebuilt successfully in 00:00:00
    Stock index has been rebuilt successfully in 00:00:02
    Catalog Search index has been rebuilt successfully in 00:06:56
    PHP Fatal error:  Uncaught Exception: Warning: SessionHandler::write(): open(/var/lib/php/sessions/sess_03520g642rk8kgkj65b9ec2e84, O_RDWR) failed: No such file or directory (2) in /web/vendor/magento/framework/Session/SaveHandler.php on line 105 in /web/vendor/magento/framework/App/ErrorHandler.php:61
    Stack trace:
    #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/web/vendor/mag...', 105, Array)
    #1 /web/vendor/magento/framework/Session/SaveHandler.php(105): SessionHandler->write('03520g642rk8kgk...', 'adminhtml|a:1:{...')
    #2 [internal function]: Magento\Framework\Session\SaveHandler->write('03520g642rk8kgk...', 'adminhtml|a:1:{...')
    #3 {main}
      thrown in /web/vendor/magento/framework/App/ErrorHandler.php on line 61
    
    Fatal error: Uncaught Exception: Warning: SessionHandler::write(): open(/var/lib/php/sessions/sess_03520g642rk8kgkj65b9ec2e84, O_RDWR) failed: No such file or directory (2) in /web/vendor/magento/framework/Session/SaveHandler.php on line 105 in /web/vendor/magento/framework/App/ErrorHandler.php:61
    Stack trace:
    #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/web/vendor/mag...', 105, Array)
    #1 /web/vendor/magento/framework/Session/SaveHandler.php(105): SessionHandler->write('03520g642rk8kgk...', 'adminhtml|a:1:{...')
    #2 [internal function]: Magento\Framework\Session\SaveHandler->write('03520g642rk8kgk...', 'adminhtml|a:1:{...')
    #3 {main}
      thrown in /web/vendor/magento/framework/App/ErrorHandler.php on line 61
    
    I want to know if these can be resolved.
    Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to create a folder like /var/www/yourdomain.tld/var/lib/php/sessions/ that is writable by the web user.
     
  3. pawan

    pawan Member

    Thanks Till
    for the direction. but that didn't work. but helped me why this error is getting generated.
    then In Magento configuration I changed the path of session as per php.ini
    like
    Code:
    'session' =>
       array (
         'save' => 'files',
         'save_path' => '/../tmp',
    ),
    
    The php.ini path for session save is - /var/www/clients/client2/web205/tmp
     
    Last edited: Mar 13, 2018
  4. pawan

    pawan Member

    Hi Till,
    No luck, The command runs fine without any issue. but when I open the site it thows the error like below:
    Code:
    1 exception(s):
    Exception #0 (InvalidArgumentException): Failed to set ini option "session.save_path" to value "/../tmp".
    
    Exception #0 (InvalidArgumentException): Failed to set ini option "session.save_path" to value "/../tmp".
    #0 /var/www/clients/client2/web205/web/vendor/magento/framework/Session/SessionManager.php(184): Magento\Framework\Session\SessionManager->initIniOptions()
    #1 /var/www/clients/client2/web205/web/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Session\SessionManager->start()
    #2 /var/www/clients/client2/web205/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Session\Generic\Interceptor->___callParent('start', Array)
    #3 /var/www/clients/client2/web205/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\Session\Generic\Interceptor->Magento\Framework\Interception\{closure}()
     
  5. pawan

    pawan Member

    find another way for the time being -
    I changed the option of session save 'files' to 'db'
     

Share This Page