Jump to content

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


Neo
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 11 months later...

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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