Skip to content

Instantly share code, notes, and snippets.

@TheNicholasNick
Created March 4, 2009 23:41
Show Gist options
  • Save TheNicholasNick/74091 to your computer and use it in GitHub Desktop.
Save TheNicholasNick/74091 to your computer and use it in GitHub Desktop.
$ ruby main.rb
== Sinatra/0.9.1 has taken the stage on 4567 for development with backup from Thin
>> Thin web server (v1.0.0 codename That's What She Said)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4567, CTRL+C to stop
Errno::ECONNREFUSED - Connection refused - connect(2):
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `initialize'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `open'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `connect'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/timeout.rb:53:in `timeout'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/timeout.rb:93:in `timeout'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `connect'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:553:in `do_start'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:542:in `start'
lib/../vendor/couchrest/couchrest.rb:98:in `put'
lib/../vendor/couchrest/couchrest/core/database.rb:115:in `save'
lib/../vendor/couchrest/couchrest/core/document.rb:40:in `save'
lib/../vendor/couchrest/couchrest/core/design.rb:55:in `save'
lib/../vendor/couchrest/couchrest/core/model.rb:446:in `refresh_design_doc'
lib/../vendor/couchrest/couchrest/core/model.rb:342:in `view'
lib/../vendor/couchrest/couchrest/core/model.rb:327:in `method_missing'
main.rb:40:in `GET /'
main.rb:171Connection refused - connect(2)
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `initialize'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `open'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `connect'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/timeout.rb:53:in `timeout'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/timeout.rb:93:in `timeout'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:560:in `connect'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:553:in `do_start'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/1.8/net/http.rb:542:in `start'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rest-client-0.9/lib/restclient/request.rb:95:in `transmit'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rest-client-0.9/lib/restclient/request.rb:34:in `execute_inner'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rest-client-0.9/lib/restclient/request.rb:26:in `execute'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rest-client-0.9/lib/restclient/request.rb:12:in `execute'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rest-client-0.9/lib/restclient.rb:61:in `put'
./lib/../vendor/couchrest/couchrest.rb:98:in `put'
./lib/../vendor/couchrest/couchrest/core/database.rb:115:in `save'
./lib/../vendor/couchrest/couchrest/core/document.rb:40:in `save'
./lib/../vendor/couchrest/couchrest/core/design.rb:55:in `save'
./lib/../vendor/couchrest/couchrest/core/model.rb:446:in `refresh_design_doc'
./lib/../vendor/couchrest/couchrest/core/model.rb:342:in `view'
./lib/../vendor/couchrest/couchrest/core/model.rb:327:in `method_missing'
./main.rb:40:in `GET /'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:696:in `call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:696:in `route'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:429:in `instance_eval'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:429:in `route!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:426:in `catch'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:426:in `route!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:405:in `each'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:405:in `route!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:497:in `dispatch!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:350:in `call!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:464:in `instance_eval'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:464:in `invoke'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:464:in `catch'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:464:in `invoke'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/compat.rb:122:in `invoke'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:350:in `call!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:339:in `call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/methodoverride.rb:24:in `call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/commonlogger.rb:20:in `_call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/commonlogger.rb:13:in `call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:796:in `call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:851:in `synchronize'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:851:in `synchronize'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:794:in `call'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/thin-1.0.0/lib/thin/connection.rb:63:in `pre_process'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/thin-1.0.0/lib/thin/connection.rb:54:in `process'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/thin-1.0.0/lib/thin/connection.rb:39:in `receive_data'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/eventmachine-0.12.4/lib/eventmachine.rb:237:in `run_machine'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/eventmachine-0.12.4/lib/eventmachine.rb:237:in `run'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/thin-1.0.0/lib/thin/backends/base.rb:57:in `start'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/thin-1.0.0/lib/thin/server.rb:150:in `start'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/thin.rb:11:in `run'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/base.rb:764:in `run!'
/home/sinatra/ruby/1.8.7-p72/lib/ruby/gems/1.8/gems/sinatra-0.9.1/lib/sinatra/main.rb:46
main.rb:171
192.168.1.31 - - [05/Mar/2009 10:39:56] "GET / HTTP/1.1" 500 17 0.0074
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment