Mike Mikolajczyk
2006-Feb-22 15:06 UTC
[Rails] Rails on lighttpd locks up, freezes, unresponsive every day
I have RoR running on lighttpd on RedHat Linux and every morning that I check the web page it just keeps waiting to refresh it forever, Firefox and IE never times out on any of the pages I try. Has anyone seen that happening to their RoR? I also removed lighttpd completely and just ran webrick but there was no difference. The linux box has a pretty old kernel 2.4.21-4, could that be the problem, I''m just guessing? Any help would be appreciated. Thanks, Mike Mikolajczyk -- Posted via http://www.ruby-forum.com/.
Ćukasz Piestrzeniewicz
2006-Feb-22 17:06 UTC
[Rails] Rails on lighttpd locks up, freezes, unresponsive every day
On 22/02/06, Mike Mikolajczyk <mikem76@gmail.com> wrote:> I have RoR running on lighttpd on RedHat Linux and every morning that I > check the web page it just keeps waiting to refresh it forever, Firefox > and IE never times out on any of the pages I try. Has anyone seen that > happening to their RoR? I also removed lighttpd completely and just ran > webrick but there was no difference. The linux box has a pretty old > kernel 2.4.21-4, could that be the problem, I''m just guessing? > Any help would be appreciated.When it comes to lighttpd ''idle-timeout'' directive might be the problem. You may safely get rid of it. I am not sure why webrick doesn''t work. -- ?ukasz Piestrzeniewicz
Chester
2006-Feb-22 20:07 UTC
[Rails] Re: Rails on lighttpd locks up, freezes, unresponsive every
Mike Mikolajczyk wrote:> I have RoR running on lighttpd on RedHat Linux and every morning that I > check the web page it just keeps waiting to refresh it forever, Firefox > and IE never times out on any of the pages I try. Has anyone seen that > happening to their RoR? I also removed lighttpd completely and just ran > webrick but there was no difference. The linux box has a pretty old > kernel 2.4.21-4, could that be the problem, I''m just guessing? > Any help would be appreciated. > Thanks, > Mike MikolajczykI am running RoR with lighttpd (1.3.16) and MySQL (4.1.14) on Gentoo Linux with kernel 2.6.14. I do not have any problem at all. I also use virtual host in lighttpd configuration. Here is my gem list: *** LOCAL GEMS *** actionmailer (1.1.5) Service layer for easy email delivery and testing. actionpack (1.11.2) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.0.0) Web service support for Action Pack. activerecord (1.13.2) Implements the ActiveRecord pattern for ORM. activesupport (1.2.5) Support and utility classes used by the Rails framework. color-tools (1.3.0) color-tools provides colour space definition and manpiulation as well as commonly named RGB colours. gruff (0.0.7) Beautiful graphs for one or multiple datasets. pdf-writer (1.1.3) A pure Ruby PDF document creation library. rails (1.0.0) Web-application framework with template engine, control-flow layer, and ORM. rake (0.6.2) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation transaction-simple (1.3.0) Simple object transaction support for Ruby. -- Posted via http://www.ruby-forum.com/.
Mike Mikolajczyk
2006-Feb-23 14:56 UTC
[Rails] Re: Rails on lighttpd locks up, freezes, unresponsive every
?ukasz Piestrzeniewicz wrote:> On 22/02/06, Mike Mikolajczyk <mikem76@gmail.com> wrote: >> I have RoR running on lighttpd on RedHat Linux and every morning that I >> check the web page it just keeps waiting to refresh it forever, Firefox >> and IE never times out on any of the pages I try. Has anyone seen that >> happening to their RoR? I also removed lighttpd completely and just ran >> webrick but there was no difference. The linux box has a pretty old >> kernel 2.4.21-4, could that be the problem, I''m just guessing? >> Any help would be appreciated. > > When it comes to lighttpd ''idle-timeout'' directive might be the > problem. You may safely get rid of it. I am not sure why webrick > doesn''t work.I don''t have an ''idle-timeout'' directive in my lighttpd.conf file. I checked it this morning and it''s frozen again, time to restart it. I think I''ll put in a cron job to restart it every night and see if that helps. Mike Mikolajczyk -- Posted via http://www.ruby-forum.com/.
Chester
2006-Feb-23 16:18 UTC
[Rails] Re: Rails on lighttpd locks up, freezes, unresponsive every
Here is my lighttpd.conf file for your reference:- server.modules = ( "mod_redirect", "mod_access", "mod_fastcgi", "mod_simple_vhost", "mod_accesslog" ) server.document-root = "/var/www/localhost/htdocs/" server.errorlog = "/var/log/lighttpd/error.log" server.indexfiles = ( "index.php", "index.html", "index.htm", "default.htm" ) mimetype.assign = ( ".pdf" => "application/pdf", ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", ".class" => "application/octet-stream", ".ps" => "application/postscript", ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", ".gz" => "application/x-gzip", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", ".zip" => "application/zip", ".mp3" => "audio/mpeg", ".m3u" => "audio/x-mpegurl", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", ".ogg" => "application/ogg", ".wav" => "audio/x-wav", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", ".cpp" => "text/plain", ".log" => "text/plain", ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml", ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", ".avi" => "video/x-msvideo", ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", ".wmv" => "video/x-ms-wmv", ".bz2" => "application/x-bzip", ".tbz" => "application/x-bzip-compressed-tar", ".tar.bz2" => "application/x-bzip-compressed-tar" ) accesslog.filename = "/var/log/lighttpd/access.log" url.access-deny = ( "~", ".inc" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } server.pid-file = "/var/run/lighttpd.pid" $SERVER["socket"] == "172.18.2.83:4000" { simple-vhost.document-root = "/var/www/rails/myapp1/public" server.document-root = "/var/www/rails/myapp1/public/" accesslog.filename = "/var/log/lighttpd/00rail_access_myapp1.log" errorlog.filename = "/var/log/lighttpd/00rail_error_myapp1.log" server.indexfiles = ( "dispatch.fcgi", "index.html" ) server.error-handler-404 = "/dispatch.fcgi" server.error-handler-500 = "/dispatch.fcgi" ## rails stuff ### fastcgi module fastcgi.server = ( ".fcgi" => ( "172.18.2.83" => ( "socket" => "/tmp/rail_myapp1.sck", "bin-path" => "/var/www/rails/bdo/myapp1/public/dispatch.fcgi", "min-procs" => 1, "max-procs" => 5 ) ) ) } $SERVER["socket"] == "172.18.2.83:3000" { simple-vhost.document-root = "/var/www/rails/myapp2/public" server.document-root = "/var/www/rails/myapp2/public/" accesslog.filename = "/var/log/lighttpd/00rail_access_myapp2.log" errorlog.filename = "/var/log/lighttpd/00rail_error_myapp2.log" server.indexfiles = ( "dispatch.fcgi", "index.html" ) server.error-handler-404 = "/dispatch.fcgi" server.error-handler-500 = "/dispatch.fcgi" ## rails stuff ### fastcgi module fastcgi.server = ( ".fcgi" => ( "172.18.2.83" => ( "socket" => "/tmp/rail_myapp2.sck", "bin-path" => "/var/www/rails/myapp2/public/dispatch.fcgi", "min-procs" => 1, "max-procs" => 5 ) ) ) } -- Posted via http://www.ruby-forum.com/.
Mike Mikolajczyk
2006-Feb-24 17:16 UTC
[Rails] Re: Rails on lighttpd locks up, freezes, unresponsive every
I solved the problem. It turns out that when I was resyncing my RoR directory on my Linux box the from a Windows box every day, the files were copied in Windows format not Unix. Once I converted all dispatch.* files in the public directory to Unix using the dos2unix command everything was fine. Thanks for your help. Mike Mikolajczyk -- Posted via http://www.ruby-forum.com/.