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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Bad encoding

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2010, 03:24 AM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92
Default Bad encoding

I'm using litespeed 4.0.12 sometimes server has problem with encoding js/css as gzip

Users gets something like this in webbrowsers:



it is in polish but meen: bad content encoding.

It is hard to reprodice this problem but when it happend again i will try send more informations (maby headers)

Restart litespeed don't helpe i must manualy remove swap directory.

Last edited by Grzegorz Derebecki; 01-22-2010 at 09:20 AM..
Reply With Quote
  #2  
Old 01-22-2010, 12:59 AM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92
Ok it happend again

there are files from swap 1 is bad second is OK

http://pliki.fdb.pl/lsws/3d31014ca19...39921a5-ok.lsz
http://pliki.fdb.pl/lsws/3d31014ca19...9921a5-bad.lsz

they are representing the same static file.

(please download them by wget not webbrowser becous they might be corrupted again).

can this problem be fixed?
Reply With Quote
  #3  
Old 01-22-2010, 07:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Make sure temp partition is not full.
You should upgrade to 3.3.24 or 4.0.12, just change the version number in the download link to get it. 3.3.24 is in "3.0" folder, just change "4.0" to "3.0".
Reply With Quote
  #4  
Old 01-22-2010, 09:19 AM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92
hi.

i'm using 4.0.12 (sorry for first post i past wrong version).

i have also 169G free space (space isn't problem becous as you can see size of this 2 files are identical but content is diffrend)
Reply With Quote
  #5  
Old 01-25-2010, 05:15 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
hmm... this is a occasional issue which is hard to reproduce.
Reply With Quote
  #6  
Old 01-25-2010, 06:50 AM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92
NiteWave right. I changed place where swap is stored and didn't happend again yet.

Btw there is posibilisty that check if litespeed use mmap memory? I setup it enought hight and still there are many small files in swap directory (i also incrested to max number cache small files)

os is freebsd 7.2
Reply With Quote
  #7  
Old 01-25-2010, 06:47 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
can you give more detail regarding:swap location, mmap setting, how many files under your document root
Reply With Quote
  #8  
Old 01-26-2010, 02:06 PM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92


about swap it was on zfs file system on freebsd (zfs ver. 13)
there are many (it takes to long to count them) but zfs is very good
for this.

more information about my ZFS configuration:

madmax@core2:~% zpool status
pool: tank
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
mirror ONLINE 0 0 0
ad6s1d ONLINE 0 0 0
ad8s1d ONLINE 0 0 0

errors: No known data errors

swap was placed in /daten/tmp/lshttpd/swap

root@core2:tmp/lshttpd/swap# df -h |grep daten
tank/daten 634G 470G 164G 74% /daten
Reply With Quote
  #9  
Old 02-02-2010, 01:34 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
I have to report the same issue for a website that was working fine until I upgraded to LSAPI 5.2 (I was already on LSWS 4.0.12). The website is http://www.greekwarriors.eu and the page opens correctly in IE* but won't open in FF or Chrome, giving me the same content encoding error.
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
  #10  
Old 02-02-2010, 02:30 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
~/temp>wget -v --save-headers http://www.greekwarriors.eu/
~/temp>head -20 index.html
HTTP/1.0 200 OK
Date: Tue, 02 Feb 2010 10:17:28 GMT
Server: LiteSpeed
Connection: close
X-Powered-By: PHP/5.2.12
Set-Cookie: lang=english; expires=Wed, 02-Feb-2011 10:17:26 GMT
Content-Type: text/html

Array<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="eng">
<head>
<title>Greek Warriors </title>
Notice this line:
Quote:
Array<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
There is an extra "Array", this may prevent firefox, chrome to display the page.

Please check the output of index.php, to remove the extra "Array"
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 11:52 AM.



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