Session cache files are never deleted
  • I only get a blank page and the error-log has a lot of messages like this:

    [16-Dec-2013 08:54:49 Europe/Stockholm] PHP Notice:  Array to string conversion in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Session/Exception.php on line 58
    [16-Dec-2013 08:54:49 Europe/Stockholm] PHP Notice:  Array to string conversion in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Session/Exception.php on line 71
    [16-Dec-2013 08:54:49 Europe/Stockholm] PHP Fatal error:  Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/cache/prod/classes.php(Line:347): Error #2 SessionHandler::read(): open(/www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/cache/prod/sessions/sess_f05d91a71253323838e064597f96b637, O_RDWR) failed: File too large (27) Array
    /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/cache/prod/classes.php(Line:351): Error #2 SessionHandler::write(): open(/www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/cache/prod/sessions/sess_f05d91a71253323838e064597f96b637, O_RDWR) failed: File too large (27) Array' in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Session.php:482
    Stack trace:
    #0 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/application/Bootstrap.php(30): Zend_Session::start()
    #1 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php(669): Bootstrap->_initSession()
    #2 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php(622): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('session')
    #3 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL)
    #4 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL)
    #5 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/public/index.php(86): Zend_Application->bootstrap()
    #6 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/index.php(17): require_once('/www/webvol20/l...')
    #7 {main}
      thrown in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Session.php on line 482

    Post edited by Sebastian Olsson (2) at 2013-12-19 06:23:07
  • 4 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    clear folder /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/cache/prod/sessions/
  • Thank you.

    Why doesn't Newscoop delete the session files when they are no longer in use? It fills up the filesystem!
  • It happened again! There is something severely wrong about newscoop's session handling. I can't have a website that crashes twice a month!
  • The sessions are also not deleted from the database. I have 34536 rows in the Sessions table, going all the way back to 2013-11-30 when the new website was launched.