Decided to learn Ruby and RoR and in the process also downloaded InstantRails. I start InstantRails, go to Manage Rails Applications, select the cookbook application and start the SCGI server. I''ve already added the entry in host file for mycookbook.com. When I now load the page http://www.mycookbook.com, the page loads up with the message that it is redirecting to mycookbook and after a long wait it just times out and does not load the redirected page. The error.log file contains the following. [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1] Premature end of script headers: /recipe/list [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1] scgi: error reading response headers I''d appreciate it if somebody could help me fix it. Thanks.
I''ve haven''t seen this before. I''m forwarding this to Zed Shaw, the author of the SCGI Rails Runner to get his thoughts. Zed, do you have any idea what could be going on here? Curt On 11/26/05, Jeff <jeff at deskrate.com> wrote:> > Decided to learn Ruby and RoR and in the process also downloaded > InstantRails. I start InstantRails, go to Manage Rails Applications, > select the cookbook application and start the SCGI server. I''ve > already added the entry in host file for mycookbook.com. > > When I now load the page http://www.mycookbook.com, the page loads up > with the message that it is redirecting to mycookbook and after a long > wait it just times out and does not load the redirected page. The > error.log file contains the following. > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1] Premature end of > script headers: /recipe/list > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1] scgi: error > reading response headers > > > I''d appreciate it if somebody could help me fix it. > > Thanks. > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051126/45af21a4/attachment.htm
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > <http://127.0.0.1>] Premature end of > script headers: /recipe/list > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > <http://127.0.0.1>] scgi: error > reading response headersLooks to me like the scgi server isn''t running. Did you start the scgi process? - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDiRiPSIxC85HZHLMRAv9/AKCZrL/YeB/OaV/Ija6FcrqZigk+PwCglaj3 dB58vR8TkrS2blio2USA+Uk=VGNc -----END PGP SIGNATURE-----
On 11/26/05, David Morton <mortonda at dgrmm.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > > <http://127.0.0.1>] Premature end of > > script headers: /recipe/list > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > > <http://127.0.0.1>] scgi: error > > reading response headers > > Looks to me like the scgi server isn''t running. Did you start the scgi > process?As an experiment, I tried browsing to the cookbook app without starting the SCGI server. I didn''t get the error log entries that Jeff is reporting. Instead I got this: [Sat Nov 26 21:07:37 2005] [error] [client 127.0.0.1] (10061)Unknown error: scgi: connecting to server So, I don''t think that is the problem. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051126/10773873/attachment.htm
On 11/26/05, Curt Hibbs <curt.hibbs at gmail.com> wrote:> On 11/26/05, David Morton <mortonda at dgrmm.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > > > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > > > <http://127.0.0.1>] Premature end of > > > script headers: /recipe/list > > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > > > <http://127.0.0.1>] scgi: error > > > reading response headers > > > > Looks to me like the scgi server isn''t running. Did you start the scgi > process? > > As an experiment, I tried browsing to the cookbook app without starting the > SCGI server. I didn''t get the error log entries that Jeff is reporting. > Instead I got this: > > [Sat Nov 26 21:07:37 2005] [error] [client 127.0.0.1] (10061)Unknown > error: scgi: connecting to server > > So, I don''t think that is the problem. > > Curt >I tried the same thing on another computer and it works fine there. So I''m certainly trying the right things and the SCGI server is running but might be getting blocked somehow. I do have ZoneAlarm installed on this computer but I''d tried running it after shutting down ZoneAlarm but I still got the same result. Any suggestions on how to troubleshoot to figure out what might be causing the problem.
On 11/26/05, Curt Hibbs <curt.hibbs at gmail.com> wrote:> On 11/26/05, David Morton <mortonda at dgrmm.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > > > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > > > <http://127.0.0.1>] Premature end of > > > script headers: /recipe/list > > > [Sat Nov 26 12:48:53 2005] [error] [client 127.0.0.1 > > > <http://127.0.0.1>] scgi: error > > > reading response headers > > > > Looks to me like the scgi server isn''t running. Did you start the scgi > process? > > As an experiment, I tried browsing to the cookbook app without starting the > SCGI server. I didn''t get the error log entries that Jeff is reporting. > Instead I got this: > > [Sat Nov 26 21:07:37 2005] [error] [client 127.0.0.1] (10061)Unknown > error: scgi: connecting to server > > So, I don''t think that is the problem. > > Curt >Found out that the problem is with the socket library. The following works require ''socket'' server = TCPServer.new(''127.0.0.1'', 9090) session = server.accept #request = session.gets session.close puts ''Test message'' exit but if I uncomment the session.gets line then ruby just hangs. To test it, I load the page http://127.0.0.1:9090/ in my browser. Any suggestions on where I should follow up with this?
On 11/27/05, Jeff <jeff at deskrate.com> wrote:> > > Found out that the problem is with the socket library. The following works > > require ''socket'' > > server = TCPServer.new(''127.0.0.1'', 9090) > session = server.accept > #request = session.gets > session.close > puts ''Test message'' > exit > > > but if I uncomment the session.gets line then ruby just hangs. To test > it, I load the page > http://127.0.0.1:9090/ > in my browser. > > Any suggestions on where I should follow up with this?Excellent! Take a look at the outstanding Rails bugs and see if this has been reported already, if not, ten create a new ticket: http://dev.rubyonrails.org/report/1 Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051127/94ef1102/attachment.htm