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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Random 404s

Reply
 
Thread Tools Display Modes
  #11  
Old 12-26-2005, 07:23 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Have you tried ealier release or just 2.1.8?
Reply With Quote
  #12  
Old 12-26-2005, 07:46 PM
matt matt is offline
Member
 
Join Date: Oct 2005
Location: San Francisco
Posts: 37
I can downgrade if you want me to try that.
Reply With Quote
  #13  
Old 12-26-2005, 08:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, please.

I will try to reproduce it in our lab tomorrow, is there any special context defined for that vhost? It will be great if you can send us the xml configuration for that vhost, and the .htaccess .

I also wonder if it has anything to do with the traffic volume?
Reply With Quote
  #14  
Old 12-26-2005, 09:12 PM
matt matt is offline
Member
 
Join Date: Oct 2005
Location: San Francisco
Posts: 37
Possibly on the traffic, we're on the front page of Digg right now and a ton of blogs.

I downgraded to 2.1.7 and still having a prob, next earliest I have is 2.1.5 which I remember having a prob with hanging PHP procs.
Reply With Quote
  #15  
Old 12-27-2005, 12:42 PM
matt matt is offline
Member
 
Join Date: Oct 2005
Location: San Francisco
Posts: 37
I emailed all my conf files and .htaccess to your support email, let me know if anything else is needed.
Reply With Quote
  #16  
Old 12-27-2005, 01:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Is that possible that there is some process keep recreating the .htaccess, even thoug the content of .htaccess does not change? Maybe not that specific file, but other .htaccess file along the path.

As lshttpd cache the .htaccess for 10 seconds, then check for changes, reload it if the modified time was changed, if the .htaccess file is being recreated when lshttpd reload the .htaccess, lshttpd may see an incomplete .htaccess without rewrite rules, and that will be cached for about 10 seconds as well.

That's just my guess based on the symtom of the 404 errors, as when 404 errors occur, it will last about a couple seconds then back to normal and all requests to the forum will return 404. You can confirm that with the timestamp of those missing file errors in the error log.

If .htaccess do get recreated once for a while, please make sure to create a temp file and move the temp file to .htaccess, not to overwrite it directly.

I am still trying to reproduce the problem. :-)
Reply With Quote
  #17  
Old 12-27-2005, 02:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Another quick question, is there a .htacess file under "support/" folder? If yes, what is the content and does it change frequently?
Reply With Quote
  #18  
Old 12-27-2005, 03:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Hi Matt,

Please download and install http://www.litespeedtech.com/package...6-linux.tar.gz, I had added some log messages to help identify the source of the problem. I think the problem is that, for some reason, lshttpd failed to open the .htaccess file, either run out of file descriptor or the file is being updated.

Anyway, please follow our howto to increase the file descriptor limit
http://www.litespeedtech.com/docs/Ho....html#qa_incfd

You can check how many file descriptors has been used with command "lsof -p <pid_of_lshttpd>".

then upgrade to 2.1.9, please watch out log messages containing "[HTAccess]" tag in the error.log. Normally, you should only see such messages at server start up or .htaccess has been changed.
Reply With Quote
  #19  
Old 12-27-2005, 04:12 PM
matt matt is offline
Member
 
Join Date: Oct 2005
Location: San Francisco
Posts: 37
The root .htaccess is the only one, it changes pretty rarely, really only when I'm working on the site.

WordPress.org is on standard, not enterprise, though I can purchase one if needed. Will that file you pointed to still work?
Reply With Quote
  #20  
Old 12-27-2005, 04:19 PM
matt matt is offline
Member
 
Join Date: Oct 2005
Location: San Francisco
Posts: 37
The lshttpd had 170 open files according to lsof. There are about 1500 open total on the system.

ulimit -a returns this:

Code:
two&#58;~# ulimit -a
core file size        &#40;blocks, -c&#41; 0
data seg size         &#40;kbytes, -d&#41; unlimited
file size             &#40;blocks, -f&#41; unlimited
max locked memory     &#40;kbytes, -l&#41; unlimited
max memory size       &#40;kbytes, -m&#41; unlimited
open files                    &#40;-n&#41; 1024
pipe size          &#40;512 bytes, -p&#41; 8
stack size            &#40;kbytes, -s&#41; 8192
cpu time             &#40;seconds, -t&#41; unlimited
max user processes            &#40;-u&#41; unlimited
virtual memory        &#40;kbytes, -v&#41; unlimited
This seemed okay:

Code:
two&#58;~# more /proc/sys/fs/file-max
64000
Anything else I can provide?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
random 404 on mod_rewrite piper Bug Reports 18 07-09-2007 12:13 PM
strange 404s felosi Apache Migration/Compatibility 1 06-19-2007 08:07 PM
Random 503 errors with LS admin subBlue Bug Reports 3 05-30-2007 07:59 AM


All times are GMT -7. The time now is 11:58 PM.



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