Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Last active August 29, 2015 13:57
Show Gist options
  • Save radmiraal/9581720 to your computer and use it in GitHub Desktop.
Save radmiraal/9581720 to your computer and use it in GitHub Desktop.
During setting up a ubuntu machine with TYPO3 Neos on a shared folder (NFS) I ran into below error while running the TYPO3.Media functional tests.
1) TYPO3\Media\Tests\Functional\Domain\Repository\ImageRepositoryTest::imagesCanBePersisted
TYPO3\Flow\Error\Exception: Warning: rename(/var/www/Flow/neos/Data/Temporary/Testing/Flow_ResourceImport_53257f1a972fd,/tmp/TYPO3_Media_Tests_Functional_AbstractTest/156472aacddf474a7d1603db1bfff8d0e580ac10): Operation not permitted in /var/www/Flow/neos/Data/Temporary/Testing/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Resource_ResourceManager.php line 146
/var/www/Flow/neos/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php:77
/var/www/Flow/neos/Data/Temporary/Testing/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Resource_ResourceManager.php:146
/var/www/Flow/neos/Packages/Application/TYPO3.Media/Tests/Functional/Domain/Repository/ImageRepositoryTest.php:60
/var/www/Flow/neos/Packages/Framework/TYPO3.Flow/Tests/BaseTestCase.php:41
TYPO3:
Flow:
utility:
environment:
temporaryDirectoryBase: /tmp%FLOW_PATH_DATA%Temporary/
@radmiraal
Copy link
Author

After some debugging I found this comment on php.net: http://nl1.php.net/rename#90025

This made me think it could be an issue that the rename() was called for moving the file from network storage to local storage. So I set the setting below to make sure that my Data/Temporary folder was also on local storage (see yaml file)

Now the rename() action was from local storage to local storage, and the error is gone.

System: Ubuntu 13.10 PHP 5.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment