mod_pagespeed Failed to make directory - Permission denied - Error opening statistics errors in error.log

7,636 views
Skip to first unread message

apacher

unread,
May 30, 2014, 12:35:47 PM5/30/14
to mod-pagesp...@googlegroups.com
Hi, 

I am using latest  stable version of mod_pagespeed 1.7.30.4-3847. on an Apache 2.2.22 server

The error.log contains lots of error messages like these

Error msg1: Failed to make directory /var/cache/mod_pagespeed/prop_page: Permission denied 

Error msg2: /var/cache/mod_pagespeed/prop_page/http.... opening temp file: No such file or directory

/var/log/pagespeed/stats_log_global:0: opening output file: Permission denied 

Error msg3: Could not create directories for file /var/cache/mod_pagespeed/prop_page/
 
Error msg4: /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
 
Error msg5: Error opening statistics log file /var/log/pagespeed/stats_log_global.
 

How can I resolve these issues?

Thanks

Joshua Marantz

unread,
May 30, 2014, 12:45:29 PM5/30/14
to mod-pagespeed-discuss
I think the easiest way it to use "sudo chown www-data make /var/cache_mod_pagespeed".  Depending on what distro you have, "www-data" might not be the right user.

Note that this has been discussed before:


I think based on 945, the root cause of this has been found & fixed in our install scripts, and will be available when we release 1.9, but the "sudo chown" workaround should get you rolling.

-Josh


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joshua Marantz

unread,
May 30, 2014, 4:18:34 PM5/30/14
to mod-pagespeed-discuss
Correction, Issue 945 is now fixed in our latest beta: 1.8.31.3.  If you can upgrade to the latest beta, please let us know if this solves the permissions problem.

-Josh

apacher

unread,
May 31, 2014, 12:25:57 AM5/31/14
to mod-pagesp...@googlegroups.com
Thank you very much!

I have just switched to beta channel, and it shows me version number 1.8.31.2-3973 , and the permission issues still there. 

I am on debian wheezy 7
"sudo apt-get remove mod-pagespeed-stable"

"sudo apt-get install mod-pagespeed-beta"

Get:1 http://dl.google.com/linux/mod-pagespeed/deb/ stable/main mod-pagespeed-beta i386 1.8.31.2-r3973 [5,397 kB]

I have to wait for  1.8.31.3 or where can I get / install the very latest version?

(Sorry for my noob question)


2014. május 30., péntek 22:18:34 UTC+2 időpontban jmarantz a következőt írta:
Correction, Issue 945 is now fixed in our latest beta: 1.8.31.3.  If you can upgrade to the latest beta, please let us know if this solves the permissions problem.

-Josh
On Fri, May 30, 2014 at 12:45 PM, Joshua Marantz <jmar...@google.com> wrote:
I think the easiest way it to use "sudo chown www-data make /var/cache_mod_pagespeed".  Depending on what distro you have, "www-data" might not be the right user.

Note that this has been discussed before:


I think based on 945, the root cause of this has been found & fixed in our install scripts, and will be available when we release 1.9, but the "sudo chown" workaround should get you rolling.

-Josh
On Fri, May 30, 2014 at 12:35 PM, apacher <timea....@gmail.com> wrote:
Hi, 

I am using latest  stable version of mod_pagespeed 1.7.30.4-3847. on an Apache 2.2.22 server

The error.log contains lots of error messages like these

Error msg1: Failed to make directory /var/cache/mod_pagespeed/prop_page: Permission denied 

Error msg2: /var/cache/mod_pagespeed/prop_page/http.... opening temp file: No such file or directory

/var/log/pagespeed/stats_log_global:0: opening output file: Permission denied 

Error msg3: Could not create directories for file /var/cache/mod_pagespeed/prop_page/
 
Error msg4: /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
 
Error msg5: Error opening statistics log file /var/log/pagespeed/stats_log_global.
 

How can I resolve these issues?

Thanks

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

apacher

unread,
May 31, 2014, 12:53:13 AM5/31/14
to mod-pagesp...@googlegroups.com
I have updated to  1.8.31.3-4009

Still getting error messages

This is my last 10 lines of my error log

[Sat May 31 04:47:06 2014] [error] [mod_pagespeed 1.8.31.3-4009 @9386] /var/cache/mod_pagespeed/rname/ce_FN12rR6VbFOTFqg6XXXX/http,3A/,2Fwww...................jpg.pagespeed.ic.NMCByBdk_p.webp,40,40_,.tempNmRiZ6:0: opening temp file: No such file or directory
[Sat May 31 04:47:06 2014] [error] [mod_pagespeed 1.8.31.3-4009 @9386] Failed to make directory /var/cache/mod_pagespeed/rname: Permission denied
[Sat May 31 04:47:06 2014] [error] [mod_pagespeed 1.8.31.3-4009 @9386] Could not create directories for file /var/cache/mod_pagespeed/rname/ce_FN12rR6VbFOTFqg6XXXX/http,3A/,2Fwww............................jpg.pagespeed.ic.UuV3TzQHXl.webp,40,40_,.temp
[Sat May 31 04:47:06 2014] [error] [mod_pagespeed 1.8.31.3-4009 @9386] /var/cache/mod_pagespeed/rname/ce_FN12rR6VbFOTFqg6XXXX/http,3A/,2Fwww..........jpg.pagespeed.ic.UuV3TzQHXl.webp,40,40_,.tempr6UN1N:0: opening temp file: No such file or directory
[Sat May 31 04:47:10 2014] [error] [mod_pagespeed 1.8.31.3-4009 @10708] Failed to make directory /var/cache/mod_pagespeed/prop_page: Permission denied
[Sat May 31 04:47:10 2014] [error] [mod_pagespeed 1.8.31.3-4009 @10708] Could not create directories for file /var/cache/mod_pagespeed/prop_page/http,3A/,2Fwww..................html_FN12rR6VbF,40Desktop,40beacon_cohort,.temp
[Sat May 31 04:47:10 2014] [error] [mod_pagespeed 1.8.31.3-4009 @10708] /var/cache/mod_pagespeed/prop_page/http,3A/,2Fwww.................html_FN12rR6VbF,40Desktop,40beacon_cohort,.tempaMfoIA:0: opening temp file: No such file or directory
[Sat May 31 04:47:10 2014] [error] [mod_pagespeed 1.8.31.3-4009 @10708] Failed to make directory /var/cache/mod_pagespeed/prop_page: Permission denied
[Sat May 31 04:47:10 2014] [error] [mod_pagespeed 1.8.31.3-4009 @10708] Could not create directories for file /var/cache/mod_pagespeed/prop_page/http,3A/,2Fwww.............................html_FN12rR6VbF,40Desktop,40beacon_cohort,.temp
[Sat May 31 04:47:10 2014] [error] [mod_pagespeed 1.8.31.3-4009 @10708] /var/cache/mod_pagespeed/prop_page/http,3A/,2Fwww....................html_FN12rR6VbF,40Desktop,40beacon_cohort,.tempKlTyAp:0: opening temp file: No such file or directory






2014. május 30., péntek 22:18:34 UTC+2 időpontban jmarantz a következőt írta:
Correction, Issue 945 is now fixed in our latest beta: 1.8.31.3.  If you can upgrade to the latest beta, please let us know if this solves the permissions problem.

-Josh
On Fri, May 30, 2014 at 12:45 PM, Joshua Marantz <jmar...@google.com> wrote:
I think the easiest way it to use "sudo chown www-data make /var/cache_mod_pagespeed".  Depending on what distro you have, "www-data" might not be the right user.

Note that this has been discussed before:


I think based on 945, the root cause of this has been found & fixed in our install scripts, and will be available when we release 1.9, but the "sudo chown" workaround should get you rolling.

-Josh
On Fri, May 30, 2014 at 12:35 PM, apacher <timea....@gmail.com> wrote:
Hi, 

I am using latest  stable version of mod_pagespeed 1.7.30.4-3847. on an Apache 2.2.22 server

The error.log contains lots of error messages like these

Error msg1: Failed to make directory /var/cache/mod_pagespeed/prop_page: Permission denied 

Error msg2: /var/cache/mod_pagespeed/prop_page/http.... opening temp file: No such file or directory

/var/log/pagespeed/stats_log_global:0: opening output file: Permission denied 

Error msg3: Could not create directories for file /var/cache/mod_pagespeed/prop_page/
 
Error msg4: /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
 
Error msg5: Error opening statistics log file /var/log/pagespeed/stats_log_global.
 

How can I resolve these issues?

Thanks

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Joshua Marantz

unread,
May 31, 2014, 7:35:53 AM5/31/14
to mod-pagespeed-discuss
It's possible that the previous install left the directories created, and the upgrade did not alter them.  Please go ahead and chown the directories per the apache requirements on your system (e.g. www-data on ubuntu/debian).

-Josh



To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.

apacher

unread,
May 31, 2014, 2:02:53 PM5/31/14
to mod-pagesp...@googlegroups.com
Yes, I forgot to tell in my previous post, that I already did "sudo chown www-data:www-data /var/cache/mod_pagespeed/" (after install 1.8.31.3 beta)
Unfortunately error meassages still there. 

Thank you for your time.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Joshua Marantz

unread,
May 31, 2014, 2:57:42 PM5/31/14
to mod-pagespeed-discuss
Just to make sure, are you running Ubuntu/Debian?  I'm not 100% sure that "www-data" is the user running the "apache2" processes. Maybe it's something else.  Also, why "www-data:www-data" and not just "www-data"?

Finally, you might have wanted:
   sudo chown -R www-data var/cache/mod_pagespeed


Are you using one of those modules that changes user-ID (via su or something) for each request? Those can be a problem for shared file-based cache, but you could probably use memcached.



To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.

apacher

unread,
May 31, 2014, 4:23:30 PM5/31/14
to mod-pagesp...@googlegroups.com

root@xxxxxx:~# uname -r
3.2.0-4-686-pae


 lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.5 (wheezy)
Release:        7.5
Codename:       wheezy


 cat /proc/version
Linux version 3.2.0-4-686-pae (debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.51-1

"Also, why "www-data:www-data" and not just" Because I just followed the link (https://code.google.com/p/modpagespeed/issues/detail?id=945) you gave me, and there was that command. 

I tried "sudo chown -R www-data /var/cache/mod_pagespeed", and after apache2 restarted log errors still the same
Failed to make directory /var/cache/mod_pagespeed/rname: Permission denied



--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Joshua Marantz

unread,
May 31, 2014, 4:27:45 PM5/31/14
to mod-pagespeed-discuss
Are you using one of those modules that changes user-ID (via su or something) for each request? Those can be a problem for shared file-based cache, but you could probably use memcached.

To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/53816350-56de-4240-ac06-5f50c1e38e03%40googlegroups.com.

apacher

unread,
Jun 1, 2014, 2:07:37 AM6/1/14
to mod-pagesp...@googlegroups.com
Sorry, i did not answer your last question, - I am not am expert as you can see :) - and I did not understand the last question.

this what lsmod returned - (If this is not what you are asking, than pls give me a little hint how to check the modules)  Really sorry, and thank you for your patience
 

Module                  Size  Used by
iptable_nat            12800  1
nf_nat                 17924  1 iptable_nat
nf_conntrack_ipv4      13726  3 nf_nat,iptable_nat
nf_defrag_ipv4         12443  1 nf_conntrack_ipv4
nf_conntrack           43121  3 nf_conntrack_ipv4,nf_nat,iptable_nat
ip_tables              17079  1 iptable_nat
x_tables               18158  2 ip_tables,iptable_nat
tun                    17868  2
evdev                  17225  0
coretemp               12770  0
snd_pcm                53461  0
crc32c_intel           12659  0
aesni_intel            17913  0
aes_i586               16647  1 aesni_intel
snd_page_alloc         12867  1 snd_pcm
snd_timer              22356  1 snd_pcm
snd                    42722  2 snd_timer,snd_pcm
soundcore              12921  1 snd
aes_generic            32970  2 aes_i586,aesni_intel
cryptd                 14125  1 aesni_intel
pcspkr                 12515  0
ext3                  134152  1
mbcache                12938  1 ext3
jbd                    47281  1 ext3
xen_netfront           21736  0
xen_blkfront           17198  2


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Jeff Kaufman

unread,
Jun 3, 2014, 11:21:22 AM6/3/14
to mod-pagespeed-discuss
What does this command print?

ps aux | grep 'httpd\|apache'

(Trying to figure out what user apache is running under.)
>>>>>>>>>> send an email to mod-pagespeed-di...@googlegroups.com.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "mod-pagespeed-discuss" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to mod-pagespeed-di...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mod-pagespeed-discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to mod-pagespeed-di...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "mod-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to mod-pagespeed-di...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-di...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/188da97c-74fc-48ee-ac8a-6b05666520f0%40googlegroups.com.

apacher

unread,
Jun 3, 2014, 12:29:07 PM6/3/14
to mod-pagesp...@googlegroups.com
 ps aux | grep 'httpd\|apache'
www-data  xx32  0.8  2.6 210184 55644 ?        Sl   13:32   1:24 /usr/sbin/apache2 -k start
root      xx01  0.0  1.6 134040 34324 ?        Ss   May31   0:14 /usr/sbin/apache2 -k start
root     xxx01  0.0  0.0   3564   792 pts/0    S+   16:25   0:00 grep httpd\|apache
www-data xxx60  0.0  0.2  41728  5824 ?        S    07:35   0:00 /usr/sbin/apache2 -k start
www-data xxx62  1.1  3.0 211312 62588 ?        Sl   07:35   6:04 /usr/sbin/apache2 -k start
www-data xxx63  1.0  2.6 204264 54716 ?        Sl   07:35   5:25 /usr/sbin/apache2 -k start
www-data xxx64  0.9  2.7 206228 57096 ?        Sl   07:35   5:06 /usr/sbin/apache2 -k start
www-data xxx65  1.1  3.3 219920 69136 ?        Sl   07:35   5:50 /usr/sbin/apache2 -k start
www-data xxx66  1.2  2.7 203080 57740 ?        Sl   07:35   6:24 /usr/sbin/apache2 -k start
www-data xxx67  1.0  3.3 219388 69288 ?        Sl   07:35   5:42 /usr/sbin/apache2 -k start
www-data xxx68  1.1  2.7 203536 56876 ?        Sl   07:35   5:50 /usr/sbin/apache2 -k start
www-data xxx69  1.1  2.8 207112 59736 ?        Sl   07:35   6:18 /usr/sbin/apache2 -k start
www-data xxx39  1.0  3.1 215180 64272 ?        Sl   07:35   5:34 /usr/sbin/apache2 -k start
www-data xxx94  0.8  2.9 211904 60252 ?        Sl   12:06   2:13 /usr/sbin/apache2 -k start
>>>>>>>>>> send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "mod-pagespeed-discuss" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mod-pagespeed-discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "mod-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/53816350-56de-4240-ac06-5f50c1e38e03%40googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Horváth Tímea

unread,
Jun 3, 2014, 12:30:56 PM6/3/14
to mod-pagesp...@googlegroups.com
 ps aux | grep 'httpd\|apache'
www-data  xx32  0.8  2.6 210184 55644 ?        Sl   13:32   1:24 /usr/sbin/apache2 -k start
root      xx01  0.0  1.6 134040 34324 ?        Ss   May31   0:14 /usr/sbin/apache2 -k start
root     xxx01  0.0  0.0   3564   792 pts/0    S+   16:25   0:00 grep httpd\|apache
www-data xxx60  0.0  0.2  41728  5824 ?        S    07:35   0:00 /usr/sbin/apache2 -k start
www-data xxx62  1.1  3.0 211312 62588 ?        Sl   07:35   6:04 /usr/sbin/apache2 -k start
www-data xxx63  1.0  2.6 204264 54716 ?        Sl   07:35   5:25 /usr/sbin/apache2 -k start
www-data xxx64  0.9  2.7 206228 57096 ?        Sl   07:35   5:06 /usr/sbin/apache2 -k start
www-data xxx65  1.1  3.3 219920 69136 ?        Sl   07:35   5:50 /usr/sbin/apache2 -k start
www-data xxx66  1.2  2.7 203080 57740 ?        Sl   07:35   6:24 /usr/sbin/apache2 -k start
www-data xxx67  1.0  3.3 219388 69288 ?        Sl   07:35   5:42 /usr/sbin/apache2 -k start
www-data xxx68  1.1  2.7 203536 56876 ?        Sl   07:35   5:50 /usr/sbin/apache2 -k start
www-data xxx69  1.1  2.8 207112 59736 ?        Sl   07:35   6:18 /usr/sbin/apache2 -k start
www-data xxx39  1.0  3.1 215180 64272 ?        Sl   07:35   5:34 /usr/sbin/apache2 -k start
www-data xxx94  0.8  2.9 211904 60252 ?        Sl   12:06   2:13 /usr/sbin/apache2 -k start

You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/Wl1SLd77oLE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAMJ6YUs69haDZXnWTJWnAEOZmnROuLWGO6YZFx%3DqV7Cqxg1NEw%40mail.gmail.com.

Joshua Marantz

unread,
Jun 4, 2014, 6:07:46 AM6/4/14
to mod-pagespeed-discuss
One more thing to try: can you try temporarily making the cache directory world-writeable?

chmod -R a+w /var/cache/mod_pagespeed

Now you should be able to run PageSpeed without errors in the log file. After you've run for a while, look at the contents of the directory and see which users own which files.  That might help us set ownership properly.  If there's a mix of users then we might want to take a deeper look at your vhost configuration to understand why.

-Josh


To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/f8e30a04-5ba4-420d-9ef3-6e9caeca7986%40googlegroups.com.

apacher

unread,
Jun 4, 2014, 7:12:34 AM6/4/14
to mod-pagesp...@googlegroups.com
root@wonderland:~# chmod -R a+w /var/cache/mod_pagespeed
root@wonderland:~# ls -l /var/cache/mod_pagespeed/
total 8
-rw--w--w- 1 www-data www-data   13 May 31 05:34 !clean!time!
drwxrwxrwx 3 www-data www-data 4096 May 31 05:35 prop_page

------------------after chmod mod_pagespeed directory, BUT before i restarted apache2 and varnish !!! error log looks like this ---------------------------------------------------------
root@wonderland:~# tail -10 /var/log/apache2/error.log


[Wed Jun 04 10:42:01 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32186] Failed to make directory /var/cache/mod_pagespeed/rname: Permission denied
[Wed Jun 04 10:42:01 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32186] Could not create directories for file /var/cache/mod_pagespeed/rname/ic_FN12rR6VbFOTFqg6QBMe/http,3A/,2Fwww.mydomain_______some.jpg,40x,40_,.temp
[Wed Jun 04 10:42:01 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32186] /var/cache/mod_pagespeed/rname/ic_FN12rR6VbFOTFqg6QBMe/http,3A/,2Fwww.mydomain_______some.jpg,40x,40_,.temp0k2Y1j:0: opening temp file: No such file or directory
[Wed Jun 04 10:42:01 2014] [warn] [mod_pagespeed 1.8.31.3-4009 @32186] Failed to read cache clean timestamp /var/cache/mod_pagespeed/!clean!time!.  Doing an extra cache clean to be safe.
[Wed Jun 04 10:42:01 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32186] Failed to mkdir /var/cache/mod_pagespeed/!clean!lock!: Permission denied
[Wed Jun 04 10:43:16 2014] [warn] [mod_pagespeed 1.8.31.3-4009 @32182] Failed to read cache clean timestamp /var/cache/mod_pagespeed/!clean!time!.  Doing an extra cache clean to be safe.
[Wed Jun 04 10:45:09 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32189] Serf status 4(Interrupted system call) polling for 1 threaded fetches for 0.05 seconds
[Wed Jun 04 10:45:09 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32189] Serf status 4(Interrupted system call) polling for 1 threaded fetches for 0.05 seconds
[Wed Jun 04 10:50:02 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32189] /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
[Wed Jun 04 10:50:02 2014] [error] [mod_pagespeed 1.8.31.3-4009 @32189] Error opening statistics log file /var/log/pagespeed/stats_log_global.

--------------------------------------------------------and after apache2 and varnish cache restarted ----------------------------------------

[Wed Jun 04 11:06:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11744] Serf status 4(Interrupted system call) polling for 1 threaded fetches for 0.05 seconds

NO ERROR message after this! :)

Before I chmod the mod_pagespeed directory I forgot to check the original folder permissions. What should the permissons be on mod_pagespeed directory?
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "mod-pagespeed-discuss" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mod-pagespeed-discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "mod-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/53816350-56de-4240-ac06-5f50c1e38e03%40googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

apacher

unread,
Jun 4, 2014, 7:19:48 AM6/4/14
to mod-pagesp...@googlegroups.com
After a few minutes I got error message in error.log, but it is much less then before

[Wed Jun 04 11:13:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @12510] /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
[Wed Jun 04 11:13:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @12510] Error opening statistics log file /var/log/pagespeed/stats_log_global.

>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "mod-pagespeed-discuss" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mod-pagespeed-discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "mod-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/53816350-56de-4240-ac06-5f50c1e38e03%40googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

apacher

unread,
Jun 4, 2014, 7:46:54 AM6/4/14
to mod-pagesp...@googlegroups.com
Permissions on mod_pagespeed folder
root@wonderland:~# ls -l /var/cache/mod_pagespeed/
total 16
-rw-------  1 admin    admin      13 Jun  4 10:43 !clean!time!
drwxr-xr-x  3 admin    admin    4096 Jun  4 10:43 mydomain.com
drwxrwxrwx  3 www-data www-data 4096 May 31 05:35 prop_page
drwxr-xr-x 11 admin    admin    4096 Jun  4 11:02 rname

error.log message
Permission denied on stats_log_global in every 10 minutes

[Wed Jun 04 11:06:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11744] Serf status 4(Interrupted system call) polling for 1 threaded fetches for 0.05 seconds
[Wed Jun 04 11:13:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @12510] /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
[Wed Jun 04 11:13:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @12510] Error opening statistics log file /var/log/pagespeed/stats_log_global.
[Wed Jun 04 11:23:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11752] /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
[Wed Jun 04 11:23:41 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11752] Error opening statistics log file /var/log/pagespeed/stats_log_global.
[Wed Jun 04 11:33:48 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11744] /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
[Wed Jun 04 11:33:48 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11744] Error opening statistics log file /var/log/pagespeed/stats_log_global.
[Wed Jun 04 11:43:50 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11743] /var/log/pagespeed/stats_log_global:0: opening output file: Permission denied
[Wed Jun 04 11:43:50 2014] [error] [mod_pagespeed 1.8.31.3-4009 @11743] Error opening statistics log file /var/log/pagespeed/stats_log_global.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "mod-pagespeed-discuss" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mod-pagespeed-discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "mod-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/53816350-56de-4240-ac06-5f50c1e38e03%40googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Myself

unread,
Oct 17, 2016, 7:51:46 AM10/17/16
to mod-pagespeed-discuss
Hi

I am running 2.4 version still got below error , successfully used mentioned chown -R www-data /var/cache/.......

But I am not stuck at last error which apacher mentioned
(see below)

/var/log/pagespeed/stats_log_
global:0: opening output file:
Permission denied

Any solutions for this one ? Sorry if I have missed in this chain.

Maksim Orlovich

unread,
Oct 19, 2016, 9:22:37 AM10/19/16
to mod-pagesp...@googlegroups.com
Note that this file is in /var/log/ and not /var/cache
>>>>> >>>>>>>>>> mod-pagespeed-di...@googlegroups.com.
>>>>> >>>>>>>>>> To view this discussion on the web visit
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4042f8f9-7068-4d6c-abca-ef92b315fe71%40googlegroups.com.
>>>>> >>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>> >>>>>>>>>
>>>>> >>>>>>>>>
>>>>> >>>>>>>>
>>>>> >>>>>>> --
>>>>> >>>>>>> You received this message because you are subscribed to the
>>>>> >>>>>>> Google
>>>>> >>>>>>> Groups "mod-pagespeed-discuss" group.
>>>>> >>>>>>> To unsubscribe from this group and stop receiving emails from
>>>>> >>>>>>> it,
>>>>> >>>>>>> send an email to
>>>>> >>>>>>> mod-pagespeed-di...@googlegroups.com.
>>>>> >>>>>>> To view this discussion on the web visit
>>>>> >>>>>>>
>>>>> >>>>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/eb250f84-e172-4a50-949c-2152295e5d09%40googlegroups.com.
>>>>> >>>>>>>
>>>>> >>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>> >>>>>>
>>>>> >>>>>>
>>>>> >>>>> --
>>>>> >>>>> You received this message because you are subscribed to the
>>>>> >>>>> Google
>>>>> >>>>> Groups "mod-pagespeed-discuss" group.
>>>>> >>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>> >>>>> send
>>>>> >>>>> an email to mod-pagespeed-di...@googlegroups.com.
>>>>> >>>>> To view this discussion on the web visit
>>>>> >>>>>
>>>>> >>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/11575257-5eba-4934-a9b4-216392cfa24e%40googlegroups.com.
>>>>> >>>>>
>>>>> >>>>> For more options, visit https://groups.google.com/d/optout.
>>>>> >>>>
>>>>> >>>>
>>>>> >>> --
>>>>> >>> You received this message because you are subscribed to the Google
>>>>> >>> Groups
>>>>> >>> "mod-pagespeed-discuss" group.
>>>>> >>> To unsubscribe from this group and stop receiving emails from it,
>>>>> >>> send an
>>>>> >>> email to mod-pagespeed-di...@googlegroups.com.
>>>>> >>> To view this discussion on the web visit
>>>>> >>>
>>>>> >>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/53816350-56de-4240-ac06-5f50c1e38e03%40googlegroups.com.
>>>>> >>>
>>>>> >>> For more options, visit https://groups.google.com/d/optout.
>>>>> >>
>>>>> >>
>>>>> > --
>>>>> > You received this message because you are subscribed to the Google
>>>>> > Groups
>>>>> > "mod-pagespeed-discuss" group.
>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>> > send an
>>>>> > email to mod-pagespeed-di...@googlegroups.com.
>>>>> > To view this discussion on the web visit
>>>>> >
>>>>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/188da97c-74fc-48ee-ac8a-6b05666520f0%40googlegroups.com.
>>>>> >
>>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "mod-pagespeed-discuss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to mod-pagespeed-di...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/f8e30a04-5ba4-420d-9ef3-6e9caeca7986%40googlegroups.com.
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-di...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/7a36b5e3-c86a-49d9-8f6b-e951e6236c3c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages