You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/10/28 15:36:02 UTC

[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1516: Cache is not working: Failed to read cache clean timestamp

Lofesa commented on issue #1516:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1516#issuecomment-718016613


   Maybe is a tmpfs? For example in Centos-RedHat distros /var is a tmpfs and most people tend to put the cache directory here.
   At the start, the directory is owned by root, so pagesped can´t read/write.
   This can be solved creating a conf file in /etc/tmpfiles.d (call it pagespeed-cache.conf) with some lines like:
   ```
   D /var/path-to-cache-directory/ 0755 pagespeed-user:pagespeed-group -
   f /var/path-to-cache-directory/!clean!time! 0755 pagespeed-user:pagespeed-group -
   
   ```
   These 2 lines creates the directory (D) and the file (f) in these paths, permisions and owner at system start, before any process acces it.
   Note the last -, it is needed.
   More on this here: https://man7.org/linux/man-pages/man5/tmpfiles.d.5.html
   
   I don´t know if Ubuntu or other distros has this feature.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org