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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > messages in our stderr

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2008, 01:31 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Default messages in our stderr

Hi I noticed in our stderr log we have many of these:
/opt/lsws/fcgi-bin/RailsRunner.rb:23:in `accept': SIGUSR1 (SignalException)
from /opt/lsws/fcgi-bin/RailsRunner.rb:23


Any idea what could be causing this?

We are running ruby-lsapi 3.0 and litespeed 3.3.4.
I just upgraded ruby-lsapi on our machines to 3.1. Will let you know if that makes a difference.
Reply With Quote
  #2  
Old 03-22-2008, 02:13 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
i guess from reading some other threads, this message is normal and just due to it killing off old child processes?


I am running into a problem that happens intermittently with our rails app. Specifically, I click Submit on our login form after putting in my username/password. Within a second or two my browser gives back a "Server unexpectedly dropped the connection" message. I don't believe the request goes through completely, since after I refresh the page, I still am not logged in and have to log in again. There's nothing interesting in any of the logs, stderr reports nothing, and the access log and rails log appear to get the request just fine. Any ideas?
Reply With Quote
  #3  
Old 03-22-2008, 02:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You can enable the DEBUG log, and check how the request has been processed.
Reply With Quote
  #4  
Old 03-29-2008, 05:04 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
ok i turned on the debug log. Here's what it had for one of the times when I got the 'server dropped connection' message from my browser:

2008-03-29 17:00:04.710 DEBUG [*:443] New connection from 67.170.197.205:54020.
2008-03-29 17:00:04.710 DEBUG [*:443] 1 connections accepted!
2008-03-29 17:00:05.607 DEBUG [67.170.197.205:54020-0] [SSL] SSLAgain()!
2008-03-29 17:00:06.480 DEBUG [67.170.197.205:54020-0] HttpIOLink::handleEvents() events=1!
2008-03-29 17:00:06.480 DEBUG [67.170.197.205:54020-0] [SSL] SSLAgain()!
2008-03-29 17:00:06.679 DEBUG [67.170.197.205:54020-0] [SSL] SSLAgain()!
2008-03-29 17:00:07.679 DEBUG [67.170.197.205:54020-0] [SSL] SSLAgain()!
2008-03-29 17:00:08.679 DEBUG [67.170.197.205:54020-0] [SSL] SSLAgain()!
2008-03-29 17:00:09.679 DEBUG [67.170.197.205:54020-0] [SSL] SSLAgain()!
2008-03-29 17:00:09.679 DEBUG [67.170.197.205:54020-0] Keep-alive timeout, close!
2008-03-29 17:00:09.679 DEBUG [67.170.197.205:54020-0] Shutting down SSL ...
2008-03-29 17:00:09.679 DEBUG [67.170.197.205:54020-0] Shutting down out-bound socket ...
2008-03-29 17:00:10.679 DEBUG [67.170.197.205:54020-0] Shutdown time out!
2008-03-29 17:00:10.679 DEBUG [67.170.197.205:54020-0] Close socket ...
2008-03-29 17:00:28.016 DEBUG [idle] Idle connection timed out, close!
2008-03-29 17:00:28.016 DEBUG [idle] [ExtConn] close()

I thought maybe from the message the keep alive timeout was too low, so I changed it from 5 seconds to 35. But it didn't seem to affect anything.
Reply With Quote
  #5  
Old 03-29-2008, 05:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Do you get this error frequently?
The keep-alive timeout definitely play a role here. 35 seconds should help.

I have change the timeout calculation in 3.3.10, you can give it a try by changing the version number in the download link.
Reply With Quote
  #6  
Old 03-30-2008, 12:52 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
No, I don't get the error that frequently, although I worry if my visitors see it frequently. I have a lot of trouble repeating it. It seems to happen pretty randomly. Sometimes I don't see it for weeks.

Today however, I kept getting the 'connection dropped' message from my browser continuously. I was uploading a large file to amazon s3 on my machine at the same time, so my connection was quite saturated. (Our lsws server is not on the same network as my machine)

I'm convinced this had something to do with the error since once the file finished uploading, I could connect to our server just fine with no 'drop' errors. FYI, although slow, I could connect to other sites/servers including the lsws admin page of the server just fine while I was uploading this file, so I think something isn't right. In the past though, I haven't been uploading anything when I've received this 'drop' message in my browser, so I'm not sure if it's related to a slow connection, or I'm just seeing two different issues.

I'll try your update and see if I can repeat the issue.
Reply With Quote
  #7  
Old 03-30-2008, 01:18 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Well it seems to be better with the update. I tried repeating everything again. I started uploading a big file and only 1 out of 10 times did I get the drop message. Much better than before I was getting it continuously.
Reply With Quote
  #8  
Old 03-30-2008, 06:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
What is your timeout value with the update release?
Reply With Quote
  #9  
Old 03-30-2008, 08:24 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
35 seconds
Reply With Quote
  #10  
Old 04-05-2008, 01:49 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Actually, I'm still getting the dropped connection message on our production server. I think I finally caught the debug message:
2008-04-05 01:47:41.410 DEBUG [10.1.0.3:38715-0] SSL_accept() failed!: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request

Could this be causing it?
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 05:02 AM.



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