LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [Solved] Static images randomly failing

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2012, 10:26 AM
Morgon Morgon is offline
New Member
 
Join Date: Mar 2012
Posts: 5
Default [Solved] Static images randomly failing

Good afternoon,

I'm configuring a new install of LSWS 4.1.12 and I'm having some trouble with some static content. For pages with a number of static resources (like a category page of an eCommerce site), an image or two will randomly not load.

In Chrome, it reports this simply as "(failed)" in the Network viewer.
In Firefox, it displays part of the image that it downloaded, and reports "image is corrupt or truncated" in Firebug.

It doesn't seem to be any sort of per-connection limits, since transmission is happening; they're just.... stopping. What's interesting to me is that for the most part, they seem to be stopping on common byte sizes: 4096 and 8192.
I don't know if that's useful information.

Also I've only seen it happen with images. I don't know if that has anything to do with where in the DOM they're located (the top) whereas the images that fail are generally in the second half of requests for a page.

There are no logs being generated anywhere that I've found, so it's not something I have any current insight into. Anyone have any configuration settings I may be able to try?

Thanks!

Last edited by Morgon; 04-19-2012 at 10:30 AM..
Reply With Quote
  #2  
Old 04-19-2012, 10:49 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
are these static files served straight or via php ?

access log (i.e. /usr/local/lsws/logs/access.log) should show if the images files are served
Reply With Quote
  #3  
Old 04-19-2012, 11:14 AM
Morgon Morgon is offline
New Member
 
Join Date: Mar 2012
Posts: 5
Quote:
Originally Posted by webizen View Post
are these static files served straight or via php ?

access log (i.e. /usr/local/lsws/logs/access.log) should show if the images files are served
Thanks for the response.

a) They are static, being served directly by the filesystem.
b) They are being served. See the following (sanitized) log:

1.2.3.4 - - [19/Apr/2012:13:07:06 -0500] "GET /media/catalog/product/cache/1/small_image/165x/9df78eab33525d08d6e5fb8d27136e95/m/y/my_image.png HTTP/1.1" 200 4096 "[referer]" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19"

As you can see, it only served 4096 bytes.

The file itself is 19059 bytes.
Reply With Quote
  #4  
Old 04-19-2012, 03:30 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
how about request the static file directly (not from the base page)? still get partial content?
Reply With Quote
  #5  
Old 04-19-2012, 06:44 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,293
and how about with lsws 4.1.11 ?
Reply With Quote
  #6  
Old 04-20-2012, 06:16 AM
Morgon Morgon is offline
New Member
 
Join Date: Mar 2012
Posts: 5
Quote:
Originally Posted by webizen View Post
how about request the static file directly (not from the base page)? still get partial content?
No, I always get the full file on direct access.

And just to be clear, it's only one or two (out of anywhere between 30 - 40) that only has partial content on a page load, not every image. Hitting a single file directly seems to be just fine. Though maybe I can set up ab to try to hit the same image repeatedly and see if any thread gets a different content size.

Quote:
Originally Posted by NiteWave View Post
and how about with lsws 4.1.11 ?
If I 'downgrade' to 4.1.11, would I be able to keep my settings, or would I have to go through re-compiling PHP and setting up my vhosts?
Reply With Quote
  #7  
Old 04-20-2012, 08:07 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,293
Quote:
If I 'downgrade' to 4.1.11, would I be able to keep my settings, or would I have to go through re-compiling PHP and setting up my vhosts?
all your settings is there, no need re-compile PHP etc, and your 4.1.12 still there.

switching between lsws versions is just one button click:
lsws admin console->Actions->Version Manager->SwitchTo
Reply With Quote
  #8  
Old 04-20-2012, 09:10 PM
Morgon Morgon is offline
New Member
 
Join Date: Mar 2012
Posts: 5
Quote:
Originally Posted by NiteWave View Post
all your settings is there, no need re-compile PHP etc, and your 4.1.12 still there.

switching between lsws versions is just one button click:
lsws admin console->Actions->Version Manager->SwitchTo
Great, thank you. I was able to find the download for 4.1.11, installed and switched to it (didn't have it previously).

In any case, it seems your suspicion may be correct - I spent a good 15 minutes clicking around the same pages as before, but not seeing any of the same image truncation issues as I did with 4.1.12.
Out of curiosity, does that indicate an issue with LSWS, or my environment?
Reply With Quote
  #9  
Old 04-30-2012, 06:31 AM
Sparaker Sparaker is offline
Member
 
Join Date: Sep 2007
Posts: 12
This is an issue with 4.1.12

I am seeing this also on my websites. It seems a bug in LSWS itself. Please fix this ASAP. This is a rather urgent bug that needs attention.

I also get random images being truncated, upon refresh most of them load just fine.
Reply With Quote
  #10  
Old 04-30-2012, 11:03 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Quote:
Originally Posted by Sparaker View Post
This is an issue with 4.1.12

...
I also get random images being truncated, upon refresh most of them load just fine.
to help troubleshoot, check server access log for the image in question and verify if it was served partial and fully served on browser refresh.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:06 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.