When attempting to process GenerateStaticCacheJob:
ERROR [Warning]: rename(/tmp/silverstripe-cache-php8.1.14-var-www-mysite-www/vagrant/filesystempublisher_lhg6Yg,/var/www/mysite/www/public/cache/copyright-and-legal-statement.html): Operation not permitted
IN GET dev/tasks/ProcessJobQueueTask
Line 193 in /var/www/mysite/www/vendor/silverstripe/staticpublishqueue/src/Publisher/FilesystemPublisher.php
My directories all have the appropriate permissions.
just to add some context - it appears that in some scenarios php's rename will not work across filesystems - using a copy/unlink gets around this limitation so its probably a safer mechanism than rename.
When attempting to process
GenerateStaticCacheJob
:My directories all have the appropriate permissions.
Found this thread, which talks about similar issues, and it sounded like
copy()
andunlink()
had more success: https://ubuntuforums.org/showthread.php?t=1272466I confirmed this to be true for us. I no longer get any Warning when performing these two actions separately.
Related resources