Hi Folks, Has anyone encountered the following (fbsd, sqlite3, rails 0.12.1, apache2 + fcgi): [Fri May 06 14:17:15 CDT 2005] Dispatcher failed to catch: Resource temporarily unavailable (Errno::EAGAIN) /usr/local/lib/ruby/1.8/cgi.rb:1015:in `read'' /usr/local/lib/ruby/1.8/cgi.rb:1015:in `read_multipart'' /usr/local/lib/ruby/1.8/cgi.rb:983:in `loop'' /usr/local/lib/ruby/1.8/cgi.rb:983:in `read_multipart'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/cgi_ext/raw_post_data_fix.rb:11:in `initialize_query'' /usr/local/lib/ruby/1.8/cgi.rb:2269:in `initialize'' (eval):16:in `initialize'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:600:in `new'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:600:in `each_cgi'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /home/mml/photobanca/public/dispatch.fcgi:18 FCGI process 96294 killed by this error This occurs with some regularity, usually when attempting a file upload into sqlite. It looks like rails is having trouble getting a db handle for some reason. any clues? -mcclain
McClain Looney wrote:> Hi Folks, > > Has anyone encountered the following (fbsd, sqlite3, rails 0.12.1, > apache2 + fcgi): > > [Fri May 06 14:17:15 CDT 2005] Dispatcher failed to catch: Resource > temporarily unavailable (Errno::EAGAIN)I thought that on these types of errors, you should wait a little and then try again until you get another error, or you hit some usability timeout (between 5-10 seconds for web applications). Seems like a bug.. - Adam
On May 6, 2005, at 12:03 PM, Adam M. wrote:> > I thought that on these types of errors, you should wait a little and > then try again until you get another error, or you hit some usability > timeout (between 5-10 seconds for web applications). Seems like a > bug.. >yeah, if i retry repeatedly, the process will eventually complete. this is obviously not an acceptable solution though. the more i read up on this error, the more i think it''s some sort of fcgi configuration problem, or possibly a problem w/ reading the uploaded file (the exception is thrown in read_multipart->read), before rails even enters my code. -mcclain
McClain Looney wrote:> > On May 6, 2005, at 12:03 PM, Adam M. wrote: > >> >> I thought that on these types of errors, you should wait a little and >> then try again until you get another error, or you hit some usability >> timeout (between 5-10 seconds for web applications). Seems like a bug.. >> > yeah, if i retry repeatedly, the process will eventually complete. > this is obviously not an acceptable solution though. the more i read > up on this error, the more i think it''s some sort of fcgi > configuration problem, or possibly a problem w/ reading the uploaded > file (the exception is thrown in read_multipart->read), before rails > even enters my code.This is an error thrown by some C library indicating that the resource is temporarily not available :) What rails should do is retry the operation until it succeeds or something else happens (like a timeout). This seems like an uncaught error in rails hence I said it seems a bug. The user should never see this type of error. - Adam