dcrec1 / signal

An integration server written in Rails and integrated with metric_fu, rspec, cucumber and maven. Easy to install and easy to use
http://www.diegocarrion.com
176 stars 12 forks source link

What to do when I get a Timeout Error #1

Open timothyjoh opened 15 years ago

timothyjoh commented 15 years ago

What to look at when I get the following Timeout::Error (execution expired): /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:60:in open' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/smtp.rb:551:indo_start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/smtp.rb:551:in do_start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/smtp.rb:525:instart' app/models/build.rb:21:in after_create' haml (2.2.9) rails/./lib/sass/plugin/rails.rb:19:inprocess'

dcrec1 commented 15 years ago

This error happens in some servers when the build is being created by the interface and it takes a little bit to complete.

This error doesn't seems to happen with Passenger, but if you're using Mongrel, you can set the timeout with -o, like this:

mongrel_rails start -o

When build is created by pinging /projects/name/build this error doesn't happen because the build is done in the background, with delajed_job. Maybe it's a good idea to also use it when the build is created by the interface.

millisami commented 14 years ago

I've setup the signal and used with Mongrel on my dev machine. The Timeout error. Got on this page, setup with passenger but still the Timeout error. This might be due to the project url on github, so go through net. How can I configure passenger (what config variable) to increase execution time?

dcrec1 commented 14 years ago

Can you plz post here the stack trace? I think the error may be coming from a library and not from Passenger.