Missing resources (CSS and images)

1,025 views
Skip to first unread message

Rudolf Ladyzhenskii

unread,
Aug 14, 2015, 10:11:25 AM8/14/15
to mod-pagespeed-discuss
Hi all,

I wonder if anyone else saw this -- sometimes website does not load properly. Quick look at console shows that CSS, JS  and images are not loaded (error 404). Does not happen on all resources.
At this stage It tried 3 different browsers -- all show same problem. Resources in question have "pagespeed" in file name

Restart of httpd fixes the issue, so it is difficult to demonstrate.

Anything I can try at that stage? What debug info should I collect if it happens again?

PageSpeed version  1.9.32.4-7251

Thanks,
Rudolf

Jeff Kaufman

unread,
Aug 14, 2015, 10:46:25 AM8/14/15
to mod-pagespeed-discuss
Could you paste your config?
> --
> 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/b8136eaf-3e36-4bd6-8ae2-f13447e47661%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rudolf Ladyzhenskii

unread,
Aug 20, 2015, 3:19:37 AM8/20/15
to mod-pagespeed-discuss
I also have interesting lines in Apache error log:

[Thu Aug 20 17:11:24.112390 2015] [pagespeed:error] [pid 16402] [mod_pagespeed 1.9.32.4-7251 @16402] http://www.beltsfromoz.com.au/buckles/cards/BDKL%20319652.JPG (connecting to:images):0: Error status=670002 (Name or service not known) serf_connection_create2
[Thu Aug 20 17:11:24.112698 2015] [pagespeed:warn] [pid 16402] [mod_pagespeed 1.9.32.4-7251 @16402] Fetch failed to start: http://www.beltsfromoz.com.au/buckles/cards/BDKL%20319652.JPG (connecting to:images)
[Thu Aug 20 17:11:24.116217 2015] [pagespeed:warn] [pid 16402] [mod_pagespeed 1.9.32.4-7251 @16402] xBDKL,P20319652.JPG:0: Resource based on http://www.beltsfromoz.com.au//images/buckles/cards/BDKL%20319652.JPG but cannot access the original
[Thu Aug 20 17:11:24.116603 2015] [pagespeed:warn] [pid 16402] [mod_pagespeed 1.9.32.4-7251 @16402] [0820/171124:WARNING:resource_fetch.cc(197)] Fetch failed for resource url http://www.beltsfromoz.com.au//images/buckles/cards/xBDKL,P20319652.JPG.pagespeed.ic.nd_obgjsZ4.jpg
[Thu Aug 20 17:11:24.116782 2015] [pagespeed:warn] [pid 16402] [mod_pagespeed 1.9.32.4-7251 @16402] Fetch failed for http://www.beltsfromoz.com.au//images/buckles/cards/xBDKL,P20319652.JPG.pagespeed.ic.nd_obgjsZ4.jpg, status=404
[Thu Aug 20 17:11:24.117351 2015] [pagespeed:warn] [pid 16402] [mod_pagespeed 1.9.32.4-7251 @16402] http://www.beltsfromoz.com.au//images/buckles/cards/xBDKL,P20319652.JPG.pagespeed.ic.nd_obgjsZ4.jpg resource_404_count: not found (404)
[Thu Aug 20 17:12:08.046613 2015] [pagespeed:warn] [pid 16199] [mod_pagespeed 1.9.32.4-7251 @16199] A.andepict.min.css:0: Resource based on https://www.fascinators.com.au/megastore_theme/megastore_styles/andepict.min.css but cannot access the original
[Thu Aug 20 17:12:08.046730 2015] [pagespeed:warn] [pid 16199] [mod_pagespeed 1.9.32.4-7251 @16199] [0820/171208:WARNING:resource_fetch.cc(197)] Fetch failed for resource url https://www.fascinators.com.au/megastore_theme/megastore_styles/A.andepict.min.css.pagespeed.cf.8iNvpIsKBK.css
[Thu Aug 20 17:12:08.046805 2015] [pagespeed:warn] [pid 16199] [mod_pagespeed 1.9.32.4-7251 @16199] Fetch failed for https://www.fascinators.com.au/megastore_theme/megastore_styles/A.andepict.min.css.pagespeed.cf.8iNvpIsKBK.css, status=404
[Thu Aug 20 17:12:08.046902 2015] [pagespeed:warn] [pid 16199] [mod_pagespeed 1.9.32.4-7251 @16199] https://www.fascinators.com.au/megastore_theme/megastore_styles/A.andepict.min.css.pagespeed.cf.8iNvpIsKBK.css resource_404_count: not found (404)


Original versions of files do exist

Rudolf



On Saturday, 15 August 2015 00:46:25 UTC+10, Jeff Kaufman wrote:
Could you paste your config?

On Fri, Aug 14, 2015 at 10:11 AM, Rudolf Ladyzhenskii
<ruma...@gmail.com> wrote:
> Hi all,
>
> I wonder if anyone else saw this -- sometimes website does not load
> properly. Quick look at console shows that CSS, JS  and images are not
> loaded (error 404). Does not happen on all resources.
> At this stage It tried 3 different browsers -- all show same problem.
> Resources in question have "pagespeed" in file name
>
> Restart of httpd fixes the issue, so it is difficult to demonstrate.
>
> Anything I can try at that stage? What debug info should I collect if it
> happens again?
>
> PageSpeed version  1.9.32.4-7251
>
> Thanks,
> Rudolf
>
> --
> 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
pagespeed.conf

Rudolf Ladyzhenskii

unread,
Aug 20, 2015, 3:33:58 AM8/20/15
to mod-pagespeed-discuss
Forgot to add -- sometimes resource is not found in HTTPS version of site, but is available in HTTP version of same
Restarting Apache fixes the problems 100%

Rudolf

Jeff Kaufman

unread,
Aug 20, 2015, 8:14:41 AM8/20/15
to mod-pagespeed-discuss
The line that jumps out at me is:

    Fetch failed to start: http://www.beltsfromoz.com.au/buckles/cards/BDKL%20319652.JPG (connecting to:images)

That means that it's trying to do the equivalent of:

   telnet images 80
   > GET /buckles/cards/BDKL%20319652.JPG HTTP/1.1
   ...

Which is weird: why would it connect to http://images ?  There's nothing in the config you attached that should be making it do that; do you have any other pagespeed directives in other config files?  If you do "grep -R ModPagespeed ." in your conf directory, do you see it finding lines in places other than pagespeed.conf?

--
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/eb52b60b-1d62-44b8-9e1c-b6fae3782e1f%40googlegroups.com.

Rudolf Ladyzhenskii

unread,
Aug 20, 2015, 9:43:41 AM8/20/15
to mod-pagespeed-discuss
Nothing in .htaccess. This is the only thing, really:
<IfModule pagespeed_module>
#ModPagespeedEnableFilters resize_images
</IfModule>
One commented out instruction.
Nothing in Apache config directory

Looking at that line in error log, things are weird. All images are under /images subdirectory. Not sure what is it modpagespeed tries to do.
It should be: http://www.beltsfromoz.com.au/images/buckles/cards/BDKL%20319652.JPG, not http://www.beltsfromoz.com.au/buckles/cards/BDKL%20319652.JPG

I wonder if space in the filename causes the problem in this particular case.

Rudolf

--
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,
Aug 20, 2015, 10:08:19 AM8/20/15
to mod-pagespeed-discuss
This may be related to this earlier issue: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/mod-pagespeed-discuss/8xvN3yaMDkc/fLPX-d49CAAJ

I started trying to reproduce that and couldn't succeed.

I'll look more today.

--
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/8a3d3822-26d7-44d8-a6bd-51ae5b1dc553%40googlegroups.com.

Jeff Kaufman

unread,
Aug 21, 2015, 11:07:33 AM8/21/15
to mod-pagespeed-discuss
Looking over your config, these are definitely wrong:

  ModPagespeedDomain https://fonts.googleapis.com
  ModPagespeedDomain https://fonts.googleapis.com/css

ModPagespeedDomain is a way of saying "the server you get when you follow these urls is also running PageSpeed", which is not true here.

Jeff Kaufman

unread,
Aug 21, 2015, 11:45:06 AM8/21/15
to mod-pagespeed-discuss
The ModPagespeedDomain issue can't be the only problem though.

How did you install apache?  From source or from packages?  Or was it already installed?

I'm trying to figure out if we have a problem with a particular version of the aprutil library, and we use whichever aprutil library apache is already using.

----

Looking into the image issue, I see http://www.beltsfromoz.com.au/cards-dice-and-games-c-67_73.html refers to images/buckles/cards/xBDKL,P20319652.JPG.pagespeed.ic.nd_obgjsZ4.jpg with:

<a href=...>
<img src="images/buckles/cards/xBDKL,P20319652.JPG.pagespeed.ic.nd_obgjsZ4.jpg" alt="..." title="..." width="100" height="80"/> </a>

Then from the logs I'm seeing a cache miss, where PageSpeed doesn't have the optimized resource or original resource in cache.  It tries to fetch it from //images/buckles/cards/BDKL%20319652.JPG which is definitely wrong and fails.

Rudolf Ladyzhenskii

unread,
Aug 21, 2015, 8:35:59 PM8/21/15
to mod-pagespeed-discuss
Hi Jeff,

In relation to ModPagespeedDomain issue -- this was an attempt (failed attempt) to solve a problem with Google fonts not being processed properly. I will remove those lines.

Missing image -- not sure what happened there. Nobodt deleted the image, but it is certainly missing. And it was there at some stage, otherwise it would not get into PageSpeed cache. Will have to investigate this particular one.

Apache was installed through EasyApache in cPanel.

If you want, Skype me on 'rumatech' -- I can provide you SSH access to the server.

Thanks,
Rudolf

--
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.

--
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,
Aug 22, 2015, 8:33:55 AM8/22/15
to mod-pagespeed-discuss
On Fri, Aug 21, 2015 at 8:35 PM, Rudolf Ladyzhenskii <ruma...@gmail.com> wrote:

Missing image -- not sure what happened there. Nobodt deleted the image, but it is certainly missing. And it was there at some stage, otherwise it would not get into PageSpeed cache. Will have to investigate this particular one.


That's weird, when I was debugging yesterday and again this morning the image is there:

$ curl -sS -D- -o/dev/null "http://www.beltsfromoz.com.au/images/buckles/cards/BDKL%20319652.JPG"

HTTP/1.1 200 OK

Date: Sat, 22 Aug 2015 12:33:28 GMT

Server: Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

Content-Length: 21317

ETag: "3be2ee-5345-4ef4532171cc0"

Accept-Ranges: bytes

Cache-Control: max-age=2592000

Expires: Mon, 21 Sep 2015 12:32:47 GMT

Vary: User-Agent

Last-Modified: Sat, 22 Aug 2015 12:33:28 GMT

X-Content-Type-Options: nosniff

Content-Type: image/jpeg


What made you say "certainly missing"?

 

--
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.

--
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/31c9b959-8957-490d-8da3-9773813dea93%40googlegroups.com.

Rudolf Ladyzhenskii

unread,
Aug 22, 2015, 8:55:58 AM8/22/15
to mod-pagespeed-discuss
Sorry Jeff,

One should clearly not work at computer without enough caffeine in the blood system.

File is there and always was. I was searching by parttial file name and "20" is not part of it, it is a space.
Anyway, file is there, sorry to confuse you.

Rudolf

--
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.

--
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.

--
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.

Rudolf Ladyzhenskii

unread,
Aug 25, 2015, 9:50:19 PM8/25/15
to mod-pagespeed-discuss
Hi Jeff,

Any luck reproducing the problem?

It is gettting so annoying, I have to run cron job to restart apache every hour

Rudolf

revaco...@gmail.com

unread,
Sep 4, 2018, 11:23:22 AM9/4/18
to mod-pagespeed-discuss
Hello Rudolf

Did you ever solve this issue?
I get occasional 404's on .webp images and combined css but only when serving from https, on http they're fine.

Also restarting apache with what feels like unnecessary regularity.

John

Longinos

unread,
Sep 5, 2018, 6:37:44 AM9/5/18
to mod-pagespeed-discuss

Hi to all
Is perhaps related to not auth the https domain?
Try to add: ModpagespeedDomain http*://*.beltsfromoz.com.au
This auth cover the http and https of al subdomains

Rudolf Ladyzhenskii

unread,
Sep 5, 2018, 6:46:12 AM9/5/18
to mod-pagesp...@googlegroups.com
I disabled mad-pagespeed completely.
Instead, I have nginx running in front of apache. This provides caching as well as additional security. And no issues with missing resources.

Rudolf

--
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/zffms0sywI8/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/5b2c29ee-2d7e-4208-a581-868588e193fb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages