Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18968

eZDFSFileHandler fails when Asynchronous Publishing is called through daemon

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 4.5.0
    • Legacy > Clustering
    • None
    • eZ Publish 4.5

    Description

      On a clean 4.5 installation set up in eZDFSFileHandler cluster mode, when activating Asynchronous Publishing via script everything works fine (call php bin/php/ezasynchronouspublisher.php -s <siteaccess_name>.

      However, if we try to use Asynchronous Publishing in daemon mode (call php bin/php/ezasynchronouspublisher.php -s <siteaccess_name> -n ) it fails, all process will terminate.

      Got the following on error.log:

      [ Nov 21 2011 22:26:59 ] [] _exists(var/ezflow_site/cache/ezcontentlanguage_cache.php):
      Failed to check file 'var/ezflow_site/cache/ezcontentlanguage_cache.php' existance: 
      2006: MySQL server has gone away
      [ Nov 21 2011 22:26:59 ] [] _storeContents(var/ezflow_site/cache/ezcontentlanguage_cache.php, ..., content, php)::_begin:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:26:59 ] [] _storeContents(var/ezflow_site/cache/ezcontentlanguage_cache.php, ..., content, php):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:26:59 ] [] :
      Failed to insert file metadata while storing contents. Possible race condition
      2006: MySQL server has gone away
      [ Nov 21 2011 22:26:59 ] [] _storeContents(var/ezflow_site/cache/ezcontentlanguage_cache.php, ..., content, php)::_rollback:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _fetchMetadata(var/ezflow_site/cache/classattributeidentifiers_add1937ac2a7a5999c01a9c6aa996866.php):
      Failed to retrieve file metadata: var/ezflow_site/cache/classattributeidentifiers_add1937ac2a7a5999c01a9c6aa996866.php
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/classattributeidentifiers_add1937ac2a7a5999c01a9c6aa996866.php, ..., classattridentifiers, php)::_begin:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/classattributeidentifiers_add1937ac2a7a5999c01a9c6aa996866.php, ..., classattridentifiers, php):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] :
      Failed to insert file metadata while storing contents. Possible race condition
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/classattributeidentifiers_add1937ac2a7a5999c01a9c6aa996866.php, ..., classattridentifiers, php)::_rollback:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/expiry.php, ..., expirycache, misc)::_begin:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/expiry.php, ..., expirycache, misc):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] :
      Failed to insert file metadata while storing contents. Possible race condition
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/expiry.php, ..., expirycache, misc)::_rollback:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 61-)::_begin:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 61-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/ezflow_site_clean/61-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 61-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/eng/61-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 61-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/ezflow_site_clean_admin/61-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 61-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/iphone/61-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 61-)::_commit:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 2-)::_begin:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 2-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/ezflow_site_clean/2-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 2-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/eng/2-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 2-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/ezflow_site_clean_admin/2-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 2-):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] eZDFSFileHandlerMySQLBackend::_deleteByDirListInner:
      Failed to delete files in dir: 'var/ezflow_site/cache/content/iphone/2-%'
      [ Nov 21 2011 22:27:00 ] [] _deleteByDirList(Array, var/ezflow_site/cache/content, 2-)::_commit:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/expiry.php, ..., expirycache, misc)::_begin:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/expiry.php, ..., expirycache, misc):
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] :
      Failed to insert file metadata while storing contents. Possible race condition
      2006: MySQL server has gone away
      [ Nov 21 2011 22:27:00 ] [] _storeContents(var/ezflow_site/cache/expiry.php, ..., expirycache, misc)::_rollback:
      Failed to execute SQL for function:
      2006: MySQL server has gone away
      
      Steps to reproduce

      1. Set clean installation of eZ Publish into eZDFSFileHandler cluster mode;

      2. Enable Asynchronous Publishing in content.ini.append.php;

      3. Call Asynchronous Publishing in daemon mode:

      php bin/php/ezasynchronouspublisher.php -s <siteaccess_name> -n
      

      Attachments

        Activity

          People

            unknown unknown
            no@ez.no no@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: