Lofesa edited a comment 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. Maybe only the file need to be created. 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: us...@infra.apache.org