[Instantrails-users] Cookbook app not working

Jeff jeff at deskrate.com
Sun Nov 27 12:32:39 EST 2005


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?



More information about the Instantrails-users mailing list