Rails, Lighttpd, FastCGI and Cygwin

Has anyone been successful in getting this combination (Rails, Lighttpd,
FastCGI and Cygwin) working? I'm at my wits end trying to get rails working
on anything other than webbrick which
is just too slow to even get learning on. Please any help will be very
appreciated.

Currently my fcgi crash log throws out this
[19/Jul/2005:15:20:24 :: 888] Dispatcher failed to catch: (Interrupt)
  /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each'
  /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi'
  /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in
`process!'
  /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in
`process!'
  /home/Administrator/projects/rails/Todo/public/dispatch.fcgi:24
killed by this error

And my server log this
2005-07-19 14:50:45: (log.c.67) server started
2005-07-19 14:51:48: (mod_fastcgi.c.1466) connect delayed, will continue
later: 7
2005-07-19 14:51:48: (mod_fastcgi.c.2487) got proc: 7 0
/tmp/application.fcgi.socket-2 0 1
2005-07-19 14:51:48: (mod_fastcgi.c.2558) write failed: Broken pipe 32
2005-07-19 14:51:48: (mod_fastcgi.c.2613) fcgi-server disabled: 0
/tmp/application.fcgi.socket-2
2005-07-19 14:51:48: (mod_fastcgi.c.1287) release proc: 7 0
/tmp/application.fcgi.socket-2

I don't think many people use Cygwin here, since there isn't much
reason to, and it's not native.

I'm suprised you found webbrick slow for learning. How are you running
it, and on what kind of machine?

Regards,
Nick

···

On 7/19/05, Paul Wistrand <me@paulwistrand.com> wrote:

Has anyone been successful in getting this combination (Rails, Lighttpd,
FastCGI and Cygwin) working? I'm at my wits end trying to get rails working
on anything other than webbrick which
is just too slow to even get learning on. Please any help will be very
appreciated.

Currently my fcgi crash log throws out this
[19/Jul/2005:15:20:24 :: 888] Dispatcher failed to catch: (Interrupt)
  /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each'
  /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi'
  /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in
`process!'
  /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in
`process!'
  /home/Administrator/projects/rails/Todo/public/dispatch.fcgi:24
killed by this error

And my server log this
2005-07-19 14:50:45: (log.c.67) server started
2005-07-19 14:51:48: (mod_fastcgi.c.1466) connect delayed, will continue
later: 7
2005-07-19 14:51:48: (mod_fastcgi.c.2487) got proc: 7 0
/tmp/application.fcgi.socket-2 0 1
2005-07-19 14:51:48: (mod_fastcgi.c.2558) write failed: Broken pipe 32
2005-07-19 14:51:48: (mod_fastcgi.c.2613) fcgi-server disabled: 0
/tmp/application.fcgi.socket-2
2005-07-19 14:51:48: (mod_fastcgi.c.1287) release proc: 7 0
/tmp/application.fcgi.socket-2

--
Nicholas Van Weerdenburg

Paul Wistrand wrote:

Has anyone been successful in getting this combination (Rails, Lighttpd,
FastCGI and Cygwin) working? I'm at my wits end trying to get rails working
on anything other than webbrick which
is just too slow to even get learning on. Please any help will be very
appreciated.

Frankly I'm amazed you've got that far. I had real problems getting
fcgi working under Cygwin as I couldn't compile the gem (and yes, I had
the fastcgi developer files installed). Could you possibly mail me a
brief summary of your installation process?

Thanks,

Paul Wistrand wrote:

Has anyone been successful in getting this combination (Rails, Lighttpd,
FastCGI and Cygwin) working? I'm at my wits end trying to get rails working
on anything other than webbrick which
is just too slow to even get learning on. Please any help will be very
appreciated.

Simple answer is: Just forget it. I have spent weeks on this before giving up. Lighttpd is not really supported on Cygwin. Yes, it does compile, but nobody has actually tested it. A far superior method is to use www.colinux.org. That's what I do. It gives you a real Linux as a Windows service. I have now heard numerous times that Rails runs well with the native Win32 version of Ruby, but have never tried it myself, yet. This would surely be the preferred way of doing things under Windows. The reason Webrick is so slow is because of Cygwin. Maybe it is faster with the native version. There is also the Ruby for Apache package.

http://rubyforge.org/projects/rubyforapache/

Good luck
Sascha