Jump to content

Error on new Server: Warning: touch(): Utime failed


Recommended Posts

Posted

I just moved a site to a new Ubuntu 16 server and experience the following error:


Warning: touch(): Utime failed: Operation not permitted in /var/www/html/wire/core/FileCompiler.php on line 329

 

Any idea what the problem could be?

  • Like 1
Posted

Sounds like a file permissions issue. Make sure the owner and permissions are correct for the /site/ folder and based on that error especially for the /site/assets/cache/FileCompiler/ folder.

  • Like 2
Posted

I just emptied the cache of the AIOM-module and the error disappeared once I visited every single template.

Not sure what the problem is...

 

  • Like 2
Posted

This happens when the user PHP runs as isn't the owner of the cache files. The file compiler tries to update the cache files with the modification time of their originals, and while writing to that file can succeed through group permissions, updating the modification time fails unless issued by the owner. Clearing the cache removes the cache files and recreates them with the PHP user as the owner, so the problem is gone.

  • Like 8
  • Thanks 1
  • 11 months later...
Posted

THANK you @BitPoet for the answer and @Neo for posting this Q — totally saved me from a frustrating end to a day of coding.

I suppose standard practice for uploading a site is to not transfer the contents of the /assets/cache/ folder? If so, I'll bet this is documented and I missed it…

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...