I had resque-web bound on to a specific ip address, I later changed this address and I couldn't make it run until I deleted the url_file.
The problem was that port_open? was trying to check if the OLD address+port was open but it was timeouting.
I see 2 different bugs here:
vegas should not use the url_file data but the passed parameters to check if the address+port is available
port_open? should catch Errno::ETIMEDOUT
this is the stack trace
/usr/lib/ruby/1.9.1/net/http.rb:644:in initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/lib/ruby/1.9.1/net/http.rb:644:inopen'
from /usr/lib/ruby/1.9.1/net/http.rb:644:in block in connect' from /usr/lib/ruby/1.9.1/timeout.rb:44:intimeout'
from /usr/lib/ruby/1.9.1/timeout.rb:87:in timeout' from /usr/lib/ruby/1.9.1/net/http.rb:644:inconnect'
from /usr/lib/ruby/1.9.1/net/http.rb:637:in do_start' from /usr/lib/ruby/1.9.1/net/http.rb:626:instart'
from /usr/lib/ruby/1.9.1/open-uri.rb:306:in open_http' from /usr/lib/ruby/1.9.1/open-uri.rb:769:inbuffer_open'
from /usr/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:201:incatch'
evaluate the launch_path
from /usr/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
from /usr/lib/ruby/1.9.1/open-uri.rb:146:in`open_uri'
from /usr/lib/ruby/1.9.1/open-uri.rb:671:in `open'
from /usr/lib/ruby/1.9.1/open-uri.rb:33:in`open'
Heyas
I had resque-web bound on to a specific ip address, I later changed this address and I couldn't make it run until I deleted the url_file. The problem was that port_open? was trying to check if the OLD address+port was open but it was timeouting. I see 2 different bugs here:
this is the stack trace
/usr/lib/ruby/1.9.1/net/http.rb:644:in
initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/lib/ruby/1.9.1/net/http.rb:644:in
open' from /usr/lib/ruby/1.9.1/net/http.rb:644:inblock in connect' from /usr/lib/ruby/1.9.1/timeout.rb:44:in
timeout' from /usr/lib/ruby/1.9.1/timeout.rb:87:intimeout' from /usr/lib/ruby/1.9.1/net/http.rb:644:in
connect' from /usr/lib/ruby/1.9.1/net/http.rb:637:indo_start' from /usr/lib/ruby/1.9.1/net/http.rb:626:in
start' from /usr/lib/ruby/1.9.1/open-uri.rb:306:inopen_http' from /usr/lib/ruby/1.9.1/open-uri.rb:769:in
buffer_open' from /usr/lib/ruby/1.9.1/open-uri.rb:203:inblock in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:201:in
catch'evaluate the launch_path
thanks!