|
|

10-01-2008, 01:18 PM
|
|
Senior Member
|
|
Join Date: Jul 2007
Posts: 143
|
|
|
One more thing to why I suspect LS. When running on LS I can't save a new image to the server on a page just rendered in the browser as it's "busy" or "in use". Also annoying. That is never an issue in other situations, including running the site with WEBrick.
|

10-01-2008, 01:21 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
If LS cache the response for previous request, it will not forward new request to rails, just reply with cached result. If LS forward a request to rails, LS will just relay the response from rails. There is no third possibility. LSWS still serve requests exactly the same way during a graceful restart.
So, please check the rails development log see if the request hits rails or not, if LS does not forward the request then we can investigate why LS cache the request. Also check LSWS access log to make sure the request really hit LSWS or not.
|

10-01-2008, 01:26 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
Quote:
Originally Posted by palb
One more thing to why I suspect LS. When running on LS I can't save a new image to the server on a page just rendered in the browser as it's "busy" or "in use". Also annoying. That is never an issue in other situations, including running the site with WEBrick.
|
It is more likely a permission issue as LS start the backend in suEXEC mode. Or a process memory limit issue, you have to check Rails log and LSWS error logs to find out why.
|

10-01-2008, 02:01 PM
|
|
Senior Member
|
|
Join Date: Jul 2007
Posts: 143
|
|
Quote:
Originally Posted by mistwang
It is more likely a permission issue as LS start the backend in suEXEC mode. Or a process memory limit issue, you have to check Rails log and LSWS error logs to find out why.
|
Not sure what to look for in the log. In either case, what can I do to prevent LS to have this behavior
|

10-01-2008, 02:22 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
Quote:
Originally Posted by palb
Not sure what to look for in the log.
|
Anything abnormal, errors, exceptions.
Quote:
|
In either case, what can I do to prevent LS to have this behavior
|
I don't have an answer due to insufficient information available. You have to check those log files.
|

10-01-2008, 02:45 PM
|
|
Senior Member
|
|
Join Date: Jul 2007
Posts: 143
|
|
Quote:
Originally Posted by mistwang
Anything abnormal, errors, exceptions.
I don't have an answer due to insufficient information available. You have to check those log files.
|
Hmm. Do you mean that it's not a normal LS behavior? If it's LS then what could you imagine I should look for more specifically? I mean it must be LS doing something. There's nothing else involved. Well Rails, but it's ok when using WEBrick or mongrel. The behavior is the same on my local machine/LSWS and the server I use (with LSWS).
|

10-01-2008, 03:29 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
Quote:
|
what could you imagine I should look for more specifically?
|
Answer has been given.
Quote:
|
So, please check the rails development log see if the request hits rails or not, if LS does not forward the request then we can investigate why LS cache the request. Also check LSWS access log to make sure the request really hit LSWS or not.
|
Quote:
|
I mean it must be LS doing something. There's nothing else involved. Well Rails, but it's ok when using WEBrick or mongrel. The behavior is the same on my local machine/LSWS and the server I use (with LSWS).
|
LSWS run Rails in different way, including suEXEC, process memory limit, fork children process, limited environment variable passed to ruby process, etc. those difference could make Rails behave differently.
We cannot help you if you do not follow our instrcution to provide more information.
|

10-01-2008, 04:38 PM
|
|
Senior Member
|
|
Join Date: Jul 2007
Posts: 143
|
|
Quote:
Originally Posted by mistwang
Answer has been given.
LSWS run Rails in different way, including suEXEC, process memory limit, fork children process, limited environment variable passed to ruby process, etc. those difference could make Rails behave differently.
We cannot help you if you do not follow our instrcution to provide more information.
|
I understand. It's a bit difficult when I don't know what to look for. On the other hand I believe it must be a good clue that LS obviously "get hold" of the particular file and occupy it so it's impossible to overwrite it, for a while. You know what LS does that occupies the file, I don't.
|

10-01-2008, 08:18 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
Quote:
Originally Posted by palb
I understand. It's a bit difficult when I don't know what to look for.
|
Check access log file to see if a request has been received should be easy enough.
Quote:
|
On the other hand I believe it must be a good clue that LS obviously "get hold" of the particular file and occupy it so it's impossible to overwrite it, for a while. You know what LS does that occupies the file, I don't.
|
No, LS does not and could not prevent some one to overwrite a file. The fact is that LSWS does not open those "*.rhtml" files, not even aware the existence of those files.
If you want to have this problem solved, you have to stop speculating and follow our direction to diagnose it, otherwise, you are on your own. 
|

10-01-2008, 09:58 PM
|
|
Senior Member
|
|
Join Date: Jul 2007
Posts: 143
|
|
Quote:
Originally Posted by mistwang
Check access log file to see if a request has been received should be easy enough.
No, LS does not and could not prevent some one to overwrite a file. The fact is that LSWS does not open those "*.rhtml" files, not even aware the existence of those files.
If you want to have this problem solved, you have to stop speculating and follow our direction to diagnose it, otherwise, you are on your own. 
|
The access is registered, yes. Both in rails log and server log. However, the server log debug says so much that I don't know what to say. I guess the request is there, yes.
Sorry to say but LS does prevent a file from being overwritten. It's no question about it. This is only when LS is running. That's why I wonder what it does to keep the file "busy". I have never seen this in other servers I know of. If we depart from that; what is happening behind the scene between the browser and LS that makes the file being busy, for a while?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:07 AM.
|
|