0vote

Problem with Install - Failed to write session data

I want to evaluate sellvana but am running into an install issue. I'm running httpd.

Welcome to Sellvana installation wizard!
After I agree to licence agreement, I see an error related to session save path. I have checked that some files are created in the storage folder however the session file has 0 bytes.

Below is my virtual host and the error message that prints in my browser.

Thanks in advance for help!

<VirtualHost *:443>
  ServerName sellvana-local

  ## Vhost docroot
  DocumentRoot "/var/www/sellvana"

  ## Directories, there should at least be a declaration for /var/www/sellvana

  <Directory "/var/www/sellvana">
    Options Indexes FollowSymlinks MultiViews
    AllowOverride All
    Require all granted

   <FilesMatch "\.php$">
         Require all granted
               SetHandler proxy:fcgi://127.0.0.1:9000

                         </FilesMatch>

                           </Directory>

                             ## Logging
                               ErrorLog "/var/log/httpd/honeyfund_ssl_error.log"
                                 ServerSignature Off
                                   CustomLog "/var/log/httpd/honeyfund_ssl_access.log" combined 

                                     ## Server aliases

                                         ## SetEnv/SetEnvIf for environment variables
                                           SetEnv APP_ENV dev
                                             SetEnv HTTPS on

                                               ## Custom fragment
</VirtualHost>


Here's the error I receive.

WARNING: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (storage/random-FnDKRoi2Kv2rDkjl/session)
#0  BDebug::cleanBacktrace() called at [core/FCom/Core/buckyball/com/misc.php:3570]
#1  BDebug::trigger() called at [core/FCom/Core/buckyball/com/misc.php:3326]
#2  BDebug->errorHandler()
#3  session_write_close() called at [core/FCom/Core/buckyball/com/core.php:2545]
#4  BSession->close() called at [core/FCom/Core/buckyball/com/controller.php:1742]
#5  BResponse->shutdown() called at [core/FCom/Core/buckyball/com/controller.php:1576]
#6  BResponse->output() called at [core/FCom/Core/buckyball/com/controller.php:1585]
#7  BResponse->render() called at [core/FCom/Core/Controller/Abstract.php:35]
#8  FCom_Core_Controller_Abstract->onAfterDispatch() called at [core/FCom/Core/buckyball/com/controller.php:2562]
#9  BActionController->dispatch() called at [core/FCom/Core/buckyball/com/controller.php:2475]
#10 BRouteObserver->dispatch() called at [core/FCom/Core/buckyball/com/controller.php:2369]
#11 BRouteNode->dispatch() called at [core/FCom/Core/buckyball/com/controller.php:2146]
#12 BRouting->dispatch() called at [core/FCom/Core/buckyball/com/core.php:370]
#13 BApp->run() called at [core/FCom/Core/Main.php:48]
#14 FCom_Core_Main->run() called at [index.php:22]

1 Answer

0vote

Hello, thank you for the report and sorry for the issue.

I can't reproduce it, but I've updated session dir logic, could you please pull the latest update and see if it helped? If it didn't, please do this:

  1. Edit core/FCom/Core/buckyball/com/core.php, line 2261, uncomment #var_dump($dir);
  2. Reload web page, and see the session directory in HTML output
  3. Make sure that this directory exists and is writable to web service.

Hope this helps,
Boris.

Thanks I'll give it a try now
dhoney Nov 2, 2016
Thanks for the prompt reply. Below is what I see after accepting the software license,

# Permissions on Vagrant box (just to be sure)
sudo chmod -R 777 /var/www/sellvana/storage

# Files in ../sellvana/storage/
config
core.php
random-FnDKRoi2Kv2rDkjl
   cache
   log
   debug.log
   session
      sess_7mu23lp9e7pd65700ap1uf8hj5
      sess_keutqlskke57ovr3r34mk8pmm5
      sess_kvh7qu96cm16rdl8ousrk4pkk6
   twig

# Output on https://sellvana-local/index.php/install
/var/www/sellvana/core/FCom/Core/buckyball/com/core.php:2261:string '/var/www/sellvana/storage/random-FnDKRoi2Kv2rDkjl/session' (length=57)
WARNING: session_start(): Cannot send session cookie - headers already sent by (output started at core/FCom/Core/buckyball/com/core.php:2261)
#0  BDebug::cleanBacktrace() called at [core/FCom/Core/buckyball/com/misc.php:3570]
#1  BDebug::trigger() called at [core/FCom/Core/buckyball/com/misc.php:3326]
#2  BDebug->errorHandler()
#3  session_start() called at [core/FCom/Core/buckyball/com/core.php:2291]
#4  BSession->_sessionStart() called at [core/FCom/Core/buckyball/com/core.php:2176]
#5  BSession->open() called at [core/FCom/Core/buckyball/com/core.php:2482]
#6  BSession->get() called at [core/FCom/Core/buckyball/com/module.php:1128]
#7  BModule->_processTranslations() called at [core/FCom/Core/buckyball/com/module.php:1324]
#8  BModule->bootstrap() called at [core/FCom/Core/buckyball/com/module.php:631]
#9  BModuleRegistry->bootstrap() called at [core/FCom/Core/buckyball/com/core.php:364]
#10 BApp->run() called at [core/FCom/Core/Main.php:48]
#11 FCom_Core_Main->run() called at [index.php:19]
dhoney Nov 2, 2016
One more comment, I tried to use the shell and I see the same error message.

$ php shell.php
Syntax: shell.php [command]

To get help for a specific action: shell.php help [command]

FCom_Core:
    cache      Cache management
    config     Configuration management
    data-io    Import\Export management
    help       List all available actions
    migrate    Run pending DB migration scripts
    module     Module management

FCom_Install:
    install    Run installation wizard

Total run time: 0.23567, Peak memory: 8.92 MB.

WARNING: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/sellvana/storage/random-FnDKRoi2Kv2rDkjl/session)
dhoney Nov 2, 2016

Please log in or register to answer this question.

Know someone who can answer? Share a link to this

...