Hello all, Does anyone have any ideas as to how I can diagose this problem. When I try to access my app it just times out and then I get the general Application Error page. Further inspection shows no fastCGI processes have started but I''ve enabled fastCGI for the account on dreamhost. This is the error that I''m getting here in my http logs: -------------------------------------------------- [Tue Oct 4 23:36:32 2005] [error] [client 24.251.14.10] FastCGI: comm with (dynamic) server "/home/username/myapp.com/public/ dispatch.fcgi" aborted: (first read) idle timeout (120 sec) [Tue Oct 4 23:36:32 2005] [error] [client 24.251.14.10] FastCGI: incomplete headers (0 bytes) received from server "/home/username/ myapp.com/public/dispatch.fcgi" - Jim
When I run dispatch.fcgi manually I get the following error. Strangely enough this does not happen when I run this app in webrick: $ ruby dispatch.fcgi Content-Type: text/html Set-Cookie: _session_id=4fdf2568af9ac721c21d0db7c24445ae; path=/ Status: 500 Internal Error Cache-Control: no-cache <html> <head> <title>Action Controller: Exception caught</title> <style> body { background-color: #fff; color: #333; } body, p, ol, ul, td { font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px; } pre { background-color: #eee; padding: 10px; font-size: 11px; } a { color: #000; } a:visited { color: #666; } a:hover { color: #fff; background-color:#000; } </style> </head> <body> <h1> TypeError in Tease#<action not set> </h1> <pre>can''t convert nil into String</pre> .............. - Jim On Oct 4, 2005, at 11:47 PM, Jim Jeffers wrote:> Hello all, > > Does anyone have any ideas as to how I can diagose this problem. > When I try to access my app it just times out and then I get the > general Application Error page. Further inspection shows no > fastCGI processes have started but I''ve enabled fastCGI for the > account on dreamhost. > > This is the error that I''m getting here in my http logs: > -------------------------------------------------- > [Tue Oct 4 23:36:32 2005] [error] [client 24.251.14.10] FastCGI: > comm with (dynamic) server "/home/username/myapp.com/public/ > dispatch.fcgi" aborted: (first read) idle timeout (120 sec) > [Tue Oct 4 23:36:32 2005] [error] [client 24.251.14.10] FastCGI: > incomplete headers (0 bytes) received from server "/home/username/ > myapp.com/public/dispatch.fcgi" > > - Jim > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
It may be a permissions problems, chmod 755 your public directory and everything in it and see if it fixes the problem. -- Joe Clarke http://www.railsplayground.com On 10/5/05, Jim Jeffers <rails-u78NUfcIof4mlstjBEl4y0EOCMrvLtNR@public.gmane.org> wrote:> When I run dispatch.fcgi manually I get the following error. > Strangely enough this does not happen when I run this app in webrick: > > $ ruby dispatch.fcgi > Content-Type: text/html > Set-Cookie: _session_id=4fdf2568af9ac721c21d0db7c24445ae; path=/ > Status: 500 Internal Error > Cache-Control: no-cache > > <html> > <head> > <title>Action Controller: Exception caught</title> > <style> > body { background-color: #fff; color: #333; } > > body, p, ol, ul, td { > font-family: verdana, arial, helvetica, sans-serif; > font-size: 13px; > line-height: 18px; > } > > pre { > background-color: #eee; > padding: 10px; > font-size: 11px; > } > > a { color: #000; } > a:visited { color: #666; } > a:hover { color: #fff; background-color:#000; } > </style> > </head> > <body> > > > > <h1> > TypeError in > Tease#<action not set> > </h1> > <pre>can''t convert nil into String</pre> > .............. > > - Jim > > On Oct 4, 2005, at 11:47 PM, Jim Jeffers wrote: > > > Hello all, > > > > Does anyone have any ideas as to how I can diagose this problem. > > When I try to access my app it just times out and then I get the > > general Application Error page. Further inspection shows no > > fastCGI processes have started but I''ve enabled fastCGI for the > > account on dreamhost. > > > > This is the error that I''m getting here in my http logs: > > -------------------------------------------------- > > [Tue Oct 4 23:36:32 2005] [error] [client 24.251.14.10] FastCGI: > > comm with (dynamic) server "/home/username/myapp.com/public/ > > dispatch.fcgi" aborted: (first read) idle timeout (120 sec) > > [Tue Oct 4 23:36:32 2005] [error] [client 24.251.14.10] FastCGI: > > incomplete headers (0 bytes) received from server "/home/username/ > > myapp.com/public/dispatch.fcgi" > > > > - Jim > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Jim Jeffers wrote:> When I run dispatch.fcgi manually I get the following error. Strangely > enough this does not happen when I run this app in webrick:I''ve noticed issues that if you have your controllers require files, that you will want to put them in the global lib/ directory and add require them as dependencies in your controllers. This only seems to matter with FastCGI though. require_dependency ''example'' Zach