quirkey / vegas

Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.
http://code.quirkey.com/vegas
MIT License
183 stars 24 forks source link

Changed bound ip address, check_for_running crashed until I deleted the url_file #11

Closed runa closed 12 years ago

runa commented 13 years ago

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: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'

thanks!