Bad encoding

Discussion in 'Bug Reports' started by Grzegorz Derebecki, Jan 19, 2010.

  1. Grzegorz Derebecki

    Grzegorz Derebecki New Member

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

    Users gets something like this in webbrowsers:

    [​IMG]

    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: Jan 22, 2010
  2. Grzegorz Derebecki

    Grzegorz Derebecki New Member

  3. mistwang

    mistwang LiteSpeed Staff

    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".
  4. Grzegorz Derebecki

    Grzegorz Derebecki New Member

    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)
  5. NiteWave

    NiteWave Administrator

    hmm... this is a occasional issue which is hard to reproduce.
  6. Grzegorz Derebecki

    Grzegorz Derebecki New Member

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

    NiteWave Administrator

    can you give more detail regarding:swap location, mmap setting, how many files under your document root
  8. Grzegorz Derebecki

    Grzegorz Derebecki New Member

    [​IMG]

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

    priestjim New Member

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

    NiteWave Administrator

    Notice this line:
    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"
  11. priestjim

    priestjim New Member

    Nice answer, quick and clever. I'll notify the customer, thanks!
  12. Grzegorz Derebecki

    Grzegorz Derebecki New Member

    i'm wondering maby my problem shows becous to litespeed servers wants save execly the same file at the same time?

    maby file locks works diffrend on zfs?
  13. mistwang

    mistwang LiteSpeed Staff

    It is possible having something to do with zfs. If you do not experience any problem when switch cache directory to none-zfs partition, it indicates that.
  14. Grzegorz Derebecki

    Grzegorz Derebecki New Member

    maby but litespeed use locks when writing gzip files to filesystem? Maby it should check if 2 process don't write the same file at the same time?

    Or maby it should check if after write file has good checksume? it will be hard to do?

Share This Page