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

Warnings that files cannot be written, due to wrong CWD

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2013.06

    Description

      When using the REST API from legacy stack. Somehow the CWD is changed to / and cache files (like var/cache/expiry.php) cannot be created anymore (it might be that it is a regression from chdir fix https://github.com/ezsystems/ezpublish-legacy/pull/630/files)

      When calling http://localhost/api/ezp/v1/content/node/2 I get following warning. I'm using the legacy stack without symfony.

      The framework wants to create var/cache/expiry.php with atomic parameter set to true, so that first a temp file is written.

      Warning: fopen(var/cache/ezfile-tmp.0b1cd1baf74c3d8e107e7239fe3c7b3d): failed to open stream: Permission denied in /data/www/psd-verticals-ezpublish/htdocs/lib/ezfile/classes/ezfile.php on line 64
      
      Call Stack:
      361.4760 3790080 1. eZExpiryHandler::shutdown() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:0
      361.9700 3815408 2. eZExpiryHandler->store() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:163
      361.9700 3815720 3. eZFSFileHandler->storeContents(???, ???, ???, ???) /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:66
      361.9701 3815936 4. eZFile::create(???, ???, ???, ???) /data/www/psd-verticals-ezpublish/htdocs/kernel/classes/clusterfilehandlers/ezfsfilehandler.php:212
      361.9701 3816360 5. fopen(???, ???) /data/www/psd-verticals-ezpublish/htdocs/lib/ezfile/classes/ezfile.php:64
      
      
      Warning: chmod(): No such file or directory in /data/www/psd-verticals-ezpublish/htdocs/kernel/classes/clusterfilehandlers/ezfsfilehandler.php on line 214
      
      Call Stack:
      361.4760 3790080 1. eZExpiryHandler::shutdown() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:0
      361.9700 3815408 2. eZExpiryHandler->store() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:163
      361.9700 3815720 3. eZFSFileHandler->storeContents(???, ???, ???, ???) /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:66
      361.9704 3815816 4. chmod(???, ???) /data/www/psd-verticals-ezpublish/htdocs/kernel/classes/clusterfilehandlers/ezfsfilehandler.php:214
      

      Regards,
      Martin

      Attachments

        Activity

          People

            Unassigned Unassigned
            meckhardt meckhardt
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: