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

File/Directory problem after setup wizard completes ( cache dir for stash do not exists )

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.2-dev
    • Fix Version/s: QA tracked issues
    • Component/s: None
    • Labels:
      None
    • Environment:

      rhel, mysql

      Description

      After successfully running setupwizard ( tested both ezdemo-clean and ezflow-clean ) we'll get this exception when accessing the frontpage

      Cache path is not a directory.
      500 Internal Server Error - InvalidArgumentException
      

      Stack Trace

      in /var/www/apache2php53/updatedatafiles/source/vendor/tedivm/stash/src/Stash/Driver/FileSystem.php at line 388   
              }
              if(!is_dir($this->cachePath)) {
                  throw new InvalidArgumentException('Cache path is not a directory.');
              }
              if(!is_writable($this->cachePath)) {
      at FileSystem ->checkFileSystemPermissions () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/tedivm/stash/src/Stash/Driver/FileSystem.php at line 104    
      at FileSystem ->__construct (array('dirSplit' => '2', 'path' => '/var/www/apache2php53/updatedatafiles/source/ezpublish/cache/dev/stash', 'filePermissions' => '432', 'dirPermissions' => '504', 'memKeyLimit' => '200')) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/tedivm/stash-bundle/Tedivm/StashBundle/Factory/HandlerFactory.php at line 17    
      at HandlerFactory ::createHandler (array('Ephemeral', 'FileSystem'), array('Apc' => array('ttl' => '300', 'namespace' => null), 'BlackHole' => array(), 'Ephemeral' => array(), 'FileSystem' => array('dirSplit' => '2', 'path' => '/var/www/apache2php53/updatedatafiles/source/ezpublish/cache/dev/stash', 'filePermissions' => '432', 'dirPermissions' => '504', 'memKeyLimit' => '200'), 'SQLite' => array('filePermissions' => '432', 'dirPermissions' => '504', 'busyTimeout' => '500', 'nesting' => '0', 'subhandler' => 'PDO', 'version' => null, 'path' => '/var/www/apache2php53/updatedatafiles/source/ezpublish/cache/dev/stash'))) 
      at call_user_func (array('Tedivm\StashBundle\Factory\HandlerFactory', 'createHandler'), array('Ephemeral', 'FileSystem'), array('Apc' => array('ttl' => '300', 'namespace' => null), 'BlackHole' => array(), 'Ephemeral' => array(), 'FileSystem' => array('dirSplit' => '2', 'path' => '/var/www/apache2php53/updatedatafiles/source/ezpublish/cache/dev/stash', 'filePermissions' => '432', 'dirPermissions' => '504', 'memKeyLimit' => '200'), 'SQLite' => array('filePermissions' => '432', 'dirPermissions' => '504', 'busyTimeout' => '500', 'nesting' => '0', 'subhandler' => 'PDO', 'version' => null, 'path' => '/var/www/apache2php53/updatedatafiles/source/ezpublish/cache/dev/stash'))) 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 5488    
      at ezpublishDevDebugProjectContainer ->getStash_Handler_DefaultCacheService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('stash.handler.default_cache') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 5475    
      at ezpublishDevDebugProjectContainer ->getStash_DefaultCacheService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('stash.default_cache') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 3403    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Spi_Persistence_Cache_SectionhandlerService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.spi.persistence.cache.sectionhandler') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 3312    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Spi_Persistence_CacheService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.spi.persistence.cache') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 517    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Api_Role_LimitationType_ContentTypeService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.api.role.limitation_type.content_type') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 463    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Api_Repository_FactoryService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.api.repository.factory') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 397    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Api_InnerRepositoryService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.api.inner_repository') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 3195    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Signalslot_RepositoryService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.signalslot.repository') 
      in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 6375    
      at ezpublishDevDebugProjectContainer ->getEzpublish_Api_RepositoryService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262    
      at Container ->get ('ezpublish.api.repository') 
      in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/ApiLoader/LazyRepositoryFactory.php at line 42    
      at eZ\Bundle\EzPublishCoreBundle\ApiLoader\{closure} () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Security/User/Provider.php at line 42    
      at Provider ->getRepository () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Security/User/Provider.php at line 50    
      at Provider ->getUserService () 
      in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Security/User/Provider.php at line 75    
      at Provider ->loadUserByUsername ('-1') 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php at line 67    
      at PreAuthenticatedAuthenticationProvider ->authenticate (object(PreAuthenticatedToken)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Security/Authentication/Provider.php at line 53    
      at Provider ->authenticate (object(PreAuthenticatedToken)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php at line 74    
      at AuthenticationProviderManager ->authenticate (object(PreAuthenticatedToken)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php at line 75    
      at AbstractPreAuthenticatedListener ->handle (object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php at line 66    
      at Firewall ->onKernelRequest (object(GetResponseEvent)) 
      at call_user_func (array(object(Firewall), 'onKernelRequest'), object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php at line 447    
      at Symfony\Component\HttpKernel\Debug\{closure} (object(GetResponseEvent)) 
      at call_user_func (object(Closure), object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php at line 164   
      at EventDispatcher ->doDispatch (array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.request', object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php at line 53   
      at EventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php at line 167    
      at ContainerAwareEventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php at line 135    
      at TraceableEventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent)) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 110    
      at HttpKernel ->handleRaw (object(Request), '1') 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 73    
      at HttpKernel ->handle (object(Request), '1', true) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 57    
      at ContainerAwareHttpKernel ->handle (object(Request), '1', true) 
      in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 197    
      at Kernel ->handle (object(Request)) 
      in /var/www/apache2php53/updatedatafiles/source/web/index_dev.php at line 14  
      

      I am running "prod", so not sure why it tries to access cache/dev in the first place ?
      applying following workaround seems fix the problem, but it will then stor stuff in dev, not in prod director...:

      mkdir ezpublish/cache/dev/stash
      

        Activity

        Vidar Langseid created issue -
        Vidar Langseid made changes -
        Field Original Value New Value
        Link This issue blocks EZP-21000 [ EZP-21000 ]
        Vidar Langseid made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 56007 ] EZ* Development Workflow [ 83893 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 83893 ] EZEE Development Workflow [ 122515 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Vidar Langseid
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: