Forum: Ruby on Rails Errno::E232 (The pipe is being closed.)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
10eb68cd4e2b9997247496e6c2a3f421?d=identicon&s=25 Mr. Heinz (Guest)
on 2005-12-06 20:56
I get this error on occasion using both Webrick and Apache2/FCGI:

Webrick Debug:

[06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is
being closed. (Errno::E232)
  [06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is
being closed. (Errno::E232)
  C:/MyApp/Server/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:158:in
`flush'
  C:/MyApp/Server/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:158:in
`out'
  C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/dispatcher.rb:34:in
`dispatch'
  C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:144:in
`process_request'
  C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:64:in
`process!'
  C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in
`each_cgi'
  C:/program files/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'
  C:/program files/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'
  C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in
`process!'
  C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:21:in
`process!'
  C:/MyApp/Server/public/dispatch.fcgi:24

--------------------------------------------------------------------------

Apache2/FCGI debug:

Errno::E232 (The pipe is being closed.):
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:161:in
`flush'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:161:in
`out'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:38:in
`dispatch'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:141:in
`process_request'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:53:in
`process!'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:52:in
`each_cgi'
    C:/program files/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'
    C:/program files/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in
`each_cgi'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:52:in
`process!'
    C:/program
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:22:in
`process!'
    C:/MyApp/Server/public/dispatch.fcgi:24

---------------------------------------------------------------------------

This issue is random and seems to happen when multiple asynchronous
requests are sent to the server.  I figured at first this was a
apache/fcgi config error but since I get a similar error using webrick
it sort of rules that out.  Anyone have any ideas of where to start to
looking to correct this issue?

Thanks!
10eb68cd4e2b9997247496e6c2a3f421?d=identicon&s=25 Mr. Heinz <bheinz@nextit.com> (Guest)
on 2005-12-06 21:03
I forgot to include this:

The apache2/logs/error.log generates an entry as follows when this error
is encountered:

[Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI: comm
with (dynamic) server "C:/MyApp/Server/public/dispatch.fcgi" aborted:
(first read) idle timeout (30 sec)
[Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI:
incomplete headers (0 bytes) received from server
"C:/MyApp/Server/public/dispatch.fcgi"

This is understandable given the pipe was closed but figured I would
include this information as well.
612a5333e356c4f765230d9ac06e5c8c?d=identicon&s=25 Pradeep (Guest)
on 2006-10-03 21:58
I am getting the same error, can somebody please help?

Thanks,



Mr. Heinz <bheinz@nextit.com> wrote:
> I forgot to include this:
>
> The apache2/logs/error.log generates an entry as follows when this error
> is encountered:
>
> [Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI: comm
> with (dynamic) server "C:/MyApp/Server/public/dispatch.fcgi" aborted:
> (first read) idle timeout (30 sec)
> [Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI:
> incomplete headers (0 bytes) received from server
> "C:/MyApp/Server/public/dispatch.fcgi"
>
> This is understandable given the pipe was closed but figured I would
> include this information as well.
F540fad2d8cca110e2b894cb9ae72009?d=identicon&s=25 Chris Metcalfe (prognition1)
on 2008-08-25 16:24
I too am getting the same error in apache with fastcgi.  Any ideas?
1c1e8bc5c6289ffccd87316bad4a8291?d=identicon&s=25 Russel Cuizon (russel2x2)
on 2008-09-10 06:35
Chris Metcalfe wrote:
> I too am getting the same error in apache with fastcgi.  Any ideas?


I'm having the same error too. Have any luck on solving this?
This topic is locked and can not be replied to.